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
What to do if you have a technical problem with OJS:

1. Search the forum. You can do this from the Advanced Search Page or from our Google Custom Search, which will search the entire PKP site. If you are encountering an error, we especially recommend searching the forum for said error.

2. Check the FAQ to see if your question or error has already been resolved.

3. Post a question, but please, only after trying the above two solutions. If it's a workflow or usability question you should probably post to the OJS Editorial Support and Discussion subforum; if you have a development question, try the OJS Development subforum.

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
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.
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).

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

Return to OJS Technical Support

Who is online

Users browsing this forum: Yahoo [Bot] and 2 guests