Domanda

I have an issue about memory limit locally (on windows), when trying to save a k2 item in joomla. At first, the error is related to k2 extrafield, but when I deactivate the concerned function, the same error appear with joomla plugins (pagebreak plugin).

I have added memory_limit rule in php.ini, htaccess and through ini_set() php function, but the message error doesnt disappear. I have even added an .htaccess inside the folder containing the file that's causing the error.

The error message shown is:
Fatal error: Allowed memory size of 5242880 bytes exhausted (tried to allocate 98304 bytes) in ..\\web\\administrator\\components\\com_k2\\lib\\JSON.php on line 331

What am I missing?

È stato utile?

Soluzione 2

I'm suspecting some ini_set found in k2 components files that I have to remove.
The correct solution is to edit the last field in k2 parameters in joomla adminstration(for image memory limit), and increment it from 5M to something as 100M (100 Mo).

Altri suggerimenti

Your PHP configuration at the server has a memory limit of 8 Mb, which is rather low. I'd recommend to set it to 32 Mb.

Try to set ini_mem('memory_limit','12M');

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top