1 (edited by john_smith 2022-08-08 20:36:10)

Topic: PHP Error When Displaying Certain Calendar Types

I recently switched my home server's software configuration. With the server up and running I got my web apps running, one of which is Luxcal.

I simply copied Luxcal's entire home directory into the new web server's directory structure and pulled the trigger.

Luxcal works fine except for one thing: when Luxcal displays the "Month" or "Work Month" calendar style, the calendar appears below a series of error messages in line item form, each line identically stating the following:

Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /var/www/mvocal/common/retrieve.php on line 202

All other displays and functions seem to be working fine on Firefox and a (modified version of) Chrome. My server's software configuration is as follows:
Ubuntu 22.04
Apache2 2.4.52
PHP 8.1.2
PHP Zend Engine 4.1.2
Luxcal 5.2.0L
Luxcal Database SQLite 3.37.2

Here's an obfuscated link to an image of what the error looks like:
h t t p s colon two forward slashes imgur dot com forward slash gallery forward slash AUuwV6w
I'll remove the link if its in violation of the terms of use of this forum. I'm just trying to help...

Re: PHP Error When Displaying Certain Calendar Types

Hi John,

This is a known problem. There are two possibilities: Either go back to a PHP version < V8 or upgrade your LuxCal calendar to the latest calendar version 5.2.1. We of course recommend to upgrade.

Roel