Archived topic
functions.php error code
4 replies · Started by Camilla on September 24, 2016
Hi Tom,
so sorry to write you anymore, I've got a big trouble with the theme editor. I was working with simple.php and looking to your function.php file and something goes wrong.
My site give me this:
Parse error: syntax error, unexpected '<' in /home/gingeri4/public_html/wp-content/themes/generatepress/functions.php on line 354
What can I do?Could you help me?
Hello Camilla,
This is PHP error, maybe there's a '<' on line 354 of your functions.php
You can find the error on line 354 of your functions.php, check for the '<' element on that line.
The orignal line is this: if ( ! function_exists( 'generate_get_footer_widgets' ) ) :
PHP is very unforgiving - it's always a good idea to have access to your server via FTP or File Manager handy when changing it.
The functions.php file should never be changed - you can open this file using the file manager in your hosting control panel, and replace the contents of the file with the latest core file contents: https://themes.svn.wordpress.org/generatepress/1.3.39/functions.php
Hope this helps!
Thank you Tom and Jean for your kindness!!
I feel really silly ...I've fixed all with your indications Tom.
Thank once again for your support
Glad we could help :)