Fatal error: Allowed memory size

A place to report and discuss bugs - please mention CMSimple-version, server, platform and browser version
Post Reply
Tata
Posts: 3586
Joined: Tue May 20, 2008 5:34 am
Location: Slovakia
Contact:

Fatal error: Allowed memory size

Post by Tata » Fri May 11, 2018 7:56 pm

I am not sure where comes this error from
Fatal error: Allowed memory size of 314572800 bytes exhausted (tried to allocate 72 bytes) in /www/c/m/u13296/public_html/_sub/milanladyka/cmsimple/functions.php on line 278
It is returned when I try to call a hidden page directly.
URL: http://milanladyka.cmsimple.sk
direct call: http://milanladyka.cmsimple.sk/?help
CMSimple.sk
It's no shame to ask for an answer if all efforts failed.
But it's awful to ask without any effort to find the answer yourself.

cmb
Posts: 14225
Joined: Tue Jun 21, 2011 11:04 am
Location: Bingen, RLP, DE
Contact:

Re: Fatal error: Allowed memory size

Post by cmb » Sat May 12, 2018 9:24 am

Tata wrote:
Fri May 11, 2018 7:56 pm
cmsimple/functions.php on line 278
Please post the code around this line.
Christoph M. Becker – Plugins for CMSimple_XH

Tata
Posts: 3586
Joined: Tue May 20, 2008 5:34 am
Location: Slovakia
Contact:

Re: Fatal error: Allowed memory size

Post by Tata » Sat May 12, 2018 11:25 am

Code: Select all

#276 function XH_evaluateSinglePluginCall($___expression)
#277 {
#278     foreach ($GLOBALS as $___var => $___value) {
#279        $$___var = $GLOBALS[$___var];
#280    }
#281    return preg_replace_callback(
#282        '/#(CMSimple .*?)#/is', 'XH_escapeCMSimpleScripting',
#283        eval('return ' . $___expression . ';')
#284    );
#285}
I assume this will have something to do with thumbs/watermarks creation in imgalbum/imgslider. However, removing the expand call from the help page, the error is gone...
CMSimple.sk
It's no shame to ask for an answer if all efforts failed.
But it's awful to ask without any effort to find the answer yourself.

cmb
Posts: 14225
Joined: Tue Jun 21, 2011 11:04 am
Location: Bingen, RLP, DE
Contact:

Re: Fatal error: Allowed memory size

Post by cmb » Sat May 12, 2018 12:05 pm

Tata wrote:
Sat May 12, 2018 11:25 am
I assume this will have something to do with thumbs/watermarks creation in imgalbum/imgslider. However, removing the expand call from the help page, the error is gone...
It's possible that it is not directly related to expand(), but see viewtopic.php?f=12&t=11676&p=56062#p56062.
Christoph M. Becker – Plugins for CMSimple_XH

Tata
Posts: 3586
Joined: Tue May 20, 2008 5:34 am
Location: Slovakia
Contact:

Re: Fatal error: Allowed memory size

Post by Tata » Sat May 12, 2018 1:19 pm

Well, this was a problem then with nested subpages with other plugins calls. But now, the structure is simple. The h1 page with the plugin call and hidden h2 pages. No other plugin call on the h2 pages.
CMSimple.sk
It's no shame to ask for an answer if all efforts failed.
But it's awful to ask without any effort to find the answer yourself.

cmb
Posts: 14225
Joined: Tue Jun 21, 2011 11:04 am
Location: Bingen, RLP, DE
Contact:

Re: Fatal error: Allowed memory size

Post by cmb » Sun May 13, 2018 11:11 am

Tata wrote:
Sat May 12, 2018 1:19 pm
Well, this was a problem then with nested subpages with other plugins calls. But now, the structure is simple. The h1 page with the plugin call and hidden h2 pages. No other plugin call on the h2 pages.
There is {{{expand}}} on http://milanladyka.cmsimple.sk/?help/Pluginy ("Funguje tak, že príkaz pre plugin {{{expand}}} sa umiestni na "materskú" stránku (napr. H1)."); this causes infinite recursion, resulting in the out of memory error in your case. There are other plugin calls on subpages of help which probably should be escaped also.
Christoph M. Becker – Plugins for CMSimple_XH

Tata
Posts: 3586
Joined: Tue May 20, 2008 5:34 am
Location: Slovakia
Contact:

Re: Fatal error: Allowed memory size

Post by Tata » Sun May 13, 2018 11:18 am

Ah, totally forgotten about the call on the help page.
CMSimple.sk
It's no shame to ask for an answer if all efforts failed.
But it's awful to ask without any effort to find the answer yourself.

Post Reply