Community Forums › Forums › Archived Forums › General Discussion › Getting 500 Error; WP Engine Hosted Site
- This topic has 5 replies, 4 voices, and was last updated 7 years, 2 months ago by Tony-BV.
-
AuthorPosts
-
January 23, 2017 at 4:39 pm #199897saratonin22Member
This weekend, two sites I host on WP Engine both started having 500 errors, and my IT plus WP Engine support zeroed in on line 24 of core Genesis theme's header.php file as culprit. They commented out this line (yes, I know you're never really supposed to edit Genesis core), which cleared the 500 errors, but now there are significant display issues with the sites. Any idea what might be going on? We're very new to WP Engine by the way; one site has been there a month, and the other just moved this past week. Here's chat log with WP Engine support:
Drew H. (WP Engine Support)
Jan 21, 2:00 PM CST
Hi Shanu,
Thanks for calling in again. I was able to get the site back up by commenting out line 24 of wp-content/themes/genesis/header.php, which was referenced in the error I sent in my initial response. The site is now loading again.
For your dev's reference, that line of code (now commented out) is:22 /*genesis_markup( array( 23 'html5' => '<body %s>^M 24 <script type="application/javascript">var toggleMenu = function(){var m = document.getElementById('wporg-header-menu'),c = m.className;m.className = 25 'xhtml' => sprintf( '<body %s>^M 26 <script type="application/javascript">var toggleMenu = function(){var m = document.getElementById('wporg-header-menu'),c = m.className;m.className = 27 'context' => 'body', 28 ) ); 29 */
Please let us know if you have any other questions or issues in the meantime.
Cheers,
Drew H. | Support Specialist WP Engine - Finely Tuned WordPressshanu.shaji
Jan 21, 1:42 PM CST
+Team
Hi Drew,
Please see below the findings from our end.
[Sat Jan 21 19:27:01.873237 2017] [:error] [pid 27328] [client 207.46.13.135:45336] PHP Warning: mysql_real_escape_string(): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) in /nas/content/live/b2binsight/wp-content/plugins/permalink-finder/includes/pf-404.php on line 621
This is consistent with a 500 error and would indicate that the blog cannot connect to the MySQL DB.
Could you please look in to this issue.?
Thanks,
Shanu K. Shaji | BOS | Global Consumer SolutionsDrew H. (WP Engine Support)
Jan 21, 1:03 PM CST
Hi Shanu,
Thanks for reaching out to us via phone today! As we discussed, I'm opening this ticket per your request to provide the error I'm seeing on the site.
The insight.equifax.com site is currently returning a 500 error, and when I look in the error logs I see the following:
[Sat Jan 21 18:50:44.081127 2017] [:error] [pid 16960] [client 198.5.135.27:43251] PHP Parse error: syntax error, unexpected 'wporg' (T_STRING), expecting ')' in /nas/content/live/b2binsight/wp-content/themes/genesis/header.php on line 24
[Sat Jan 21 18:51:14.398079 2017] [:error] [pid 16960] [client 40.77.167.5:43276] PHP Parse error: syntax error, unexpected 'wporg' (T_STRING), expecting ')' in /nas/content/live/b2binsight/wp-content/themes/genesis/header.php on line 24
[Sat Jan 21 18:53:34.903480 2017] [:error] [pid 19061] [client 157.55.39.88:43395] PHP Parse error: syntax error, unexpected 'wporg' (T_STRING), expecting ')' in /nas/content/live/b2binsight/wp-content/themes/genesis/header.php on line 24
[Sat Jan 21 18:53:59.720620 2017] [:error] [pid 19062] [client 54.198.89.146:43408] PHP Parse error: syntax error, unexpected 'wporg' (T_STRING), expecting ')' in /nas/content/live/b2binsight/wp-content/themes/genesis/header.php on line 24, referer: http://insight.equifax.com/
[Sat Jan 21 18:55:54.890466 2017] [:error] [pid 19062] [client 40.77.167.38:43523] PHP Parse error: syntax error, unexpected 'wporg' (T_STRING), expecting ')' in /nas/content/live/b2binsight/wp-content/themes/genesis/header.php on line 24
[Sat Jan 21 18:56:37.795070 2017] [:error] [pid 19062] [client 66.162.212.19:43582] PHP Parse error: syntax error, unexpected 'wporg' (T_STRING), expecting ')' in /nas/content/live/b2binsight/wp-content/themes/genesis/header.php on line 24
This error is referencing the theme's header file. Please let us know if you have any other questions or issues in the meantime.
Cheers,
Drew H. | Support Specialist WP Engine - Finely Tuned WordPressJanuary 23, 2017 at 5:54 pm #199900Victor FontModeratorThose lines that are commented out are not even in header.php! There are no references to any scripts. Any chance your site was hacked?
I would download a fresh copy of the Genesis Framework and reinstall it.
Regards,
Victor
https://victorfont.com/
Call us toll free: 844-VIC-FONT (842-3668)
Have you requested your free website audit yet?January 25, 2017 at 6:30 am #199989bestadwiseMemberi observed all the code snippets
I don't find anything wrong..not even in header.php
I will gather some information and tell you later
Best Regards
Gayatri, https://gayatrimantra.org
Gayatri
January 26, 2017 at 11:36 am #200078Tony-BVParticipantHi, I am having the same issue. I just up updated to the WordPress 4.7.1. and I am getting the same 500 Error. I cannot get into my admin area. Here is the error message I get. Any help would be appreciated. http://www.net2cosmetics.com/wp-admin/upgrade.php?_wp_http_referer=%2Fwp-admin%2F
January 26, 2017 at 5:39 pm #200090Victor FontModeratorYou're site seems fine Tony-BV.
Regards,
Victor
https://victorfont.com/
Call us toll free: 844-VIC-FONT (842-3668)
Have you requested your free website audit yet?January 26, 2017 at 7:08 pm #200098Tony-BVParticipantThanks Victor, I appreciate you looking at it. It turned out to be my Cache plug in that was causing the error. I diabled it and now it's working fine. Thanks
-
AuthorPosts
- The forum ‘General Discussion’ is closed to new topics and replies.