Topic: PHP Warning after PHP Update to 7.3

Hey,

i have troubles after updateing php to 7.3 from 7.2.
For example it is not possible to save the settings page.
This error comes up:
Warning: preg_match(): Compilation failed: invalid range in character class at offset 20 in /kunden/140346_38108/luxcal/pages/settings.php on line 80

I am running LuxCal Kalender: 4.7.1M
But ist seems that the line 80 has not changed in the newest version of luxcal.

There are somme more warnings - all like: preg_match(): Compilation failed: invalid range in character class

Any ideas?

Re: PHP Warning after PHP Update to 7.3

preg_match('/[\w-.]+/', ''); // this will not work in PHP7.3 
preg_match('/[\w\-.]+/', ''); // the hyphen need to be escaped 

Re: PHP Warning after PHP Update to 7.3

Hey Stefan,
bdjor is right!
So if you don't want to upgrade to calendar version 5.1.0, in the file "common/toolbox.php" on lines 25, 27 and 29 you should replace the variables $rxCalURL, $rxPhone and $rxIMGTags by the same variables of the same file in calendar version 5.1.0.
Roel

Re: PHP Warning after PHP Update to 7.3

Upgrading for me is not that easy because of a lot of additional code.

So many thanks for that solution!!!

   Stefan

Re: PHP Warning after PHP Update to 7.3

I knew that smile