Page 1 of 1

what is this error message

Posted: Wed Dec 20, 2006 9:10 am
by amir
Hello,

I am running Tucows CCS PHP scripts on my server and it is not working. Whenever I try to perfrom any action e.g. new domain registration, it takes me to page where I see blank page ( All White ). I checked the error logs and came to know that its giving this message
" Allowed memory size of 8388608 bytes exhausted (tried to allocate 128 bytes) ".

Can any body tell what is this and how to make it correct?

TIA!

Re: what is this error message

Posted: Wed Dec 20, 2006 9:18 am
by Chris Corbyn
amir wrote:Hello,

I am running Tucows CCS PHP scripts on my server and it is not working. Whenever I try to perfrom any action e.g. new domain registration, it takes me to page where I see blank page ( All White ). I checked the error logs and came to know that its giving this message
" Allowed memory size of 8388608 bytes exhausted (tried to allocate 128 bytes) ".

Can any body tell what is this and how to make it correct?

TIA!
It means PHP is running out of memory (8MB). Do you have a recursive function in this script?

Post the code.

Posted: Wed Dec 20, 2006 9:35 am
by amir
I am sorry this code is encrypted ( i.e. TuCows CCS for Domain Management ) so I am not able to show it to you. I think this code should be optimized as written by a well known company. Please advise!

Thanks.

Posted: Wed Dec 20, 2006 9:52 am
by Chris Corbyn
amir wrote:I am sorry this code is encrypted ( i.e. TuCows CCS for Domain Management ) so I am not able to show it to you. I think this code should be optimized as written by a well known company. Please advise!

Thanks.
No, I mean your code. I'm guessing you've written some code in order to use this? If it's a script for download I doubt it would have such a major flaw as to overflow on memory usage. If it does I wouldn't use it but if you still want to use it trying increasing the max_memory_limit value in php.ini.

PHP 5.2.0 seem to have raised the default memory limit to 16MB anyway :)

Posted: Wed Dec 20, 2006 9:57 am
by amir
Thanks,

Now I have idea what is this and how to resolve it. Very truely you guys are so helping God bless you all.

BTW I am using PHP 5.1.6.

Thanks once again,