Page 1 of 1

Internal 500 error

Posted: Sun Jan 07, 2018 9:43 am
by downtown
Hi,

I tried renaming all the plugins and it didn't work. Can anyone help with this? The website is santarosaplumbing.net.

The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, support@sonic.net and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.

Apache/1.3.41 Server at santarosaplumbing.net Port 80

Thank you!!!
Steve Brown

Re: Internal 500 error

Posted: Sun Jan 07, 2018 4:56 pm
by robert_s
Error is /.htaccess: Header takes two or three arguments, an action, header and value

Best I could figure out is that commenting out Header append Vary User-Agent env=!dont-vary in your .htaccess resolves the issue but there are other issues.

Maybe someone with more WordPress experience can comment.

Re: Internal 500 error

Posted: Mon Jan 08, 2018 9:12 am
by downtown
If I disable the .htaccess it still doesn't work

Re: Internal 500 error

Posted: Tue Jan 09, 2018 7:52 am
by robert_s
In addition to the .htaccess problem, one of the plugins was not compatible with Apache 1.3.

Re: Internal 500 error

Posted: Thu Jan 11, 2018 8:23 am
by downtown
Hi,

I commented out the .htaccess string, nothing happened. I renamed ALL the plugins, nothing happened. It still reads Internal Server Error 500.

My theme developer says it's an ISP issue. We need more help please!!!!



"Hi Mikealwood88,

I am sorry but it's server error
You have to contact to your hosting provider regarding the server error.

Thanks"

Re: Internal 500 error

Posted: Thu Jan 11, 2018 5:35 pm
by drew.phillips
Hi downtown,

I took a look at the site and corrected the .htaccess file but there are still other issues.

It looks like the "develop" directory and the primary site in the root folder have crossed over. The w3-total-cache plugin wrote to the .htaccess file in your main directory and added entries that are not compatible with our version of Apache. They are all the AddOutputfFilterByType entries.

After I commented those out, the site no longer returns a 500 error, but is failing to load. This is due to:

PHP Fatal error: Call to undefined function apply_filters() in /nfs/www/WWW_pages/yourusername/santarosaplumbing.net/wp-includes/load.php on line 316

I checked that file against the latest version of WordPress and they do not match up despite wp-includes/version.php showing it is 4.9.1 (the latest). The error stemming from that file would be fixed by having the correct version of that file.

I'd suggest uploading all files from the latest WordPress package over your existing site files to fix any remaining issues.

If you re-enable the w3-total-cache plugin again, it will break the .htaccess again so I'd shy away from that plugin.

My conclusion is that two things happened, perhaps a mixup working on the develop site vs the live site, and compatibility issues with the w3-total-cache plugin that cause the original 500 error.

Uploading the latest WordPress files into the root should get the site back up and running again.

Re: Internal 500 error

Posted: Thu Jan 11, 2018 5:48 pm
by downtown
I replaced everything except the content folder. this is the error I am getting now

Parse error: syntax error, unexpected end of file in /nfs/www/WWW_pages/downtown/santarosaplumbing.net/wp-includes/random_compat/random_bytes_dev_urandom.php on line 127

Re: Internal 500 error

Posted: Thu Jan 11, 2018 5:51 pm
by drew.phillips
A quick peek at this file shows that it looks like the end got cut off. It should be around 147 lines and is missing everything after that point.