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.

Memory problem with Paypal addon (headers already sent)

  1. Gaslight
    Member

    Recently I suffered memory problems on one of my Wordpress single site installation.

    I proceeded to disable all plugins and reactivate them one by one

    Found out that the Paypal add on is causing an error when I try to upload media from the media uploader

    Warning: Cannot modify header information - headers already sent by (output started at /home/ntdswp/public_html/dev/content/plugins/gravityformspaypal/paypal.php:5643) in /home/ntdswp/public_html/dev/wp-admin/async-upload.php on line 26
    
    Fatal error: Out of memory (allocated 97517568) (tried to allocate 4800 bytes) in /home/ntdswp/public_html/dev/wp-includes/media.php on line 258

    this is the error Wordpress gave me

    If i disable that plugin (Gravity Forms paypal addon) everything went back to normal

    Posted 11 years ago on Tuesday August 14, 2012 | Permalink
  2. Gaslight
    Member

    I think the error is caused by empty spaces at the end of "paypal.php" file

    having some space before and after the final closing php bracket

    ?>

    may have caused the issue

    Posted 11 years ago on Tuesday August 14, 2012 | Permalink
  3. Gaslight
    Member

    also plugin-upgrade.php had a similar issue

    Posted 11 years ago on Tuesday August 14, 2012 | Permalink
  4. I have not seen those errors before with the Gravity Forms plugin or any of the add-ons. Were you able to resolve this issue or do you still need help?

    Posted 11 years ago on Tuesday August 14, 2012 | Permalink
  5. Gaslight
    Member

    well apparently yes, but I think the errors show only under specific circumstances and there's definitely something wrong with my Wordpress installation too - however at least now I don't get those errors coming from that addon. I think it's a good practice not to leave empty spaces at the end of a closing php bracket.

    http://wordpress.stackexchange.com/questions/61800/memory-errors-with-media-upload-wordpress-uses-less-memory-than-available-or-in

    Posted 11 years ago on Tuesday August 14, 2012 | Permalink
  6. I do not have any blank lines at the end of either of those files in my Gravity Forms PayPal installation.

    paypal.php http://i.minus.com/iAcOAeWslBvsI.png
    plugin-upgrade.php http://i.minus.com/iGyKKH3yehk5z.png

    I'm uncertain why your experience was different.

    Posted 11 years ago on Wednesday August 15, 2012 | Permalink