Page 1 of 1

Memory size fatal error after URL switch

Posted: Thu Dec 03, 2009 10:05 pm
by lecanard
Hi
I installed cms ms 1.6.3 succesfully under an url like http://mydomain.xy/folder

I prepared all website stuff and content without problems.

Now I wanted to go live and want to switch to http://www.mydomain.xy
(Done by change domain forwarding of the hosting service)
I modified config.php and I cleared the cache before and did it as descripted in the docu.
But calling the new URL this error appears:

"Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 23040 bytes) in /home/www/web27/html/cmsms163/lib/Tree/Tree.php on line 257"

Sometimes I can access the admin login page and there when I hover onto the Login button I see the URL is built correctly.
I even can login but navigating to the site management or something else only a white page appears...

When I switch back to the first URL all is ok again>:(

What could be the difference? Is there another php cache? (PHP Version 4.3.11, apache)
File permissions cannot be the problem neither.
Please do not say "update to the newest version"... Changing the base URL cannot be such a problem...

help would be VERY appreciated
regards
roland

Re: Memory size fatal error after URL switch

Posted: Thu Dec 03, 2009 11:00 pm
by reneh
Isn't the message:
Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 23040 bytes)
good enough explanation?

you can't run CMSMS on just 8M php mem....

The subdir must have some sort of override so you have higher mem available....


And be aware php 4 isn't supported on the coming v1.7!

Re: Memory size fatal error after URL switch

Posted: Thu Dec 03, 2009 11:08 pm
by Nullig
There's probably a .htaccess file in the sub directory with a memory limit increase.

Nullig

Re: Memory size fatal error after URL switch

Posted: Thu Dec 03, 2009 11:23 pm
by Peciura
I guess you have to increase "php_memory_limit" in "/config.php" i recommend to set to "16M" or "24M".

Also replace "sitepref_value's" similar to "...mydomain.xy/folder..." to "...mydomain.xy..."  in table "cms_siteprefs"
Please do not say "update to the newest version"...
Never :D

Re: Memory size fatal error after URL switch

Posted: Fri Dec 04, 2009 3:21 am
by Dr.CSS
It may just be your domain redirect, I have done a site in subfolder of original site then moved it to root when going live but never had to do "(Done by change domain forwarding of the hosting service)" just changing the config.php was enuf...

Re: Memory size fatal error after URL switch

Posted: Fri Dec 04, 2009 11:33 pm
by lecanard
thank you for all your tips...
- I agree, memory limit 8M says it, BUT why is it ok again when I switch back to original Url?
- also added 32M to config.php but with no effect.
- interestingly, phpinfo local value memory limit shows 32M...
- could not find any "old" url strings in database (cms_siteprefs, etc)
- unfortunately I have to use php4 from webspace provider.

I guess there is some kind of cached stuff on providers environment I cannot control...
The domainforwarding allows to direct urls like www.mydom.xy into a subfolder. I wonder if this confuses cmsms?

maybe I overlooking a simple thing.. I cannot see "the tree in all the forests..."

???