Jump to content


Photo

Deleted Code in header.php


  • Please log in to reply
8 replies to this topic

#1 itschelsea

itschelsea

    Member

  • Members
  • 20 posts

Posted 21 June 2012 - 10:03 PM

I mistakenly deleted the last line in my Edit Themes > Pagelines:Header (header.php) ... anyone know the code to restore it?
My site does not pull up at all now.
Thanks!

#2 itschelsea

itschelsea

    Member

  • Members
  • 20 posts

Posted 21 June 2012 - 10:29 PM

The exact message I am getting when trying to reach my site is: Parse error: syntax error, unexpected $end in /home/content/31/9444731/html/wp-content/themes/pagelines/header.php on line 58 I have Pagelines 1.1.3 Helllllppp, I'm a newbie!

#3 itschelsea

itschelsea

    Member

  • Members
  • 20 posts

Posted 22 June 2012 - 01:13 AM

I found it!

#4 mackenzie

mackenzie

    Advocate

  • Members
  • 333 posts
  • Country: Country Flag

Posted 22 June 2012 - 01:46 AM

Where you able to fix the issue with that code?

#5 itschelsea

itschelsea

    Member

  • Members
  • 20 posts

Posted 25 June 2012 - 08:21 PM

Yes, I fixed the issue with this code above. Thank you!

#6 Rob

Rob

    One Smart Egg

  • Members
  • 13575 posts
  • LocationEast Coast, USA
  • Framework Version:The Latest, of course
  • Country: Country Flag

Posted 26 June 2012 - 12:18 AM

Great. I am going to accept an answer to conclude this topic for you.

#7 mightyjak

mightyjak

    Newbie

  • Members
  • 5 posts
  • LocationUSA
  • Country: Country Flag

Posted 29 August 2012 - 08:48 PM

I did exactly the same just now and this post saved. Thanks, itschelsea!

#8 jdaitkins

jdaitkins

    Newbie

  • Members
  • Pip
  • 2 posts
  • Country: Country Flag

Posted 08 December 2013 - 05:38 AM

It would have been great if someone had said what the solution was. I did exactly the same thing and this string alludes to a happy ending but no one can benefit from it because the solution is not shown. Dang! 



#9 Danny

Danny

    Is Awesome!

  • Moderators
  • 15064 posts
  • LocationManchester, UK
  • Country: Country Flag

Posted 08 December 2013 - 12:25 PM

If you have deleted code from the header.php file or any core DMS file, the first you should note is that we do not provide support to users who have made changes to the core files, as this is something we do not recommend nor support.

 

However, to restore the file(s) to their original state is quite simple, simply download a fresh copy of DMS, extract the zip and then locate the file you have made changes and replace it with the one in the zip you just downloaded, you can do this with an FTP client.