• I made some amendments to my theme’s functions.php file, which caused a crash. So I replaced it with a functions.php file from another site using the same theme – yet the error message

    Parse error: syntax error, unexpected ‘<‘ in /www/sites/3f2/f8a/www.anyoldlights.co.uk/web/wp-content/themes/Divi/functions.php on line 5020

    will not go away. (Is there a server-side delay – I did this over an hour ago but error message persists?)

    Equally odd, only the www. version crashes.

    http://www.anyoldlights.co.uk – kaput
    http://anyoldlights.co.uk – fine

    Advice gratefully received!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Remove ‘<‘ symbol at line 5020. It’s causing a syntax error. (backup everything first)

    Thread Starter mrsdextrose

    (@mrsdextrose)

    The functions.php file ends at line 5018 (I did add some code to the end of the file, so would have appeared on line 5020, which caused the crash – but as I said I’ve replaced that with this new version with the erroneous code erased)

    ??????

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘functions.php crash despite replacing file’ is closed to new replies.