943,937 Members | Top Members by Rank

Ad:
  • PHP Discussion Thread
  • Unsolved
  • Views: 1566
  • PHP RSS
Nov 6th, 2009
0

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

Expand Post »
hi there,

How to fix this ? i got below message when activating plugin from wp-admin

Plugin could not be activated because it triggered a fatal error.
Fatal error: Out of memory (allocated 15990784) (tried to allocate 77824 bytes) in …. plugins/wp-e-commerce/wpsc-admin/display-groups.page.php on line 187

I found below code at display-groups.page.php on line 187
” if($_POST['product_width'] > 0) {
$product_width = (int)$_POST['product_width'];
} else {
$product_width = ”;
}


Also googled out "http://codex.wordpress.org/Editing_wp-config.php#Increasing_memory_allocated_to_PHP" but not working for me.

Regards,
gptArun
Similar Threads
Reputation Points: 10
Solved Threads: 0
Light Poster
gptArun is offline Offline
39 posts
since May 2008
Nov 6th, 2009
0
Re: Plugin could not be activated because it triggered a fatal error.
Usually errors occur before that line.
Oh,if you could do a var_dump before that line to see what values are you working with , ohh dont forget to put a die() in too.
PHP Syntax (Toggle Plain Text)
  1. var_dump($_POST);
  2. die();
Last edited by ax8l; Nov 6th, 2009 at 6:31 am.
Reputation Points: 10
Solved Threads: 2
Newbie Poster
ax8l is offline Offline
10 posts
since May 2009
Nov 6th, 2009
0
Re: Plugin could not be activated because it triggered a fatal error.
Hi ax8l,
I put var_dump($_POST); die(); before that line , but still occurs same problem .
Reputation Points: 10
Solved Threads: 0
Light Poster
gptArun is offline Offline
39 posts
since May 2008
Nov 6th, 2009
0
Re: Plugin could not be activated because it triggered a fatal error.
i googled your plugin and it looks like (in some cases wp 2.8...) it needs more then 32 mb of memory to run and even though you increased WP_MEMORY_LIMIT that doesnt mean that your host allows ini_set in php (that means that you cant increase your allowed memory limit).It might be a problem with the script too and i do think it can be optimized to use less,but that is their problem...sorry.
Check their forums..
PHP Syntax (Toggle Plain Text)
  1. http://www.instinct.co.nz/forums/
sorry i couldnt be more helpful.
Cheers mate!
Last edited by ax8l; Nov 6th, 2009 at 3:56 pm.
Reputation Points: 10
Solved Threads: 2
Newbie Poster
ax8l is offline Offline
10 posts
since May 2009
Nov 7th, 2009
0
Re: Plugin could not be activated because it triggered a fatal error.
thanks ax8l for your help.

god bless
Reputation Points: 10
Solved Threads: 0
Light Poster
gptArun is offline Offline
39 posts
since May 2008

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in PHP Forum Timeline: radio button validation
Next Thread in PHP Forum Timeline: Paypal is sending message invalid or bad order ??





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC