Page 1 of 1

Installation fails because of two undefined constants

Posted: Fri Aug 29, 2008 3:27 pm
by need_help
Hi Folkz,

I tried to install CMS made simple but I couldn't succeed.  :-[
After reading a lot of google-hits and this thread I tried out a lot and I think I could have isolated the problem, now I would appreciate all help to get my cms to work.

Thanks for this Thread http://forum.cmsmadesimple.org/index.php?PHPSESSID=73e25da39fb00bfe58a7ca7beade2321&/topic,24795.0.html after executing .../install/index.php?debug=1 I finaly got an Error, which is:

Notice: Use of undefined constant TMP_TEMPLATES_C_LOCATION - assumed 'TMP_TEMPLATES_C_LOCATION' in /home/webpages/lima-city/tequilaman/html/CMS/install/index.php on line 84

Notice: Use of undefined constant TMP_CACHE_LOCATION - assumed 'TMP_CACHE_LOCATION' in /home/webpages/lima-city/tequilaman/html/CMS/install/index.php on line 84

TMP_TEMPLATES_C_LOCATION is not writable! Check your installation, exiting

I changed the filepermissions as stated in the linked thread and in the .../doc/INSTALL.txt. Bevor and after I found the debug option.

Thx for helping advices

Re: Installation fails because of two undefined constants

Posted: Fri Aug 29, 2008 4:31 pm
by Pierre M.
The install guide
http://wiki.cmsmadesimple.org/index.php ... ck_Install
tells to chmod 777 all these folders :
    * tmp
    * tmp/templates_c
    * tmp/cache
    * uploads
    * uploads/images
    * modules
and not only tmp and tmp/cache as said in http://forum.cmsmadesimple.org/index.ph ... 795.0.html
Hence you are lacking 777 on tmp/templates_c

Pierre M.

Re: Installation fails because of two undefined constants

Posted: Fri Aug 29, 2008 8:11 pm
by alby
need_help wrote: Notice: Use of undefined constant TMP_TEMPLATES_C_LOCATION - assumed 'TMP_TEMPLATES_C_LOCATION' in /home/webpages/lima-city/tequilaman/html/CMS/install/index.php on line 84

Notice: Use of undefined constant TMP_CACHE_LOCATION - assumed 'TMP_CACHE_LOCATION' in /home/webpages/lima-city/tequilaman/html/CMS/install/index.php on line 84
Hummm.... for me you have fileloc.php missed or broken in ftp upload.
Check your installation

Alby

Re: Installation fails because of two undefined constants

Posted: Mon Sep 01, 2008 7:06 am
by need_help
ok I will check both, thx. :D

Re: Installation fails because of two undefined constants

Posted: Sun Sep 14, 2008 2:56 pm
by jog
same problem here, permissions and fileloc are correct... still the same error.

Re: Installation fails because of two undefined constants

Posted: Sun Sep 14, 2008 3:30 pm
by alby
jog wrote: same problem here, permissions and fileloc are correct... still the same error.
Have you check if your fileloc.php is same of fileloc.php in distribution?

Alby

Re: Installation fails because of two undefined constants

Posted: Mon Sep 15, 2008 12:58 pm
by jog
alby wrote:
jog wrote: same problem here, permissions and fileloc are correct... still the same error.
Have you check if your fileloc.php is same of fileloc.php in distribution?

Alby

Thanks for your reply. Yes I have, exactly the same. In the meantime I have tried different releases (1.2.5, 1.3.1) but they all give the same error...

Re: Installation fails because of two undefined constants

Posted: Mon Sep 15, 2008 2:00 pm
by Pierre M.
Hosting context ? check of requirements ?
steps so far ? http logS ?
etc

Pierre M.

Re: Installation fails because of two undefined constants

Posted: Mon Sep 15, 2008 2:23 pm
by jog
http://www.morgenabendland.ch/cms141/install/

- shared unix hosting, apache/php
- I've triple-checked the requirements, permissions etc.

I've successfully installed CMS many times, and the same distribution works fine with a different provider. I suppose it has to do with some PHP setting, but I'm not really savvy there... phpinfo attached.

Re: Installation fails because of two undefined constants

Posted: Mon Sep 15, 2008 2:38 pm
by Pierre M.
jog wrote: ...and the same distribution works fine with a different provider. I suppose it has to do with some PHP setting, but I'm not really savvy there...
neither am I about PHP settings. But yes, you have narrowed it, it must be hosting related.
Mark has [solved] several threads by hinting to try 775 or even 755 instead of 777 or even odder permissions tweaks. May be monitoring http logS can help ?

Pierre M.

Re: Installation fails because of two undefined constants

Posted: Mon Sep 15, 2008 3:20 pm
by jog
I have tested the 775 and 755 suggestions without any success. there's nothing in the logs... I'll check with the provider and report back.

Re: Installation fails because of two undefined constants

Posted: Thu Apr 23, 2009 1:34 pm
by jog
just wanted to report back - it has finally been solved, the host doesn't support chmod. wtf.

Re: Installation fails because of two undefined constants

Posted: Tue Apr 28, 2009 3:42 pm
by Pierre M.
jog wrote: the provider doesn't support chmod.
Thank you for reporting back. so [solved]. I wouldn't call it a "provider" btw.