OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



XML memory error

Are you responsible for making OJS work -- installing, upgrading, migrating or troubleshooting? Do you think you've found a bug? Post in this forum.

Moderators: jmacgreg, btbell, michael, bdgregg, barbarah, asmecher

Forum rules
The Public Knowledge Project Support Forum is moving to http://forum.pkp.sfu.ca

This forum will be maintained permanently as an archived historical resource, but all new questions should be added to the new forum. Questions will no longer be monitored on this old forum after March 30, 2015.

XML memory error

Postby kalpana » Mon Jul 09, 2007 4:18 am

We are getting random xml error messages on a fresh install of OJS on a hosted server. It is running free BSD. For example when we tried to add a journal we got the following error:

Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 5864 bytes) in /usr/www/users/rioja/kalpana/ojs-2.1.1/classes/xml/XMLParser.inc.php on line 125

We have tried the solution from
viewtopic.php?t=441
by adding the following to our .htaccess file (no access to php.ini on hosted server)
php_value memory_limit 16M

We can get the same to work on our localhost (wamp) with even 8M memory.

Any help will be appreciated.
Kalpana
kalpana
 
Posts: 11
Joined: Wed Jun 20, 2007 11:57 am

Postby asmecher » Mon Jul 09, 2007 8:44 am

Hi Kalpana,

Different versions of PHP require very different amounts of memory to run; the PHP 5.x line, for example, seems to be much more frugal with memory. Are you still receiving the 8388608-byte limit message after setting the memory_limit in .htaccess? If so, the override to 16M didn't work and you'll have to ask your host to increase the limit in the system's php.ini (or enable local overrides if possible).

Regards,
Alec Smecher
Public Knowledge Project Team
asmecher
 
Posts: 10015
Joined: Wed Aug 10, 2005 12:56 pm


Return to OJS Technical Support

Who is online

Users browsing this forum: Google [Bot], Yahoo [Bot] and 3 guests