Website breaking - 500 errors

My website keeps breaking in layout and images going funky. I’ve moved my production site to development, and my staging to production while I figure this out. But my site will keep breaking until I figure out what this is. According to my WPEngine, there’s these errors appearing:

5 PHP Parse error: syntax error, unexpected ‘<’, expecting end of file in /nas/content/live/sortabledev/wp-content/themes/pro/footer.php on line 11

[Mon Aug 17 21:04:24.330294 2020] [php7:notice] [pid 23884] [client 192.171.117.235:35326] auditor:event=switch_theme {“new_name”:“Pro”,“blog_id”:1,“event”:“switch_theme”,“current_user_id”:18,“remote_addr”:“192.171.117.235”}, referer: https://sortabledev.wpengine.com/wp-admin/themes.php [Mon Aug 17 21:04:45.233698 2020] [php7:error] [pid 31214] [client 192.171.117.235:36516] PHP Parse error: syntax error, unexpected ‘<’, expecting end of file in /nas/content/live/sortabledev/wp-content/themes/pro/footer.php on line 11, referer: https://sortabledev.wpengine.com/wp-admin/admin.php?page=x-addons-home [Mon Aug 17 21:07:17.897348 2020] [php7:error] [pid 17819] [client 99.250.42.253:44712] PHP Parse error: syntax error, unexpected ‘<’, expecting end of file in /nas/content/live/sortabledev/wp-content/themes/pro/footer.php on line 11, referer: https://sortabledev.wpengine.com/wp-admin/edit.php [Mon Aug 17 21:07:19.668712 2020] [php7:error] [pid 17819] [client 99.250.42.253:44808] PHP Parse error: syntax error, unexpected ‘<’, expecting end of file in /nas/content/live/sortabledev/wp-content/themes/pro/footer.php on line 11, referer: https://sortabledev.wpengine.com/wp-admin/edit.php

Hi @cling,

Thanks for reaching out.

To better help with your concern, please give us the following information in a Secure Note.

  • WordPress Login URL
  • Admin level username and password
  • FTP Access

You can find the Secure Note button at the bottom of your posts.

Thank you.

I’ve added a secure note. Please let me know if you need anything else!

Hi @cling,

There might be few different reasons for this issue, I would suggest you troubleshoot with a few of the common issues:

  1. Theme Related Issue
  2. TESTING FOR PLUGIN CONFLICT
  3. Increasing PHP Memory Limit

If none of these helps, can you please add the following code to your wp-config.php for debug setup.
And please inform us for further support.

// Enable WP_DEBUG mode
define( 'WP_DEBUG', true );

// Enable Debug logging to the /wp-content/debug.log file
define( 'WP_DEBUG_LOG', true );

// Disable display of errors and warnings 
define( 'WP_DEBUG_DISPLAY', false );
//SET PHP INI DISPLAY ERROR FALSE
@ini_set( 'display_errors', 0 );

Please find the video will help you to edit wp-config.php and add the above code: https://www.youtube.com/watch?v=3SDPTafEM8o

Hope it helps.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.