Support Forums

PHP Fatal Error

This is a discussion on PHP Fatal Error within the Technical Support forums, part of the Technical Support Forums category; What version of 68 Classifieds are you running? Example: V4.1.6 Designer What template are you using? purple Please describe in ...


Go Back   68 Classifieds Forums > Technical Support Forums > Technical Support

Reply
 
Thread Tools Display Modes
Old 03-12-2010, 05:43 PM   #1
Customer
 
Join Date: Feb 2010
Location: Montreal, QC
Posts: 187
Rep Power: 6
EnergyFreak is on a distinguished road
Default PHP Fatal Error

What version of 68 Classifieds are you running?
Example: V4.1.6 Designer

What template are you using?

purple
Please describe in detail the issue you are having:

This is the error I got:

Code:
[12-mar-2010 23:39:14] PHP Fatal error:  Allowed memory size of 268435456 bytes exhausted (tried to allocate 99146615 bytes) in /home/yoursite/public_html/includes/classes/kernel/Listings.php on line 1962
Why is it trying to allocate so much memory at once, this is the first time I got this error...

I think it is only doing this for one of my categories.

Last edited by EnergyFreak; 03-12-2010 at 06:13 PM.
EnergyFreak is offline   Reply With Quote
Old 03-12-2010, 06:21 PM   #2
68 Evangelist & Developer
 
 
Join Date: Jan 2007
Location: Pennsylvania, USA
Posts: 2,026
Rep Power: 60
Mike-N-Tosh is just really nice Mike-N-Tosh is just really nice
Default

...and what exactly did you do that triggered the error? Like what did you click on? I went to your site and clicked on many different links, but did not receive any errors.
__________________
Mike-N-Tosh
IndianaPC.org - A community website (v3.1.10 Developer - heavily modified & used as the CMS)
Sandbox [localhost(v3.1.10, v4.0.9, 4.1.10,4.2)] for development and customization
Visit My blog: reviews, tips, tricks, tutorials and my store with Templates, Mods & Docs
Web Hosting | Web Design & Development | 68 Classifieds Customizations
I am not a 68C employee, just a user and try to help out
Mike-N-Tosh is offline   Reply With Quote
Old 03-12-2010, 06:34 PM   #3
Customer
 
Join Date: Feb 2010
Location: Montreal, QC
Posts: 187
Rep Power: 6
EnergyFreak is on a distinguished road
Default

I didn't do anything special, every time I try to create an ad in my vehicle section it shows a blank page, the other categories seem to be working fine.

I can confirm that the error is only happening for the vehicle category, I have used another computer and the error still happens, is there a way to erase the cache or something that might be causing this error?

Last edited by EnergyFreak; 03-12-2010 at 07:17 PM.
EnergyFreak is offline   Reply With Quote
Old 03-13-2010, 06:17 PM   #4
Customer
 
Join Date: Feb 2010
Location: Montreal, QC
Posts: 187
Rep Power: 6
EnergyFreak is on a distinguished road
Default

Anyone have an idea why it is doing this?
EnergyFreak is offline   Reply With Quote
Old 03-14-2010, 04:52 AM   #5
Genius At Work
 
bowers01's Avatar
 
Join Date: May 2008
Location: Geelong, Victoria, Australia
Posts: 1,066
Rep Power: 31
bowers01 is on a distinguished road
Default

what if you try and place an ad without a image.
My guess is that your server can not handle the size of the images. Are you on shared hosting?
Nick
__________________
Nick Bowers
68c v4.1.10 Developer Custom Template
bowers01 is offline   Reply With Quote
Old 03-14-2010, 06:18 PM   #6
Customer
 
Join Date: Feb 2010
Location: Montreal, QC
Posts: 187
Rep Power: 6
EnergyFreak is on a distinguished road
Default

No I can post in any other category without any problems, I get a blank page before even entering an ad title and description, I can`t even get to the third step... It has something to do with the Listings.php file

This is the error I keep on getting in my error log.

Code:
[14-mar-2010 23:13:04] PHP Fatal error:  Allowed memory size of 268435456 bytes exhausted (tried to allocate 99210589 bytes) in /home/yoursite/public_html/includes/classes/kernel/Listings.php on line 1962
It keeps on sending the same amount of bytes, it is like if it was trying to post 5 ads at the same time or something.

There are my server specs for file uploads, so the problem is definitely not the file upload limit.

File Uploads upload_max_filesize Maximum allowed size for uploaded files. 20M

Resource Limits memory_limit Maximum amount of memory a script may consume (32MB) 256M
EnergyFreak is offline   Reply With Quote
Old 03-14-2010, 07:22 PM   #7
68 Evangelist & Developer
 
 
Join Date: Jan 2007
Location: Pennsylvania, USA
Posts: 2,026
Rep Power: 60
Mike-N-Tosh is just really nice Mike-N-Tosh is just really nice
Default

Somehow I doubt that it's the Listings.php file, because it can't single out one particular category. When this happens are you in the front end or are you in admin? It almost seems like the category might somehow be corrupted in the database itself. Perhaps you could try to modify the category in your admin. You might also try emptying your templates_c directory.
__________________
Mike-N-Tosh
IndianaPC.org - A community website (v3.1.10 Developer - heavily modified & used as the CMS)
Sandbox [localhost(v3.1.10, v4.0.9, 4.1.10,4.2)] for development and customization
Visit My blog: reviews, tips, tricks, tutorials and my store with Templates, Mods & Docs
Web Hosting | Web Design & Development | 68 Classifieds Customizations
I am not a 68C employee, just a user and try to help out
Mike-N-Tosh is offline   Reply With Quote
Old 03-14-2010, 07:46 PM   #8
Customer
 
Join Date: Feb 2010
Location: Montreal, QC
Posts: 187
Rep Power: 6
EnergyFreak is on a distinguished road
Default

Okay I have found the problem, although this is just a temporary fix. I have disabled my extra fields for this category. The problem was caused by my extra fields. I had six extra fields for my vehicle category and this is what is causing the page not to load.

I think this is something Eric Barnes should check for the next release, to somehow allow more then or at least six extra fields per category without creating a memory exhaust.
EnergyFreak is offline   Reply With Quote
Old 03-15-2010, 05:27 AM   #9
Genius At Work
 
bowers01's Avatar
 
Join Date: May 2008
Location: Geelong, Victoria, Australia
Posts: 1,066
Rep Power: 31
bowers01 is on a distinguished road
Default

i have 8 extra fields on some of mine and i dont have a problem.
Mine are all single line or drop down box, what did you have?
Nick
__________________
Nick Bowers
68c v4.1.10 Developer Custom Template
bowers01 is offline   Reply With Quote
Old 03-15-2010, 09:14 AM   #10
Customer
 
Join Date: Feb 2010
Location: Montreal, QC
Posts: 187
Rep Power: 6
EnergyFreak is on a distinguished road
Default

All drop downs, some of them were for car makes, models, transmissions, number of cylinders etc. My car model had about 40 or so, but still that should not be enough to exhaust the memory...
EnergyFreak is offline   Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
fatal error message MATDAV Technical Support 4 07-31-2009 09:22 AM


All times are GMT -4. The time now is 12:59 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0