WordPress.org

Forums

Social Metrics Tracker
[resolved] Internal Server Error (17 posts)

  1. adechriz
    Member
    Posted 1 year ago #

    I got 500 Internal Server Error when activating this plugin :(

    i don't know what's wrong

    https://wordpress.org/plugins/social-metrics-tracker/

  2. Ben Cole
    Member
    Plugin Author

    Posted 1 year ago #

    Hi adechriz,

    What version of PHP does your server use? I just removed some code which required version 5.3 of PHP, that might have been the issue. Can you try again and let me know if it works now? Version 1.0.2 of the plugin has this fix.

  3. adechriz
    Member
    Posted 12 months ago #

    hi be,

    thank you for your reply, i'm using mediatemple grid service and PHP Version 5.3.27. that's what i got from phpinfo file. i already updating your plugin but it still filed to active :(

    i successfully activated your plugin on localhost, but didn't works on my online server.

    thank you..

  4. Ben Cole
    Member
    Plugin Author

    Posted 11 months ago #

    Are you receiving any specific error message, or are you able to check the server PHP error logs to see what the error message might be?

  5. dzawacki
    Member
    Posted 8 months ago #

    I'm also receiving a 500 Internal Server Error when activating.

    "Plugin could not be activated because it triggered a fatal error."

    My PHP version is 5.4.30

    I really would like to use this plugin as it seems to be the nicest version of this which I have come across yet. Hopefully it's a minor tweak and it'll work.

  6. Ben Cole
    Member
    Plugin Author

    Posted 8 months ago #

    Hi dzawacki,

    What web host are you using? Are you able to check your server error log to see exactly what the fatal error message was when you tried to activate the plugin? I'd like to see if I can fix the problem, but I need to get more info or be able to re-create the problem in order to fix it.

  7. dzawacki
    Member
    Posted 8 months ago #

    I'm using 1and1. Unfortunately it doesn't give me access to the server reports.

    Is there any other method than through their Control Panel that you know of that I could get the server error log?

  8. dzawacki
    Member
    Posted 8 months ago #

    Okay, I found the logs. The first instance of the error for this reads:

    65.30.146.119 - - [30/Jul/2014:12:37:58 -0400] "GET /wp/wp-admin/plugins.php?error=true&plugin=social-metrics-tracker%2Fsocial-metrics-tracker.php<strong>&_error_nonce=1a20db7482</strong> HTTP/1.1" 200 76821 sassyhacksaws.com "http://sassyhacksaws.com/wordpress/wp-admin/plugins.php" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.125 Safari/537.36" "-"

    I don't think it offers anything helpful and I couldn't find a log of a 500 error, but if it helps the issue, great.

  9. Ben Cole
    Member
    Plugin Author

    Posted 8 months ago #

    Can you post the lines just above those from that log file? The first line you posted looks like what happens after the error occurs, so I'm hoping there might be another error message right above it with some information.

  10. dzawacki
    Member
    Posted 8 months ago #

    The two lines above it are:

    65.30.146.119 - - [30/Jul/2014:12:37:56 -0400] "GET /wordpress/wp-admin/plugins.php?action=activate&plugin=social-metrics-tracker%2Fsocial-metrics-tracker.php&plugin_status=all&paged=1&s&_wpnonce=edbe621519 HTTP/1.1" 200 191 sassyhacksaws.com "http://sassyhacksaws.com/wordpress/wp-admin/plugins.php" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.125 Safari/537.36" "-"

    74.208.59.41 - - [30/Jul/2014:12:37:57 -0400] "POST /wordpress/wp-cron.php?doing_wp_cron=1406738277.0189540386199951171875 HTTP/1.0" 200 - sassyhacksaws.com "-" "WordPress/3.9.1; http://sassyhacksaws.com" "-"

    The line before these two takes place 20 seconds before, so I'm assuming it's unrelated.

  11. Ben Cole
    Member
    Plugin Author

    Posted 8 months ago #

    Hmm, is that from the "Access Log" or the "Error Log"? It looks like that's just a log of the pages which were loaded and it doesn't have any information about why activating the plugin failed. If there is another log called "Error log" it might have a more helpful error message, but I'm not sure.

    I just published version 1.1.0 of the plugin which has some new features. I don't think that it will fix the issue, but try it out and see if by chance it does fix things. If it's still not working, I can take a closer look at your server if you'd like. Email me at bluemicrobyte@gmail.com if you want me to log in and see if I can take a look.

  12. dzawacki
    Member
    Posted 8 months ago #

    It's the access log. I guess I hoped to find an error message in the access log.

    I don't have access to the error log it looks like.

    Same Internal Server Error when I tried to activate the plugin with the new version. I'm going to try the plugin on another install with a different host and I'll report back.

  13. dzawacki
    Member
    Posted 8 months ago #

    Okay, so the plugin worked on a different install location.

    After trying the new version on the orignal post, I did get a Fatal Error message from within WordPress:

    Fatal error: Out of memory (allocated 35389440) (tried to allocate 36 bytes) in /htdocs/wordpress/wp-includes/query.php on line 3407

    Not sure if this is helps with your debugging as it's an WordPress file.

  14. Ben Cole
    Member
    Plugin Author

    Posted 8 months ago #

    Hmm, that error message tells us the server is running out of memory when you try to activate the plugin. I Googled "wordpress out of memory when activating plugin" and found a bunch of people who have similar issues with 1 and 1 hosting. Some folks were able to resolve the issue by using php.ini or .htaccess to increase the memory limit for PHP, while others said that 1 and 1 imposes strict memory limits that cannot be increased.

    See if you can increase the memory limit for PHP on your server, that might help. Deleting un-used WP plugins might also help, but not necessarily.

  15. dzawacki
    Member
    Posted 8 months ago #

    Yes, I've known about the memory issue with 1and1 for a long time now. Only recently did I discover a fix for it, but it still is limited to 80M. I'm going to try to up it, just for kicks.

    Also, I currently only have plugins I'm using installed. These are the bare minimum plugins for my site as well.

  16. dzawacki
    Member
    Posted 8 months ago #

    Upping the memory allowance didn't help. I tried deactivating some of the plugins and it still won't activate.

  17. Ben Cole
    Member
    Plugin Author

    Posted 5 months ago #

    Hello, I think I have been able to identify the problem. Version 1.3 of the plugin should be able to activate without causing this error. I moved some setup tasks outside of the activation code so that those tasks can be done separately. Please try it out and let me know if there is still an error on plugin activation.

    https://wordpress.org/plugins/social-metrics-tracker/

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Social Metrics Tracker
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic