[Resolved] functions.php error code

Home Forums Support [Resolved] functions.php error code

Home Forums Support functions.php error code

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #229048
    Camilla

    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?

    #229076
    Jean Paiva
    Developer

    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' ) ) :

    #229095
    Tom
    Lead Developer
    Lead Developer

    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!

    #229468
    Camilla

    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

    #229565
    Tom
    Lead Developer
    Lead Developer

    Glad we could help 🙂

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.