Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 01-15-2013, 03:59 PM   PM User | #1
hunter1611
New Coder

 
Join Date: Jan 2011
Posts: 26
Thanks: 11
Thanked 0 Times in 0 Posts
hunter1611 is an unknown quantity at this point
PHP Fatal error: Allowed memory size of 262144000 bytes exhausted

I wrote a calendar script and published it on a website. Just recently, someone found a bug that has me completely baffled because I can't reproduce it. Could someone take a look at the comments and see what they think it might be? (It's a brand new site, and the only comments are the one about this bug)

http://keilascode.com/commentator/contact.php

I also re-setup the calendar script on an entirely different web host than the URL above and still was not able to reproduce the problem that the person is having. I'm asking him for info to see where the bug is happening, but it's just weird that I can't reproduce the problem. The guy is suggesting that maybe it's a permission issue, but I don't know much about that... Any ideas?

Thanks!
__________________
http://keilascode.com/

Last edited by hunter1611; 01-16-2013 at 09:35 PM..
hunter1611 is offline   Reply With Quote
Old 01-15-2013, 04:08 PM   PM User | #2
Fou-Lu
God Emperor


 
Fou-Lu's Avatar
 
Join Date: Sep 2002
Location: Saskatoon, Saskatchewan
Posts: 15,635
Thanks: 4
Thanked 2,448 Times in 2,417 Posts
Fou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to all
Thats a lot of megs.
Script is useless, post the code. You're looking for [likely] an infinite loop condition.
Fou-Lu is offline   Reply With Quote
Users who have thanked Fou-Lu for this post:
hunter1611 (01-16-2013)
Old 01-16-2013, 09:35 PM   PM User | #3
hunter1611
New Coder

 
Join Date: Jan 2011
Posts: 26
Thanks: 11
Thanked 0 Times in 0 Posts
hunter1611 is an unknown quantity at this point
Yeah, I didn't expect anyone to stare at my script. I just wanted a nudge in the right direction, which is what you gave! I found the infinite loop and rewrote it so that it is no longer infinite... Still won't fix my problem because the parameters were causing the loop to never end and I don't know why those would have been wrong, but at least now, next time the bug shows itself, I should be able to figure out what's ACTUALLY going on.

Thanks!
__________________
http://keilascode.com/
hunter1611 is offline   Reply With Quote
Old 01-16-2013, 10:36 PM   PM User | #4
Fou-Lu
God Emperor


 
Fou-Lu's Avatar
 
Join Date: Sep 2002
Location: Saskatoon, Saskatchewan
Posts: 15,635
Thanks: 4
Thanked 2,448 Times in 2,417 Posts
Fou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to all
Yep you betcha.
Prime candidate for memory exhaustion is using the GD especially in a loop. It takes a lot of memory to allocate and manipulate images, so if you were to loop it and have an infinite loop, it could run out of memory before the script default timeout.
__________________
As of PHP 5.5, the MySQL library has been officially deprecated. It is recommended to move to either MySQLi or PDO libraries for your mysql connectivity. See here for help choosing which interface you prefer: http://php.net/manual/en/mysqlinfo.api.choosing.php
Fou-Lu is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 06:29 PM.


Advertisement
Log in to turn off these ads.