Author Topic: 500 Internal Server Error  (Read 7265 times)

chrischaves

  • Newbie
  • Posts: 2
500 Internal Server Error
« on: February 02, 2014, 10:15:17 am »
Hi,
I just installed Powerpress but when I click on settings I keep getting this 500 Internal Server Error:

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator and inform them of the time the error occurred, and the actions you performed just before this error.

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

I use GoDaddy for my hosting.  I called them and they didn't see anything wrong on their side.  I did see an old post on this forum form 2010 that suggested the following but that didn't work. 
 
As a result, I added these two lines to .htaccess (our webhost 1and1 also suggested this fix on their site http://faq.1and1.com/scripting_languages_supported/php/9.html)

AddType x-mapp-php5 .php
AddHandler x-mapp-php5 .php


Please help.

Thanks!
Chris

angelo

  • CIO, RawVoice
  • Administrator
  • Hero Member
  • *****
  • Posts: 4483
Re: 500 Internal Server Error
« Reply #1 on: February 03, 2014, 12:42:42 pm »
WordPress would not run by itself if you had such an outdated version of PHP, so the solution you got from 1 and 1 is very outdated.

There is most likely a theme or plugin conflict. First make sure you have the latest WordPress installed. This may help as well: http://create.blubrry.com/resources/powerpress/using-powerpress/diagnosing-feed-andor-player-issues-with-powerpress/

chrischaves

  • Newbie
  • Posts: 2
Re: 500 Internal Server Error
« Reply #2 on: February 03, 2014, 01:54:01 pm »
Thanks for the quick reply! Unfortunately it didn't work. I currently use the optimize press theme but I changed it to twenty-twelve, de-activated all my other plug-ins, cleared my cache, deleted and re-installed the Powerpress plug-in but I still get that error when I click on the Powerpress "Settings" link.  I am able to access the other links without a problem (like the video player link).  I verified that I am running the most recent version of wordpress and GoDaddy said everything looked fine on their side.  Is there something else I could be missing? 

Thanks!

angelo

  • CIO, RawVoice
  • Administrator
  • Hero Member
  • *****
  • Posts: 4483
Re: 500 Internal Server Error
« Reply #3 on: February 03, 2014, 02:08:37 pm »
Try enabling Debug mode to find out what is causing the error. http://codex.wordpress.org/Debugging_in_WordPress You need to have knowledge how to edit php files, specifically the wp-config.php.

sbmorrissey

  • Newbie
  • Posts: 8
Re: 500 Internal Server Error
« Reply #4 on: February 25, 2014, 09:30:30 am »
Was there ever any resolution to this problem? I am getting the same problem: Audio Player, Video Player, Tools (and diagnostics) pages all work fine. Unfortunately the settings page always throws a 500 Internal Server error.

FYI, I am running WP Multisite v.3.8.1 and Blubrry 5.0.4

angelo

  • CIO, RawVoice
  • Administrator
  • Hero Member
  • *****
  • Posts: 4483
Re: 500 Internal Server Error
« Reply #5 on: February 25, 2014, 09:36:41 am »
No. Why don't you do what we explained in the last reply and enable debug mode, them report back what the error is. That will help us fix the issue.

sbmorrissey

  • Newbie
  • Posts: 8
Re: 500 Internal Server Error
« Reply #6 on: February 25, 2014, 01:34:39 pm »
OK, thank you for the reply and offer.

I enabled debugging mode and went into the PowerPress tools page. This is what I got:
Code: [Select]
Notice: wpdb::escape is deprecated since version 3.6! Use wpdb::prepare() or esc_sql() instead. in /home/content/55/4071555/html/wp-includes/functions.php on line 2913

Strict Standards: Only variables should be passed by reference in /home/content/55/4071555/html/wp-content/plugins/p3-profiler/p3-profiler.php on line 56

Notice: Use of undefined constant picon_action - assumed 'picon_action' in /home/content/55/4071555/html/wp-content/plugins/personal-favicon/personal-favicon.php on line 116

Strict Standards: Declaration of Walker_Category_Checklist_ERP::start_lvl() should be compatible with Walker::start_lvl(&$output, $depth = 0, $args = Array) in /home/content/55/4071555/html/wp-settings.php on line 210

Strict Standards: Declaration of Walker_Category_Checklist_ERP::end_lvl() should be compatible with Walker::end_lvl(&$output, $depth = 0, $args = Array) in /home/content/55/4071555/html/wp-settings.php on line 210

Strict Standards: Declaration of Walker_Category_Checklist_ERP::start_el() should be compatible with Walker::start_el(&$output, $object, $depth = 0, $args = Array, $current_object_id = 0) in /home/content/55/4071555/html/wp-settings.php on line 210

Strict Standards: Declaration of Walker_Category_Checklist_ERP::end_el() should be compatible with Walker::end_el(&$output, $object, $depth = 0, $args = Array) in /home/content/55/4071555/html/wp-settings.php on line 210

Strict Standards: Non-static method tpg_gp_factory::create_admin() should not be called statically in /home/content/55/4071555/html/wp-content/plugins/tpg-get-posts/tpg-get-posts.php on line 48

Strict Standards: Non-static method tpg_gp_factory::create_lic_validation() should not be called statically, assuming $this from incompatible context in /home/content/55/4071555/html/wp-content/plugins/tpg-get-posts/inc/class-tpg-gp-admin.php on line 44

Strict Standards: Non-static method tpg_gp_factory::create_resp_obj() should not be called statically, assuming $this from incompatible context in /home/content/55/4071555/html/wp-content/plugins/tpg-get-posts/inc/class-tpg-lic-validation.php on line 45

Strict Standards: Declaration of Suffusion_MM_Walker_Edit::start_lvl() should be compatible with Walker_Nav_Menu::start_lvl(&$output, $depth = 0, $args = Array) in /home/content/55/4071555/html/wp-includes/theme.php on line 1731

Strict Standards: Declaration of Suffusion_MM_Walker_Edit::end_lvl() should be compatible with Walker_Nav_Menu::end_lvl(&$output, $depth = 0, $args = Array) in /home/content/55/4071555/html/wp-includes/theme.php on line 1731

Strict Standards: Declaration of Suffusion_MM_Walker_Edit::start_el() should be compatible with Walker_Nav_Menu::start_el(&$output, $item, $depth = 0, $args = Array, $id = 0) in /home/content/55/4071555/html/wp-includes/theme.php on line 1731

Notice: has_cap was called with an argument that is deprecated since version 2.0! Usage of user levels by plugins and themes is deprecated. Use roles and capabilities instead. in /home/content/55/4071555/html/wp-includes/functions.php on line 3006

Then on the home page, I got this:

Code: [Select]
Notice: wpdb::escape is deprecated since version 3.6! Use wpdb::prepare() or esc_sql() instead. in /home/content/55/4071555/html/wp-includes/functions.php on line 2913

Notice: Use of undefined constant picon_action - assumed 'picon_action' in /home/content/55/4071555/html/wp-content/plugins/personal-favicon/personal-favicon.php on line 116

Strict Standards: Declaration of Walker_Category_Checklist_ERP::start_lvl() should be compatible with Walker::start_lvl(&$output, $depth = 0, $args = Array) in /home/content/55/4071555/html/wp-content/plugins/efficient-related-posts/efficient-related-posts.php on line 594

Strict Standards: Declaration of Walker_Category_Checklist_ERP::end_lvl() should be compatible with Walker::end_lvl(&$output, $depth = 0, $args = Array) in /home/content/55/4071555/html/wp-content/plugins/efficient-related-posts/efficient-related-posts.php on line 594

Strict Standards: Declaration of Walker_Category_Checklist_ERP::start_el() should be compatible with Walker::start_el(&$output, $object, $depth = 0, $args = Array, $current_object_id = 0) in /home/content/55/4071555/html/wp-content/plugins/efficient-related-posts/efficient-related-posts.php on line 594

Strict Standards: Declaration of Walker_Category_Checklist_ERP::end_el() should be compatible with Walker::end_el(&$output, $object, $depth = 0, $args = Array) in /home/content/55/4071555/html/wp-content/plugins/efficient-related-posts/efficient-related-posts.php on line 594

Strict Standards: Non-static method tpg_gp_factory::create_process() should not be called statically in /home/content/55/4071555/html/wp-content/plugins/tpg-get-posts/tpg-get-posts.php on line 56

Strict Standards: Declaration of Suffusion_MM_Walker::start_el() should be compatible with Walker_Nav_Menu::start_el(&$output, $item, $depth = 0, $args = Array, $id = 0) in /home/content/55/4071555/html/wp-content/themes/suffusion/library/suffusion-walkers.php on line 39

Please let me know if there are other pages that would yield better error messages (FYI, the PowerPress settings page just shows the 500 Internal Server Error)

angelo

  • CIO, RawVoice
  • Administrator
  • Hero Member
  • *****
  • Posts: 4483
Re: 500 Internal Server Error
« Reply #7 on: February 25, 2014, 02:07:55 pm »
Can you run these results with all the other plugins disabled? You can see the notices include a lot of chatter from other plugins.

angelo

  • CIO, RawVoice
  • Administrator
  • Hero Member
  • *****
  • Posts: 4483
Re: 500 Internal Server Error
« Reply #8 on: February 25, 2014, 02:10:47 pm »
You can also try adding the following 2 lines to your .htaccess file, at the top:


Code: [Select]
php_value error_reporting 2047
php_flag display_errors on

Depending on your server this may not work so be prepared to remove those lines promptly if your entire web site stops working.

angelo

  • CIO, RawVoice
  • Administrator
  • Hero Member
  • *****
  • Posts: 4483
Re: 500 Internal Server Error
« Reply #9 on: February 25, 2014, 02:12:36 pm »
lastly, see if this specific URL gives you an error, go to your example.com/wp-admin/ folder and add admin.php?page=powerpress/powerpressadmin_tools.php&action=powerpress-diagnostics to the URL then hit enter. Does this also give you a 500 error?

sbmorrissey

  • Newbie
  • Posts: 8
Re: 500 Internal Server Error
« Reply #10 on: February 25, 2014, 02:41:53 pm »
lastly, see if this specific URL gives you an error, go to your example.com/wp-admin/ folder and add admin.php?page=powerpress/powerpressadmin_tools.php&action=powerpress-diagnostics to the URL then hit enter. Does this also give you a 500 error?

I will answer the above question. All of the PowerPress pages work except the settings page. The diagnostics gives me all 3 green check marks. Also I can view, change, and select the audio & video players from their respective pages. The error is only with the Settings page.

I agree that there is a lot of "chatter" from other plugins and themes. Unfortunately this is a live site and I may have to wait until next Sunday night to accomplish this as it is the slowest time of the week for traffic.

angelo

  • CIO, RawVoice
  • Administrator
  • Hero Member
  • *****
  • Posts: 4483
Re: 500 Internal Server Error
« Reply #11 on: February 25, 2014, 03:39:09 pm »
Okay no problem. I will continue to test with the information I have from your last reply. When you can run your page with the changes to your .htaccess, hopefully it will tell us what the PHP error is (that is causing the 500 error).

By the way, your error.log file on your server may also tell what the problem is. If you can cause the 500 error once, then promptly use the "tail error.log" from the command line, you can see what the last errors were on your server.

sbmorrissey

  • Newbie
  • Posts: 8
Re: 500 Internal Server Error
« Reply #12 on: February 25, 2014, 06:33:18 pm »
You can also try adding the following 2 lines to your .htaccess file, at the top:


Code: [Select]
php_value error_reporting 2047
php_flag display_errors on

Depending on your server this may not work so be prepared to remove those lines promptly if your entire web site stops working.
Yeah, this kinda blew things up... but at least I know my error logs are working  ;D

The first few are when the PHP code in the .htaccess blew things up, but later ones are when I was trying to navigate to the settings page. Hope this helps.

-Stephen
Code: [Select]
[Tue Feb 25 16:12:15 2014] [4071555] [core:alert] [client 173.233.12.11:55500] /var/chroot/home/content/55/4071555/html/.htaccess: Invalid command 'php_value', perhaps misspelled or defined by a module not included in the server configuration, referer http://www.stephenbmorrissey.com/cws/wp-admin/
[Tue Feb 25 16:12:23 2014] [4071555] [core:alert] [client 173.233.12.11:55501] /var/chroot/home/content/55/4071555/html/.htaccess: Invalid command 'php_value', perhaps misspelled or defined by a module not included in the server configuration, referer http://www.stephenbmorrissey.com/cws/wp-admin/
[Tue Feb 25 16:12:25 2014] [4071555] [core:alert] [client 173.233.12.11:55502] /var/chroot/home/content/55/4071555/html/.htaccess: Invalid command 'php_value', perhaps misspelled or defined by a module not included in the server configuration, referer http://www.stephenbmorrissey.com/cws/wp-admin/
[Tue Feb 25 16:17:31 2014] [4071555] [fcgid:warn] (104)Connection reset by peer: [client 173.233.12.11:56053] mod_fcgid: error reading data from FastCGI server, referer http://www.stephenbmorrissey.com/cws/wp-admin/
[Tue Feb 25 16:17:31 2014] [4071555] [fcgid:warn] (104)Connection reset by peer: [client 173.233.12.11:56053] mod_fcgid: ap_pass_brigade failed in handle_request_ipc function, referer http://www.stephenbmorrissey.com/cws/wp-admin/
[Tue Feb 25 16:19:10 2014] [4071555] [fcgid:warn] (104)Connection reset by peer: [client 173.233.12.11:56190] mod_fcgid: error reading data from FastCGI server, referer http://www.stephenbmorrissey.com/cws/wp-admin/
[Tue Feb 25 16:19:10 2014] [4071555] [fcgid:warn] (104)Connection reset by peer: [client 173.233.12.11:56190] mod_fcgid: ap_pass_brigade failed in handle_request_ipc function, referer http://www.stephenbmorrissey.com/cws/wp-admin/
[Tue Feb 25 16:21:43 2014] [4071555] [fcgid:warn] (104)Connection reset by peer: [client 173.233.12.11:56403] mod_fcgid: error reading data from FastCGI server, referer http://www.stephenbmorrissey.com/cws/wp-admin/admin.php?page=powerpress/powerpressadmin_videoplayer.php
[Tue Feb 25 16:21:43 2014] [4071555] [fcgid:warn] (104)Connection reset by peer: [client 173.233.12.11:56403] mod_fcgid: ap_pass_brigade failed in handle_request_ipc function, referer http://www.stephenbmorrissey.com/cws/wp-admin/admin.php?page=powerpress/powerpressadmin_videoplayer.php

angelo

  • CIO, RawVoice
  • Administrator
  • Hero Member
  • *****
  • Posts: 4483
Re: 500 Internal Server Error
« Reply #13 on: February 26, 2014, 03:16:09 am »
The connection reset errors dont tell us why the php script ended. It may be a timeout issue or something else with your fcgi setup. I will do some searching tomorrow about fastcgi and php logging errors.

angelo

  • CIO, RawVoice
  • Administrator
  • Hero Member
  • *****
  • Posts: 4483
Re: 500 Internal Server Error
« Reply #14 on: February 26, 2014, 03:29:00 am »
I found this on logging fastcgi errors. You need to edit the php.INI file. http://www.cyberciti.biz/tips/php-howto-turn-on-error-log-file.html