Joomla Forum

Joomla Hacks => Joomla-SMF 2.0.x => Topic started by: yAnTar on August 05, 2008, 09:23:42 AM



Title: Problem with memory and serialize
Post by: yAnTar on August 05, 2008, 09:23:42 AM
I have installed Joomla 1.0.15, SMF 1.1.4, JSMF 2.0 RC3.
I moved posts and topics from other Forum in SMF, work good, but have Problem with Memory.

Code:
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 173478 bytes) in
/home/htdocs/***********/administrator/components/com_smf/includes/Lite.php on line 367

In this line is $data = serialize($data);

Cache - disabled (in forum and in bridge), but $this->_caching = 1.
If write  $this->_caching = 1 then CSS for Forum not work.

And $data have 2 property - search and replace, and this properties have array with 100 values - links to Forum.

This links - jump from link SMF to link Joomla
ini_set("memory_limit", "128M"); - no Result.  >:(

Sorry of my english


Title: Re: Problem with memory and serialize
Post by: Superdaantje on August 05, 2008, 10:39:59 AM
Search the forums Please, ;)

JSMF 2.0 RC3 this will not work you need 2.0.2.1 of the JSMF bridge ;-)


Title: Re: Problem with memory and serialize
Post by: yAnTar on August 06, 2008, 03:53:42 AM
But in 2.0.2.1 of the JSMF bridge also exist code
Code:
        if ($this->_caching) {
            if ($this->_automaticSerialization) {
                $data = serialize($data);
            }
and i think, what Problem remain.


Title: Re: Problem with memory and serialize
Post by: Superdaantje on August 06, 2008, 06:49:34 AM
Please search the forums first, this question is asked many times and answered many times. You can search on “Allowed memory size”


Title: Re: Problem with memory and serialize
Post by: yAnTar on August 11, 2008, 10:26:48 AM
I searched on Forum this solution.
In file components/com_smf/smf.class.php
commment this rows
Code:
array_push($cache_search, $orig);
array_push($cache_replace, $new_link);


Title: Re: Problem with memory and serialize
Post by: yAnTar on August 12, 2008, 04:44:25 AM
But exist problem with links (when registration across Joomla - must Links in manual mode in themes correct write).


Joomla Forum | Powered by SMF 1.1 RC1.
© 2001-2005, Lewis Media. All Rights Reserved.
Joomla Bridge by JoomlaHacks.com