News:

Wondering if this will always be free?  See why free is better.

Main Menu

Fatal error in viewing pm

Started by pariofdreamz, December 28, 2008, 06:02:16 PM

Previous topic - Next topic

pariofdreamz

I m the admin of the site .. whenever i send any pm or try to view my message i get the following errors :


Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 46 bytes) in /home/parilok/public_html/forums/Sources/Load.php on line 983

on 983 line it is as follows

// Load the member's data.
      $request = db_query("
         SELECT$select_columns
         FROM {$db_prefix}members AS mem$select_tables
         WHERE mem." . ($is_name ? 'memberName' : 'ID_MEMBER') . (count($users) == 1 ? " = '" . current($users) . "'" : " IN ('" . implode("', '", $users) . "')"), __FILE__, __LINE__);
      $new_loaded_ids = array();
      while ($row = mysql_fetch_assoc($request))  <<<< this is 983 line
      {
         $new_loaded_ids[] = $row['ID_MEMBER'];
         $loaded_ids[] = $row['ID_MEMBER'];
         $row['options'] = array();
         $user_profile[$row['ID_MEMBER']] = $row;

One more thing its only me who facing this problem no other member facing it.

Please Help  :(



Nothing is IMPOSSIBLE in this world as IMPOSSIBLE itself says I M POSSIBLE

Kermit

It's apperantly a host related problem,you should better contact your host regarding this problem
My Mods
Please don't PM/mail me for support,unless i invite you
Formerly known as Duncan85
Quote
"Two things are infinite: the universe and human stupidity; and I'm not sure about the the universe."

A. Einstein

pariofdreamz

Thanks for suggestion but i don;t think its host related problem . can any one else help me :(


Nothing is IMPOSSIBLE in this world as IMPOSSIBLE itself says I M POSSIBLE

MrMike

#3
Quote from: pariofdreamz on December 28, 2008, 06:10:50 PM
Thanks for suggestion but i don;t think its host related problem . can any one else help me :(
Trust me- it's a host-related problem, specifically the maximum memory allocation setting in your php.ini file. You may be able to override this with an .htaccess directive in your .htaccess file:

php_value memory_limit 64M

(If you don't have an .htaccess file you can create one and place it in the forum root dorectory.)

pariofdreamz

Thanks for the help dear but can u please guide me properly to how to solve this problem ...... Pleaseeeeeeeee :(


Nothing is IMPOSSIBLE in this world as IMPOSSIBLE itself says I M POSSIBLE

MrMike

Quote from: pariofdreamz on December 29, 2008, 08:17:14 AMThanks for the help dear but can u please guide me properly to how to solve this problem ...... Pleaseeeeeeeee

1) If you have an .htaccess file in the directory where your forum is installed, edit it and look for a line that starts with "php_value memory_limit".

2) If the line is present, change the end of the line to read "64". For example:

    BEFORE: php_value memory_limit 32
    AFTER: php_value memory_limit 64

3) If there is no .htaccess file in the directory where your forum is installed, create one using a text editor like Notepad. In the file put this line:   

     php_value memory_limit 64

4) Save the file and upload it to the directory where your forum is installed.

If you don't understand how to do the steps above, you'll need to get someone to assist you.

pariofdreamz

Thanks A Lot Dear, no i don't need anyone's assistance i got very well when u first advised me to make changes in .htacess file but when i made the changes i get the following error

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 404 Not Found error was encountered while trying to use an Error Document to handle the request.


Is THere is any other way out or i have to talk to my hosting ppl. one more thing can u please explain in breif whts is php_memory_limit 32M and how does it gets over used ??

Thanks Again For helping


Nothing is IMPOSSIBLE in this world as IMPOSSIBLE itself says I M POSSIBLE

MrMike

Quote from: pariofdreamz on December 30, 2008, 05:57:19 PM
Thanks A Lot Dear, no i don't need anyone's assistance i got very well when u first advised me to make changes in .htacess file but when i made the changes i get the following error

Internal Server Error
If you're getting this error it may be that the htaccess file has a syntactical error or was uploaded in binary mode.


Quote from: pariofdreamz on December 30, 2008, 05:57:19 PMmore thing can u please explain in breif whts is php_memory_limit 32M and how does it gets over used ??
The "php_memory_limit" directive sets a hard limit on how much memory a single PHP process can consume.

PHP allocates (consumes) memory in chunks as required while it processes the script code. The memory gets allocated in various size chunks according to what the script does.

Your limit of 32 megs was (is) being exhausted by something (I have no idea what). Sometimes SELECT statements that return a huge number of results can overrun a memory limit, as can opening a very large file or doing various kinds of sorting and/or array processing operations with large arrays.

aED

Hey we have the same problem! Until now i did not yet made anything to fix the problem. But sometimes when i recieved a new pm the error wont show but if i click on the next page the error will show again. Try to make some of your member send you 10 or more messages and see if you will experience the same. BTW i have 700+ messages in my inbox when the error occured...
And sometimes the same error occured when i am viewing a specific page inside a topic...

pariofdreamz

Quote from: MrMike on December 30, 2008, 06:16:19 PM
Quote from: pariofdreamz on December 30, 2008, 05:57:19 PM
Thanks A Lot Dear, no i don't need anyone's assistance i got very well when u first advised me to make changes in .htacess file but when i made the changes i get the following error

Internal Server Error
If you're getting this error it may be that the htaccess file has a syntactical error or was uploaded in binary mode.

What Should I do Now .... What Are Synytactical error can u please tell me how to fix it ?? Please :(



Nothing is IMPOSSIBLE in this world as IMPOSSIBLE itself says I M POSSIBLE

aED

Have you fixed your problem?

Anyone here who can help us. I also checked my Server error logs and this is the error

Quote
[Tue Jan  6 20:02:15 2009] [error] [client 111.11.111.111] Premature end of script headers: /xxxx/domain/public_html/index.php


I think it does really have something to do with our host.

pariofdreamz

No dear i m still facing the problem :( and i m looking for some one to help me :((


Nothing is IMPOSSIBLE in this world as IMPOSSIBLE itself says I M POSSIBLE

MrMike

Quote from: aED on January 06, 2009, 11:10:00 PM
Have you fixed your problem?

Anyone here who can help us. I also checked my Server error logs and this is the error

Quote[Tue Jan  6 20:02:15 2009] [error] [client 111.11.111.111] Premature end of script headers: /xxxx/domain/public_html/index.php

I think it does really have something to do with our host.
It's a good bet, although there are several causes...

One of the most common causes of this problem is that the is script dying before it sends the complete set of headers to the server.

Another possible cause for this message are the 'RLimitCPU' and 'RLimitMEM' directives. You may see this message if the script was stopped due to a resource limit.

Sometimes this means there are permissions errors, or the script doesn't have permission to run, or that a misconfiguration in the script caused it to die with an error before it could return anything useful to the server.

aED

Hi

Thanks you can remove permission errors from the list because i can still use my PM inbox I only recieve the error when viewing a certain message or post its on the other page of my inbox so i can still open it but when i click the page number where the message is located thats when the error shows. Where can i see the 'RLimitCPU' and 'RLimitMEM' directives?

Advertisement: