Error after upgrsde PHP to 7.4 Edit Resource Search Name

3 posts / 0 new
Last post
pllera
Error after upgrsde PHP to 7.4 Edit Resource Search Name

Dear Support

We recently upgrade to PHP to 7.4 (we use CWSI 4.1.1), and now we receive the following error message  when we try to Edit Recourses  and in the author field search  author (the seam happens in the  other fields like year of publish,  etc.):

Page Jump Aborted (because of error or other unexpected output)
Jump Target: http://literaturalosrios.cl/catalogo/index.php?P=EditResourceSearchName&...

Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/literaturcl2016/2016.literaturalosrios.cl/catalogo/pages/EditResourceComplete.php on line 170

 

Tanks in advance for your help.

Regards
Pedro

 

chalpin
Re: Error after upgrsde PHP to 7.4 Edit Resource Search Name

As the text you quoted states the message you are receiving is a warning, not an error. The PHP team decided for the 7.4 release that using "continue" in a switch statement, though correct, was confusing and they made the language issue these warnings about it.

In the short term, the simplest fix is to disable PHP warnings by adding error_reporting(error_reporting() & ~E_WARNING); to the end of your local/config.php.

In our development tree we've already updated this part of the code to use the PHP team's preferred syntax so that the next version of the software, when it is released, will not require the above workaround.

pllera
Re: Error after upgrsde PHP to 7.4 Edit Resource Search Name

Thank you very much - we disable PHP warnings as indicated and now back on business ;-).