Icy Phoenix

     
 


Post new topic  Reply to topic 
Page 2 of 2
Goto page Previous  1, 2
 
Reply with quote Download Post 
Post Re: Fatal Error: Allowed Memory Size 
 
Dear Mighty Gordon,
I follow all for a long time your councils and can define yours fan.
I have a problem that it is making me to drive crazy.
I have aphpbbplus forum, and a category of the same one is opened the anonymous users.
Unfortunately, by little time, when I want to visualize IP address of the anonymous users who has sent a topic, I receive this message

Fatal error: Allowed memory size of 12582912 bytes exhausted (tried to allotted 35 bytes) in /web/htdocs/.../.../includes/functions.php on linens 804

The forum is on "hosting Aruba". I have tried the things advised in this and the other message, but they are not successful. Is there a solution?

Sincerely yours, Vincenzo
 



 
travagghioSend private message  
Back to topPage bottom
Icy Phoenix is an open source project, you can show your appreciation and support future development by donating to the project.

Support us
 
Reply with quote Download Post 
Post Re: Fatal error: Allowed memory size 
 
Vincenzo, thank you for translating your request in english.

As I said you can get Italian support on other sites... but if you prefer we can continue here.

First, I don't know much about Plus... but I'll try to help you anyway.

Did you get that warning only when clicking the IP button?

If yes, and if the error is always the same, can you post here lines from 790 to 820 or your functions.php please?

You can use CODE BBCode specifying starting and highlighting params (help in BBCodes Glossary topic!).

Try also inserting this code on top of your common.php:

Code: [Download] [Hide] [Select]
ini_set("memory_limit", "16M");

 




____________
Luca
SEARCH is the quickest way to get support.
Icy Phoenix ColorizeIt - CustomIcy - HON
 
Mighty GorgonSend private messageSend e-mail to userVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Fatal Error: Allowed Memory Size 
 
Thank you, master menthor!

You have solved my existential problem! :mryellow:!!!

I confirm to be your fan! You are the best!

I don't know if you asked to me code line 790-820 from "function.php" for

preventing this problem in the future and for others users, or only for helping me.

In doubt, I paste the lines:

//790
     }
    }

    return $row;
}

function encode_ip($dotquad_ip)
{
    $ip_sep = explode('.', $dotquad_ip);
    return sprintf('%02x%02x%02x%02x', $ip_sep[0], $ip_sep[1], $ip_sep[2], $ip_sep[3]);
}

function decode_ip($int_ip)
{
    $hexipbang = explode('.', chunk_split($int_ip, 2, '.'));
    return hexdec($hexipbang[0]). '.' . hexdec($hexipbang[1]) . '.' . hexdec($hexipbang[2]) . '.' . hexdec($hexipbang[3]);
}

//
// Create date/time from format and timezone
//
function create_date($format, $gmepoch, $tz)
{
    global $board_config, $lang;
    static $translate;

    if ( empty($translate) && $board_config['default_lang'] != 'english' )
    {
        @reset($lang['datetime']);
        while ( list($match, $replace) = @each($lang['datetime']) )
        {
//820

Really great thanks!!!

Nun ti siddiare per il mio inglese! Salutamo dalla Sicilia!!!
 



 
travagghioSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Fatal error: Allowed memory size 
 
You're welcome...

Thanks for posting the code, but I need some testing to verify that function... In the meantime, I'm glad you solved.
 




____________
Luca
SEARCH is the quickest way to get support.
Icy Phoenix ColorizeIt - CustomIcy - HON
 
Mighty GorgonSend private messageSend e-mail to userVisit poster's website  
Back to topPage bottom
Post new topic  Reply to topic  Page 2 of 2
Goto page Previous  1, 2


Display posts from previous:    

HideWas this topic useful?

Link this topic
URL
BBCode
HTML




 
Permissions List
You cannot post new topics
You cannot reply to topics
You cannot edit your posts
You cannot delete your posts
You cannot vote in polls
You cannot attach files
You can download files
You cannot post calendar events