Installation fails because of two undefined constants

Help with getting the CMS CORE package up and running. This does not include 3rd party modules, PHP scripts, anything downloaded via module manager or from any external source.
Locked
need_help
New Member
New Member
Posts: 2
Joined: Fri Aug 29, 2008 3:19 pm

Installation fails because of two undefined constants

Post 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
Pierre M.

Re: Installation fails because of two undefined constants

Post 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.
alby

Re: Installation fails because of two undefined constants

Post 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
need_help
New Member
New Member
Posts: 2
Joined: Fri Aug 29, 2008 3:19 pm

Re: Installation fails because of two undefined constants

Post by need_help »

ok I will check both, thx. :D
jog
Forum Members
Forum Members
Posts: 28
Joined: Tue Aug 28, 2007 11:03 am

Re: Installation fails because of two undefined constants

Post by jog »

same problem here, permissions and fileloc are correct... still the same error.
alby

Re: Installation fails because of two undefined constants

Post 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
jog
Forum Members
Forum Members
Posts: 28
Joined: Tue Aug 28, 2007 11:03 am

Re: Installation fails because of two undefined constants

Post 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...
Pierre M.

Re: Installation fails because of two undefined constants

Post by Pierre M. »

Hosting context ? check of requirements ?
steps so far ? http logS ?
etc

Pierre M.
jog
Forum Members
Forum Members
Posts: 28
Joined: Tue Aug 28, 2007 11:03 am

Re: Installation fails because of two undefined constants

Post 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.
Attachments

[The extension xml has been deactivated and can no longer be displayed.]

Pierre M.

Re: Installation fails because of two undefined constants

Post 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.
jog
Forum Members
Forum Members
Posts: 28
Joined: Tue Aug 28, 2007 11:03 am

Re: Installation fails because of two undefined constants

Post 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.
jog
Forum Members
Forum Members
Posts: 28
Joined: Tue Aug 28, 2007 11:03 am

Re: Installation fails because of two undefined constants

Post by jog »

just wanted to report back - it has finally been solved, the host doesn't support chmod. wtf.
Last edited by jog on Tue May 19, 2009 2:45 pm, edited 1 time in total.
Pierre M.

Re: Installation fails because of two undefined constants

Post 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.
Locked

Return to “[locked] Installation, Setup and Upgrade”