I found the setting
it's in Settings > Navigation Bar > Default view on start-up
You are not logged in. Please login or register.
LuxCal Web Calendar → Posts by JanC
Pages 1
I found the setting
it's in Settings > Navigation Bar > Default view on start-up
Hi,
The user can choose set different calendar view options on the top left such as
View
- Year
- Month
- Work Month
- Week
- Work week
- ..
Is it possible the change the default value of this setting? In not, can you point me to the code where this default option is set so that I change it manually in the source code.
thanks in advance 🙏
I believe it was cause by somehow starting the upgrade process on an already upgraded calendar. I drop the temp X tables and all seems to work.
Hi,
I installed a fresh new version of LuxCal 5.2.0M and restored a database which was also created using 5.2.0M
All seems to work but I noticed that all my db tables are duplicated:
SHOW TABLES;
lux_categories
lux_categoriesX
lux_events
lux_eventsX
lux_groups
lux_groupsX
lux_settings
lux_settingsX
lux_styles
lux_stylesX
lux_users
lux_usersX
Any idea what could be the reason for this? It seems the `X` are temporary tables.
When I inspect my original sql backup file, I don't see them. So it looks like they were created after.
Can I delete them?
cheers
Jan
Hi,
thanks for your answer.
As far as the preg_replace_callback goes the fix is similar to the strpos function
just add
$html = $html ?? "";
at the top of the addUrlImgEmlTags and remUrlImgEmlTags functions
btw, is this project opensource? I'd be happy to contribute with those fixes
hey,
I'm getting a similar issue when opening an event details:
Deprecated: preg_replace_callback(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /common/toolbox.php on line 536
The problem is not the function itself but the parameter being null.
By debugging I found out this method is called from the remUrlImgEmlTags function. The 3rd parameter is the value from the DB and can be coming either the columns text1, text2 or text3
By opening directly the sql DB I see that all of my events have text2 and text3 set to NULL. So I fixed it by updating directly my DB:
UPDATE lux_events
SET text2 = ''
WHERE text2 IS NULL;
UPDATE lux_events
SET text3 = ''
WHERE text3 IS NULL;
However that's a workaround. Those field should have been set to the correct empty value by the migration script I guess (I updated from 2.7)
As far as the strpos() is deprecated goes, I can also reproduce it simply by creating a new event. Again, I see this is coming from the event column "xDates" being nil just after its creation. I believe the default value of that field should be an empty string and not a NULL value
Another fix could be to pass a default value to the strpos() function if the xda is null:
if (strpos($row['xda'] ?? "", $curD) !== false) { continue; } //exception: skip
(note the '?? ""')
However I'm not sure how much compatible that is with different versions of PHP
Hey,
I'm having the same issue although I am updating from version 2.7.3 to 5.20. (I know it's very old version )
I'm using PHP 8.1.4 on macOS
I also tried updating from 2.7.3 to 5.11 but I get the same error
update:
What worked for me is commenting out the line upgradeDb function in the toolboxx.php
dbTransaction('commit'); //do it!
which is strange thought as it would suggest that the autocommit is enabled by default?
Pages 1
LuxCal Web Calendar → Posts by JanC