PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

500 internal error on upload?

  1. I went to install gravity forms form wordpress and I got a "500 internal error":
    Internal Server Error
    The page you requested could not be served. This could happen for a variety of reasons, including:
    • A CGI script failed to produce any output.
    • The server is incorrectly configured.
    • The server encountered a critical error.
    There may be more information about this error in the server's error logs.

    I referred this to my service provider but they say it's a wordpress problem or a problem with the plugin.
    Any ideas?

    Posted 13 years ago on Monday March 26, 2012 | Permalink
  2. Richard Vav
    Administrator

    Without seeing the contents of the error log it is difficult to say what the problem may be, it could be that you are running out of php memory in which case you could try de-activating your other plugins and then install gravity forms, if it installs successfully you can then re-activate your other plugins. If you then get a similar error when re-activating your other plugins it would suggest a php memory issue may be your problem.

    Posted 13 years ago on Tuesday March 27, 2012 | Permalink
  3. The 500 error is a "catch all" error notice so without analyzing web logs, there's no way to be sure what exactly is causing it.

    This looks like it's probably like a PHP memory issue. You're probably using several process-intensive plugins already and activating Gravity Forms has just put you over your limit. You can try to increase the memory limit as detailed here.

    http://www.nerdgrind.com/increase-wordpress-and-php-memory-limit/

    That fix works for most people so give it a shot and see how it goes for you.

    Posted 13 years ago on Thursday March 29, 2012 | Permalink
  4. Hopefully the info below will help admins troubleshoot this...

    I've had these mysterious 500 Internal Server errors happen twice now, both times for me I had the following situation:

    I created a WP site that allows users to create posts via Gravity Forms on a development server with MediaTemple's Grid Service. When the site was finished, tested and working perfectly, I transferred it to the client's server, again a Media Temple Grid Service account. After doing so, the form would no longer submit, I just get the ambiguous 500 Internal Server error.

    TROUBLESHOOTING STEP 1: INCREASE PHP MEMORY:
    RESULT: still getting the 500 error

    I have the PHP limits increased in WP to 64MB and MediaTemple states that all Grid Service accounts are set to 100MB on their end as well. MediaTemple does not have good things to say about Gravity Forms, by the way...apparently they get this a lot.
    __________________

    TROUBLESHOOTING STEP 2: MONKEY WITH MY FIELDS:
    RESULT: no more error, but the form can't do what I need it to do in this scenario

    I have three Post Fields setup: Body, Custom Field, and Title. If I remove the Title post field, the form will submit, but that's not particularly useful to me to create a post with no title. I only mention this as perhaps some Rocket Genius developer will glean something from it.

    TROUBLESHOOTING STEP 3: LOOK AT THE ERROR LOGS
    RESULT: everything's working! But I had to edit WP core files and really don't want to ever do that, ever + it seems to prevent the notification emails from being sent, at least to the admin one (didn't test user notifications as they're not part of this particular form)

    I've pasted the error logs below, and some testing on my part revealed that the post won't submit either on the front end of the site, or in the preview.

    ERROR LOG:

    [Wed Apr 04 06:03:54 2012] [error] [client 72.250.555.555] ALERT - canary mismatch on efree() - heap overflow detected (attacker '72.250.555.555', file '/nfs/c10/h01/mnt/xxx/domains/mydomain.com/html/wp-includes/class-phpmailer.php', line 677), referer: http://mydomain.com/upload/
    [Wed Apr 04 06:03:54 2012] [error] [client 72.250.555.555] Premature end of script headers: php-legacy, referer: http://mydomain.com/upload/

    ______________

    So I went into /wp-includes/class-phpmailer.php and simply commented out line 677, which read:

    $rt = @mail($to, $this->EncodeHeader($this->SecureHeader($this->Subject)), $body, $header);

    So in the end, I still don't get the complete functionality, in that notifications aren't sent by the form.

    With those error logs and the info above, hopefully an admin or developer here will respond with what's happening.

    Posted 13 years ago on Wednesday April 4, 2012 | Permalink