Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Archive /

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, biapar, Willr, Ingo, simon_w

Not stable with 248 pages


Reply


6 Posts   2110 Views

Avatar
akp982

8 Posts

21 December 2007 at 12:25am

Edited: 21/12/2007 7:01am

I have a site with 248 pages, well it's hopefully going to get a lot bigger over time, I am using silverstripe-v2.2.1-rc2 and get the following error when going to the admin area after using the batch tool to publish all my pages.

Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 233472 bytes) in /var/www/vhosts/akp982.co.uk/subdomains/info/httpdocs/sapphire/lang/en_US.php on line 330

The front end of the site works fine.

Anyone got any ideas about how I can fix this? I could do with getting back into the site admin area.

Update: I have just tried a server restart and same problem.

Avatar
akp982

8 Posts

24 December 2007 at 12:01pm

Anyone got anyideas how i can fix this?

Need to make some changes to site thought about doing though sql but decided agasint that to be safe...

Avatar
dio5

Community Member, 501 Posts

24 December 2007 at 12:50pm

Raise the memory limit?

Avatar
akp982

8 Posts

24 December 2007 at 11:19pm

I maybe stupid but how would i do that?

Avatar
dio5

Community Member, 501 Posts

24 December 2007 at 11:26pm

Put this in your .htaccess file:

php_value memory_limit 100M

of course you replace the 100 with whatever value you'd like to use.

Avatar
akp982

8 Posts

24 December 2007 at 11:28pm

Cheers :)

Takes a long time to load but once loaded works fine :)