Jump to content


Photo
- - - - -

functions.php broken leading to server error


  • Please log in to reply
2 replies to this topic

#1 chasenet

chasenet

    Advanced Member

  • Members
  • 47 posts
  • LocationEngland

Posted 19 April 2012 - 12:57 PM

Hi folks

A tad embarrassing but I've managed to break my own site :/

I was trying to alter the code that put a google ad panel in the header of my site. As

Please Login or Register to see this Hidden Content

.

I was trying to get rid of the google code to replace it with a static image ad. Anyway I must have done something wrong as the whole site has bombed. I had saved the original code but unfortunately wp won't allow me to post the original back into

pagelines-customize/functions.php due to a 500 server error

I have looked on the server with ftp for pagelines-customize/functions.php to manually overwrite it but can't find.

My original code that worked fine is below

Any help very much appreciated.

Please Login or Register to see this Hidden Content



#2 Henry Perkins

Henry Perkins

    Friendly Contributor

  • Members

  • 198 posts
  • LocationAustin, TX
  • Country: Country Flag

Posted 19 April 2012 - 01:57 PM

The best way to get to your functions.php at this point is through FTP. The pagelines-customize is in wp-content/plugins/pagelines-customize/ In there you'll find your functions.php to clean up.

#3 chasenet

chasenet

    Advanced Member

  • Members
  • 47 posts
  • LocationEngland

Posted 19 April 2012 - 04:24 PM

Many thanks...sorted