RSS

LuxCal Forum

The place for questions, suggestions and news about the LuxCal Event Calendar

User:   Password:   Remember Me?   
LuxCal Forum / General / Support / Database connection error
Posted:  10 Sep 2014 16:15
I'm receiving this following error and can't seem to figure out why.

Calendar 'db/cal' not found.

The error appears when I tried to connect from /calendar/

But works fine when I connect from /calendar/?cal=mycal

How can I get it to work without having to add the ?cal=mycal
Posted:  11 Sep 2014 09:34
Hi there,
The default calendar that should be opened when using "/calendar/" is stored in the file lcconfig.php in the calendar's root folder. For one or another reason your lcconfig.php file contains "cal" as default calendar, which apparently is not existing.
To solve this you can simply edit the lcconfig.php file and change the default calendar to "mycal".

You can also use the lctools.php from the toolbox to solve this problem. For details I need to know what LuxCal version you are using.
Roel
Posted:  12 Sep 2014 23:33
Here's what's in my config file.

<?php
/*
= LuxCal event calendar configuration =
*/
$lcV="4.1.0L"; //LuxCal version
$dbDir="db/"; //db directory
$dbDef="mycal"; //default calendar (db name)
$dbSel=1; //Selectable in Options panel
?>
Posted:  13 Sep 2014 23:56
That looks fine.

If you still have this problem, try deleting the cookie "LCALcid", which holds the ID of the last selected calendar. If this doesn't help, could you send me the URL of your calendar (via the Contact Us page, if you prefer) so that I can try it myself and further analyze the problem.
Roel