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 > 0) {
$product_width = (int)$_POST;
} 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

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.

var_dump($_POST);
die();

Hi ax8l,
I put var_dump($_POST); die(); before that line , but still occurs same problem .
:(

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..

http://www.instinct.co.nz/forums/

sorry i couldnt be more helpful.
Cheers mate!

thanks ax8l for your help.

god bless :)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.