Page 1 of 1

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

PostPosted: Wed Feb 03, 2010 7:42 am
by scottrichardson
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

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

PostPosted: Thu Feb 04, 2010 11:30 am
by chris
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

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

PostPosted: Thu Feb 04, 2010 1:16 pm
by scottrichardson
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?