Jump to content

[SOLVED] Having problems with undefined constants


Technaut

Recommended Posts

Hi,

 

I'm trying to install kissa.be on a server and I'm having problems with some undefined constants:- here are the error messages:-

 

Notice: Use of undefined constant PROJECT_DIR - assumed 'PROJECT_DIR' in E:\domains\0\example.com\user\htdocs\config.php on line 9

 

Notice: Use of undefined constant LOCALE_DIR - assumed 'LOCALE_DIR' in E:\domains\0\example.com\user\htdocs\config.php on line 11

 

Notice: Use of undefined constant DEFAULT_LOCALE - assumed 'DEFAULT_LOCALE' in E:\domains\0\example.com\user\htdocs\config.php on line 14

 

Notice: Use of undefined constant LC_MESSAGES - assumed 'LC_MESSAGES' in E:\domains\0\example.com\user\htdocs\config.php on line 59

 

Here are the lines of code

 

define(PROJECT_DIR, realpath('./'));

 

define(LOCALE_DIR, PROJECT_DIR .'/locale');

 

define(DEFAULT_LOCALE, 'tr_TR');

 

T_setlocale(LC_MESSAGES, $locale);

 

I really cant work out why this wouldn't work. The only experience I have with PHP is a couple of wordpress blogs so be gentle :)

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.