Page 1 of 3

.lang.php file not found

PostPosted: Wed Sep 15, 2010 5:34 pm
by hughlaw
Hi,

I have been using this great script for a while now, but had to move a site from one host to another.
To make life less error free i thought i would install a fresh copy of av_calendar on the new host. I do a fresh install and enter all the details correctly. The script runs and installs fine, writing to the database etc, but when i try and access any of the calendar pages i get the following error:

...path-to-calendar.../ac-contents/lang/.lang.php not found

I tried what another user said by changing the en.lang.php file to math the filename being looked for. this allows me to access admin pages etc, but things like the booking states don't seem to be created properly and there are just blank lines being listed in the admin sections. For the life of me I can't figure out why this is not working as I am following exactly the same process as I did before... Is this a new version that has been released recently?

Any help would be much appreciated.

The version causing the problems for me is 3.03.02, not sure if this is the same version as I had before or not as I downloaded the latest version from your site...

Re: .lang.php file not found

PostPosted: Thu Sep 16, 2010 10:21 am
by chris
Can you check the language folder to see if you have any strange files in there?
Sometimes, especially with Macs, extra files are misteriously created.

Chris

Re: .lang.php file not found

PostPosted: Thu Sep 16, 2010 11:01 am
by hughlaw
Hi Chris,

Just the standard en.lang.php and es.lang.php in there.

Re: .lang.php file not found

PostPosted: Thu Sep 16, 2010 11:17 am
by chris
hmmm, so it appears that for some reason the code is defining he constant LANG as an empty value :(
It should be either "en" or "es" in the default installation)
Can you check directly in the database "config" table to se if the "default_lang" column has a value? (it should be "en" unless you have changed it).
If it is empty (for some unknown reason) change it to "en"

Chris

Re: .lang.php file not found

PostPosted: Thu Sep 16, 2010 5:50 pm
by hughlaw
Yeah, default lang is set to en...

Re: .lang.php file not found

PostPosted: Thu Sep 16, 2010 6:13 pm
by chris
I really have no idea as to what is happening :(
Is there any chance of you sending me ftp access so that I can take a look at the code and see if I can sort it out? If so, send me a pm with the details. Otherwise I don't know what else to suggest :(

Chris

Re: .lang.php file not found

PostPosted: Thu Oct 28, 2010 3:05 pm
by lmladeno
I have the same exact problem. Any solutions to this problem?

Re: .lang.php file not found

PostPosted: Thu Oct 28, 2010 3:12 pm
by chris
Hi,
As I said to hughlaw (who never responded to my last question so I wasn't able to investigate further) I don't really know what is happening here.

Could you take a look at this fix and see if it resolves your issue.

Chris

Re: .lang.php file not found

PostPosted: Fri Oct 29, 2010 5:45 pm
by lmladeno
Chris, the fix does not help.

All I can tell you is that I tried with a fresh install 3 times, I followed the instructions and everything goes well up to the point when I try going to the login page and I get this error:

"my_url_root/Availability_Calendar/ac-contents/lang/.lang.php not found"

The calendar page loads just fine and the default language is set to "en".

I like Your calendar and I appreciate your work and I would be satisfied even without the language support. Could you please point me to the file that sets the current language file so I can fix it to en.lang.php until we find the real cause to this problem?

Thank you very much for your support.

Best regards!

Re: .lang.php file not found

PostPosted: Fri Oct 29, 2010 5:53 pm
by lmladeno
Here is a simple workaround for the problem:

changing line 52 in
/ac_admin/index.php
from:
$the_file=AC_DIR_LANG.LANG.".lang.php";
to:
$the_file=AC_DIR_LANG."en.lang.php";

bypasses the problem and everything else works (but the language is fixed on english)