Send me your email address and I will send you a PHP session test script. Thereafter we will take it from there.
Roel
You are not logged in. Please login or register.
LuxCal Web Calendar → Posts by Roel
Send me your email address and I will send you a PHP session test script. Thereafter we will take it from there.
Roel
Hi there,
Have you tried to refresh the calendar page (F5) after upgrading?
Roel
Hi there,
When you've exported and downloaded the .ics file from LuxCal, could you have a look at the content of the file and in particular to the "DTSTART" of a known event.
it will look like:
DTSTART;TZID=Europe/Amsterdam:20190713T200000
and the last 6 digits indicate the time in 24-hour format. Here you can see if LuxCal is producing the correct time, and consequently Outlook is adding one hour, or that LuxCal is producing a wrong time.
Roel
Hi there,
The LuxCal calendar can export a daily iCal file in the calendar's "files" folder. If the "other program" can read these files daily, it should be ok.
To set up the export of a daily iCal file, you will have to set up a cron job on your server (if not done already) to start the file lcalcron.php in the calendar root and on the admin's Settings page, under Periodic Functions, you should enable "Daily export of iCal events".
In the header of the lcalcron.php file you will find further details on how to set up a cron job on your server.
Roel
Yes, John is right.
And try refreshing the calendar page once (F5) to be sure the cache is refreshed after the upgrade to version 4.7.5.
Groeten,
Roel
Greg, I've sent you the upgraded V4.7.5 .sql file which you can import in your database of your V4.7.5 calendar using phpMyAdmin.
Roel
Hi there,
For an unknown reason the sample csv files are not included in the latest LuxCal calendar version.
Send me your email address (via the Contact Us page) and I will send you the files.
Roel
Hi Tony,
That's quite possible. Maybe your provider upgraded PHP and maybe it's time also to upgrade the LuxCal calendar.
What calendar version are you using?
Roel
Hi there,
I had a look at your PonyCal and have the impression that your PHP sessions are not working.
Could you send me your email address (via the Contact Us page); I will then send you a small script to test your PHP sessions.
Roel
Hi Scunder,
Last week there was a calendar user with exactly the same problem and the good news is that I know how to solve it
There are two possibilities:
1) You upgrade to the latest version + this fix. This is a version I can send you (if you send me your email address).
2) You go to your server and use phpMyAdmin and in all tables of the calendar database change all fields which are set to "default Not null" and have no default value to "default Null". Altogether this has to be done 17X (sigh).
If you want to upgrade, which I of course recommend, let me know your email address and I will send you the latest calendar version with the "SQL strict" fix and instructions how to do this.
I of course would not mind if at the same time you translate the new texts in the language files of the upgraded calendar
Roel
Hi Piotr,
Yes, your session problems are fascinating
Send me your email address (via the Contact Us page) and then I will send you a simple PHP script to test the PHP sessions.
No sessions, no calendar
Roel
Hi Piotr,
I assume PHP sessions are enabled. So the problem is almost certainly the session.save_path (wrong directory or permissions not correct).
I think you should just tell your provider that your PHP sessions are not working and ask them to solve this problem. And maybe give them a hint that it is probably due to a wrong session.save_path.
Often one can select a PHP version in the control panel of your web host. If this is possible you could try to switch to a different PHP version, for which the session.save_path has been set correctly. (each PHP version has it's own session.save_path, so it is quite possible that an other PHP version works fine).
The LuxCal calendar runs with PHP V5.4 or higher.
Roel
Hello Piotr,
There are basically two possible reasons for PHP sessions not to be working:
1) sessions are not enabled in the PHP installation, which is very unlikely because many PHP web applications use sessions.
You can check if sessions are enabled by uploading a script containing . . .
phpinfo();
. . . to the calendar root on your server and start it with your browser. It will show you the PHP installation details. Now scroll down to (or search for) SESSION and check the first line.
2) the session save path (session.save_path) is incorrect. In more than 99% of the cases this is the problem.
In the same PHP installation details as above, some lines down, you will find the variable session.save_path (see screenshot). In my case it is "/tmp". I don't know what it should be in your case, maybe "/tmp", maybe not. You can change the value in the php.ini file (if you have access to that file).
Hopefully this solves your problem. If not, let me know and I will try to help.
Roel
We are currently solving this problem by email.
Roel
Hi there,
It works as follows:
- create in the calendar root a folder called (for instance) "images"
- upload your logo.jpg file to this images folder (max. image size 70 x 70px)
- on the Settings page, under General, specify Path/name of logo image like this: "images/logo.jpg"
If this is what you did, could you please send me a link to your calendar, so that I can have a look. You can send me the link by email if you prefer.
Roel
Ah, I see.
This was a security risk in the 'old' LuxCal versions. Anybody could edit an event this way.
In the newer versions this is not possible anymore.
But since you are familiar with tailoring the calendar, I will explain what could be done:
The link to open an event in edit mode is . . .
http://<your calendar URL>?xP=31&action=edi0&eid=2957&evD=2019-05-17
The part &evD=2019-05-17 is optional (only required to edit a single occurence of a repeating or multi-day event).
However when you use this link from outside the calendar, you will get the message "you are not authorized to perform this action".
This message can be avoided by editing the file "pages/events.php" and at the end of the file, in the if-statement at line 459, replace "$mayEdit" by "true".
Roel
Hi there,
The way events are stored and retrieved from the database has not changed since very long. So if you could retrieve an event from the database in a past LuxCal version, it should be possible now.
But to answer your "If so, how?" question, I need much more details of what you exactly want to do, like . . .
- Are you using the MySQL or SQLite version of the calendar?
- What kind of program "outside of LuxCal"? An existing external application, or a PHP script produced by you, or something else?
- What do you exactly mean by "to open events to edit"?
Roel
Hi Riaan,
Have you tried to refresh the calendar page (Ctrl-F5)?
If so, on the Settings, in the section Views, try to delete the Map viewer URL. Often mod_security on Apache servers doesn't like URLs in web forms.
If this solves the problem, please let me know and then I will give you a hint on how to solve this.
Roel
Most "displays" have the following setting in the GENERAL SETTINGS section:
$evtWin = 1; //on click open event window (0: no, 1: yes). If the user has post rights, the event add/edit window will open, otherwise the event report window will open
In LuxCal v4.7.5, when in the display $evtWin is set to '1', clicking events does not result in opening the Event window.
This is caused by a JavaScript error in the toolbox.js file.
To solve this problem, edit the file 'common/toolbox.js' and replace line 128 . . .
pars.cal1x = calID;
by . . .
if (typeof calID !== 'undefined') { pars.cal1x = calID; } //if defined, use calID; but don't store in session
Roel
Hi Greg,
I think it's a matter of clearing the browser cache and maybe deleting some old cookies after a V7.4.5 installation.
I'll make you an offer:
Export your current v4.7.3 database to a .sql file (with phpMyAdmin), send me the file and I will upgrade it for you. Thereafter you can import the upgraded .sql file in your second new installation and then together we will make it work, without PHP Session Expired messages.
Deal?
Roel
Hi Marc,
I think that 82 items could be too much to import in one go. Try splitting the .ics file in two parts and import both parts separately.
If this doesn't work, could you please send me the .ics file via email (via the Contact Us page), so that I can analyze the problem.
Roel
Thanks Dan,
We have been discussing to add a registration option to the events since quite some time already, but so far I could not find the time and energy to start coding
Maybe later this year. I had a look at the link you posted and the OperSource Registration script looks inspiring
Roel
Hi Dan,
Yes, I agree. This is rather serious and should be cured as soon as possible.
Hi Minne,
Please send me your email address as soon as possible (via the Contact Us page).
Regards,
Roel
Hi Minne,
Please don't post all that information in a forum. It's sensitive data which can be misused by malicious forum visitors. It's a wild world out here
You should always sent this kind of data by email just to me.
I removed the sensitive part and kept a copy for myself to further analyze the problem.
Roel
LuxCal Web Calendar → Posts by Roel