Post new topic Reply to topic  [ 8 posts ] 
A very weird error? 
Author Message
Cool Member

Joined: Fri Jul 06, 2007 7:50 am
Posts: 280
Location: Behind u
Reputation point: 0
Post A very weird error?
Hey everyone,

When i try to install a skin i get this error:
Quote:
Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 1280 bytes) in /home/afghano4/public_html/ips_kernel/class_xml.php on line 482


What does this mean,
I am getting this error since yesterday and i have never had it before

_________________
Image
Watch your thoughts; they become words. Watch your words; they become actions. Watch your actions; they become habits. Watch your habits; they become character. Watch your character; it becomes your destiny.


Tue Oct 09, 2007 12:19 pm
Profile
Stonerocketeer

Joined: Tue Apr 17, 2007 9:01 am
Posts: 3444
Location: Philippines
Reputation point: 0
Post 
It means your script is using too much memory...

In more technical terms, it says you exceeded the memory limit set in PHP, which is 8mb. To avoid this error, either use a not so extensive script [recommended], or set the memory limit to a higher value, i.e. 16mb, by putting the code below in an .htaccess file somewhere in your directories.
Code:
php_value memory_limit 16M


What script is installed on your server anyway?


Tue Oct 09, 2007 1:10 pm
Profile
Site Admin
User avatar

Joined: Tue Aug 22, 2006 7:45 am
Posts: 2322
Location: Stonerocket.net forum database
Reputation point: 5
Post 
Well, yeah, you can try that .htaccess but I advise to split the script

_________________
Ivan Kot (cat) on twitter
constat (former cstat) project (1.2 is here!)


Tue Oct 09, 2007 1:17 pm
Profile WWW
Member
User avatar

Joined: Thu Feb 01, 2007 4:37 pm
Posts: 117
Reputation point: 0
Post 
I had the same error. Except I haven't changed my scripts in the last three months and my website was fine before.

Where is the .htaccess file? I am pretty sure I had one. I can't split my scripts, I have drupal and they are pre-defined.

Thanks


Fri Oct 12, 2007 3:17 pm
Profile
Stonerocketeer

Joined: Tue Apr 17, 2007 9:01 am
Posts: 3444
Location: Philippines
Reputation point: 0
Post 
It somewhere in your directories. Try to look for Drupals installation folder and look for one, then increase the limit with a reasonable increment [1mb would be fine, the 16mb above is an exaggeration].


Fri Oct 12, 2007 3:34 pm
Profile
Cool Member
User avatar

Joined: Wed Jul 25, 2007 1:09 pm
Posts: 358
Location: design.ebali.web.id
Reputation point: 0
Post 
basicly, increasing memory limit is temporary solution, you might get the same error next time.

@Afghano4Life:
- plz submit your script here, esp. 10 lines before/after
Code:
/home/afghano4/public_html/ips_kernel/class_xml.php on line 482


@cat :
the size of program wont affect to this error. i ever got this just because of bad looping. so like efrens said, its about how your script use memory.
variables and loop could be the major cause

@doudou :
plz contact drupal developer team and submit the exact error u got. 8M for PHP is very LARGE, most program should fine, run in that amount of memory.

IMHO,
its major bug, and i might call this as a mistake rather than error. if you increase the memory limit, this will also slow down the whole system, since PHP run in system space NOT user space.

_________________
Bali Web Design - Bali Directory - FREE Directory List


Fri Oct 12, 2007 9:36 pm
Profile WWW
Advanced Member
User avatar

Joined: Fri Jul 20, 2007 3:13 am
Posts: 543
Location: Wisconsin, USA
Reputation point: 0
Post 
efrens wrote:
It means your script is using too much memory...

In more technical terms, it says you exceeded the memory limit set in PHP, which is 8mb. To avoid this error, either use a not so extensive script [recommended], or set the memory limit to a higher value, i.e. 16mb, by putting the code below in an .htaccess file somewhere in your directories.
Code:
php_value memory_limit 16M


What script is installed on your server anyway?

Thank you! This allowed me to install WP-United!

_________________
Image
Image


Sat Oct 13, 2007 1:27 am
Profile WWW
Stonerocketeer

Joined: Tue Apr 17, 2007 9:01 am
Posts: 3444
Location: Philippines
Reputation point: 0
Post 
Ahh I see now how you're getting too much memory.

I expect it from WP-United. It's interpreting every phpBB function for Word Press compatibility that's why.


Sat Oct 13, 2007 6:38 am
Profile
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB