Error Code

Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Tue Oct 23, 2012 7:12 am
Reply with quote
Report this post
Hi.

I keep getting this error when using my template. I'm using it with jReviews.

Notice: Constant DS already defined in /home/iletpr5/public_html/dev/j3/wk/templates/gk_gamenews/index.php on line 15

Any ideas please. Site is on local host so can't supply link.

Thanks.
User avatar
Senior Boarder

GK User
Tue Oct 23, 2012 8:32 am
Reply with quote
Report this post
First of all please configure your server according to Joomla! requirements so disable display_errors option in PHP. This should resolved your problem but if the problem come back please open file index.php and replace code :

Code: Select all
define('DS', DIRECTORY_SEPARATOR);


with :

Code: Select all
if(!defined('DS')){
   define('DS',DIRECTORY_SEPARATOR);
}
User avatar
Platinum Boarder

GK User
Tue Oct 23, 2012 8:51 am
Reply with quote
Report this post
Hi.

Thanks for your reply.

Sorry but how do I turn off display_errors option in PHP?

Is this an option with Joomla 3 or is it on my server?

Thanks.
User avatar
Senior Boarder

GK User
Wed Oct 24, 2012 8:44 am
Reply with quote
Report this post
It is in your hosting configuration so please ask server tech support. If you use search with 'display_errors' you will surely find solutions on our forum how to make it directly from template files.
User avatar
Platinum Boarder


cron