Topic: Error during Calendar Upgrade 5.2.3M

Hi,

I tried to upgrade LuxCal from 5.2.2M to 5.2.3M, but, there is an error, and it's stopped :

Calendar Upgrade to Version 5.2.3M
(/upgrade523.php)
Fatal error: Uncaught ValueError: strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack) in *****\common\toolboxx.php:902 Stack trace: #0 *****\common\toolboxx.php(902): strpos() #1 *****\upgrade523.php(197): upgradeDb() #2 {main} thrown in *****\common\toolboxx.php on line 902


Please, do you have any idea ?

Thank you

PS : PHP version 8.1.23

Re: Error during Calendar Upgrade 5.2.3M

Hi Maxime,
I tested this in our test calendar and I cannot reproduce this problem. Maybe your PHP installation is more "strict" than ours.
I suggest to try the following:
Edit the file "/common/toolboxx.php" and on lines 898, 902 and 906 delete the ",30" close to the end of the line.
In other words, change the lines from . . . .

if (strpos($row['text2'],'sml(',30)) {

to . . . .

if (strpos($row['text2'],'sml(')) {

Thereafter the problem should be gone.
Please let us know if it's OK now.
Roel

Re: Error during Calendar Upgrade 5.2.3M

Thanks a lot, it works !