Forum


List Manager Support

List Manager support
Forums
Public write access is disabled. Please login

Fatal error 30.05.2012 21:31

Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 71 bytes) in /storage/content/94/144694/hxxxxxxt.com/public_html/components/com_listmanager/models/listmanager.php on line 271

I try to import a large series of records (100 000) but it stops with the error.

What to do?

Re: Fatal error 31.05.2012 09:45

Hello,
it seems you have reached the limit on one of your server variables,you can try to solve it increasing the value of the memory variable.

Go to site->System information->PHP information. There you can check which are the limits applied for your site, looking at the value of these variables:

max_execution_time : It limits the time of execution of a single process. To handle a big amount of information, you may need to increase this value as well
memory_limit : Memory limit you're exceeding.


If you haven't available any helper/control panel to do it, you can also try to insert the change at the source code, to try to increase it at execution time, although we want to warn you some hostings don't allow this instruction, to avoid clients use more resources than given by default. These are the lines:

ini_set("memory_limit","100M");
ini_set("max_execution_time","0"); //to disable this limit

to handle backend import, you can try it at the file

joomla\administrator\components\com_listmanager\models\listing.php

just at the beginning of the import function:

function insertDataCSV($idlisting) {

ini_set("memory_limit","100M");
ini_set("max_execution_time","0");




Hope this helps, regards
Moonsoft Team
Moonsoft Team
www.moonsoft.es

Re: Fatal error 31.05.2012 15:35

Cant find the lines?

Edited by MSTeam - 31.05.2012 17:07

Re: Fatal error 31.05.2012 17:11

Hello,
seems you have opened the wrong file (so deleted contents from your reply). The file you paste seems to be this one

joomla\components\com_listmanager\models\listing.php

and not the one on the administrator site:


joomla\administrator\components\com_listmanager\models\listing.php

Please double-check the path. Inside this last one you should find the insertDataCSV function.

Hope this helps, regards
Moonsoft Team
www.moonsoft.es

Re: Fatal error 01.06.2012 07:52

Now I find the csv import ...........

But where insert?
Directly after line 541
function insertDataCSV($idlisting) {

?

Re: Fatal error 01.06.2012 09:33

Hello,
right, it should look like this:

function insertDataCSV($idlisting) {

ini_set("memory_limit","100M");
ini_set("max_execution_time","0");



Regards
Moonsoft Team
www.moonsoft.es

Re: Fatal error 02.06.2012 10:47

Sorry
Doesn't work

Re: Fatal error 02.06.2012 10:54

Hello,
then manual changing of the server variables is not allowed for your site. Your only option is to ask your hosting provider to increase the values, or split your data into smaller sections to keep you inside your execution limits.

Regards
Moonsoft Team
Moonsoft Team
www.moonsoft.es
Are you satisfied with our products/services/support?
Please help us to keep improving, add a review at  joomla extensions site and  magento connect

Our clients' feedback