can't locate lang files... even tho they're there!

can't locate lang files... even tho they're there!

Postby scottrichardson » Wed Feb 03, 2010 7:42 am

HELP!

OK so I'm setting this up for my web site, but it's not working.

http://www.mollymookbeachseaview.com.au/calendar/

It can't find the lang file. BUT, if you copy that URL and browse to it, it's there.

HELP!

I tried all sorts of settings in the config file, and it hasn't worked. Currently the config file is:
Code: Select all
//    paths ( with trailing / )
define("DIR_JS",      "http://www.mollymookbeachseaview.com.au/js/");      #   js files
define("DIR_CSS",      "http://www.mollymookbeachseaview.com.au/css/");      #   css files
define("DIR_IMAGES",   "http://www.mollymookbeachseaview.com.au/images/");   #   calendar images
define("DIR_LANG",      "http://www.mollymookbeachseaview.com.au/calendar/lang/");      #    lang folder



Any help is greatly appreciated!

Scott
scottrichardson
 
Posts: 4
Joined: Mon Jan 11, 2010 1:32 am

Re: can't locate lang files... even tho they're there!

Postby chris » Thu Feb 04, 2010 11:30 am

Hi there,
Some servers don't allow php files to be included with relative or even absolute paths, they require the path to be from the server root.

Try this (just for the lang file):
Code: Select all
define("DIR_LANG",     $_SERVER["DOCUMENT_ROOT"]."/calendar/lang/");      #    lang folder


Let me know how it goes :)

Chris
User avatar
chris
Site Admin
 
Posts: 1088
Joined: Mon Dec 17, 2007 7:42 pm
Location: Málaga, Spain

Re: can't locate lang files... even tho they're there!

Postby scottrichardson » Thu Feb 04, 2010 1:16 pm

Worked!

Thanks Chris.

One thing, showing 12 months, the calendar shows from now till next January. What if we want to show bookings further into the future?
scottrichardson
 
Posts: 4
Joined: Mon Jan 11, 2010 1:32 am


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest

cron