.lang.php file not found

Help with installation and general calendar setttings

.lang.php file not found

Postby hughlaw » Wed Sep 15, 2010 5:34 pm

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...
hughlaw
 
Posts: 3
Joined: Wed Sep 15, 2010 5:27 pm

Re: .lang.php file not found

Postby chris » Thu Sep 16, 2010 10:21 am

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
User avatar
chris
Site Admin
 
Posts: 1089
Joined: Mon Dec 17, 2007 7:42 pm
Location: Málaga, Spain

Re: .lang.php file not found

Postby hughlaw » Thu Sep 16, 2010 11:01 am

Hi Chris,

Just the standard en.lang.php and es.lang.php in there.
hughlaw
 
Posts: 3
Joined: Wed Sep 15, 2010 5:27 pm

Re: .lang.php file not found

Postby chris » Thu Sep 16, 2010 11:17 am

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
User avatar
chris
Site Admin
 
Posts: 1089
Joined: Mon Dec 17, 2007 7:42 pm
Location: Málaga, Spain

Re: .lang.php file not found

Postby hughlaw » Thu Sep 16, 2010 5:50 pm

Yeah, default lang is set to en...
hughlaw
 
Posts: 3
Joined: Wed Sep 15, 2010 5:27 pm

Re: .lang.php file not found

Postby chris » Thu Sep 16, 2010 6:13 pm

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
User avatar
chris
Site Admin
 
Posts: 1089
Joined: Mon Dec 17, 2007 7:42 pm
Location: Málaga, Spain

Re: .lang.php file not found

Postby lmladeno » Thu Oct 28, 2010 3:05 pm

I have the same exact problem. Any solutions to this problem?
lmladeno
 
Posts: 3
Joined: Thu Oct 28, 2010 2:59 pm

Re: .lang.php file not found

Postby chris » Thu Oct 28, 2010 3:12 pm

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
User avatar
chris
Site Admin
 
Posts: 1089
Joined: Mon Dec 17, 2007 7:42 pm
Location: Málaga, Spain

Re: .lang.php file not found

Postby lmladeno » Fri Oct 29, 2010 5:45 pm

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!
lmladeno
 
Posts: 3
Joined: Thu Oct 28, 2010 2:59 pm

Re: .lang.php file not found

Postby lmladeno » Fri Oct 29, 2010 5:53 pm

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)
lmladeno
 
Posts: 3
Joined: Thu Oct 28, 2010 2:59 pm

Next

Return to Support

Who is online

Users browsing this forum: No registered users and 0 guests

cron