CMS 5.4 and PHP 8 gives HTTP error 500

CMSimple 4.0 und höher
Post Reply
ffelicia
Posts: 39
Joined: Mon 2. Nov 2015, 18:46
Location: Præstø Denmark
Contact:

CMS 5.4 and PHP 8 gives HTTP error 500

Post by ffelicia »

After CMSimple update 4.x-x-x to 5.4 the site returns blank screen (http 500) when running om PHP 8 , No problem running PHP 7.4
All update requirement (plugin, file permissions, --) controlled.
Error 500 is very open, but cannot find more details.

Same update at same hosting has been made for two other sites without problem running on PHP 8.0 or 8.1
The site with the php8/500 problem (www.troldand.dk) have a en language folder and no cmsimple updates in that folder.
The same (with en-folder without updates) is the situation with one of the other sites (www.fortissimo.dk) but it works without php8/500 problem.

Does anybody have a hint or clue or anything that can help me finding the cause ?

-jørgen
Gert
Posts: 2075
Joined: Sun 18. Nov 2012, 14:18

Re: CMS 5.4 and PHP 8 gives HTTP error 500

Post by Gert »

Hello,

are there different plugins working? Have you also updated all plugins to the current versions? An old plugin also can cause problems under php8,

Gert

=========================

PS: found the plugins gbook and gallery ... update not possible as far as I know
Gert Ebersbach | CMSimple | Templates - Plugins - Services
ffelicia
Posts: 39
Joined: Mon 2. Nov 2015, 18:46
Location: Præstø Denmark
Contact:

Re: CMS 5.4 and PHP 8 gives HTTP error 500

Post by ffelicia »

All plugins shown at system info has been updated
Thank you for the clue about gbook and gallery
I will go a little bit deeper about these, as I cannot say for sure how they are used.

_jørgen

system info copy/paste in danish

co_authors Nuværende CMSimple version der er installeret (2.0)
comments Nuværende CMSimple version der er installeret (4.8)
convert_h1split Ingen version informationer tilgængelige
filebrowser Standard System Plugin
fotoboxes Nuværende CMSimple version der er installeret (2.8)
fotopro Nuværende CMSimple version der er installeret (4.4)
gallery Ingen version informationer tilgængelige
gbook Ingen version informationer tilgængelige

jquery Standard System Plugin
meta_tags Standard System Plugin
multimedia2 Nuværende CMSimple version der er installeret (2.2)
multimediaslider Nuværende CMSimple version der er installeret (1.1)
page_params Standard System Plugin
pagemanager Standard System Plugin
realblog Nuværende CMSimple version der er installeret (4.2)
templateswitch Nuværende CMSimple version der er installeret (3.3)
tinymce Standard System Plugin
ffelicia
Posts: 39
Joined: Mon 2. Nov 2015, 18:46
Location: Præstø Denmark
Contact:

Re: CMS 5.4 and PHP 8 gives HTTP error 500

Post by ffelicia »

Unused (and old unsupported) plugins deleted, - no change in HTTP 500 PHP8

Changed CMSIMPLE to run in debug mode enabled gives
Fatal error: Uncaught TypeError: Unsupported operand types: string * int in /customers/7/2/3/troldand.dk/httpd.www/plugins/fotoboxes/index.php:187 Stack trace: #0 /customers/7/2/3/troldand.dk/httpd.www/cmsimple/functions.php(181) : eval()'d code(1): FotoBoxSlide('Troldand', '500', '360') #1 /customers/7/2/3/troldand.dk/httpd.www/cmsimple/functions.php(181): eval() #2 /customers/7/2/3/troldand.dk/httpd.www/plugins/index.php(1114): evaluate_plugincall('
Velkommen ( the title of the first page )

I cannot interpret the debug . but to me it indicates at fotobox problem.

At the first pages there is a {{{PLUGIN:FotoBoxSlide('Troldand','500','360');}}}
Looking at https://www.ge-webdesign.de/cmsimpleplu ... _FotoBoxes may give a hint
It tells 2.8 letzte Version und (SlideBox) wird nicht mehr unterstützt

What is the best or recommended thing to do (if FotoBoxSlide is the problem):
Use {{{PLUGIN:FotoBoxMSA('troldand','500px','fade','','');}}} or something like that going for non-sliding but random picture
Or upgrade to plugin imagechangers and have at sliding plugin - but with 20+ pictures which is more than recommended 8max
Or convert to Fotopro

??

-jørgen
ffelicia
Posts: 39
Joined: Mon 2. Nov 2015, 18:46
Location: Præstø Denmark
Contact:

Re: CMS 5.4 and PHP 8 gives HTTP error 500

Post by ffelicia »

I have removed {{{PLUGIN:FotoBoxSlide('Troldand','500','360');}}} and changed PHP to 8.1, and the 500 has gone

So in some way the problem is connected to PLUGIN:FotoBoxSlide

-jørgen
ffelicia
Posts: 39
Joined: Mon 2. Nov 2015, 18:46
Location: Præstø Denmark
Contact:

Re: CMS 5.4 and PHP 8 gives HTTP error 500

Post by ffelicia »

Or more precise
Connected to the use of FotoBoxSlides

The gallery name is troldand but the parameter is Troldand
Copy the FotoBox Gallery til FotoPro and and call FotoPo plugin has the same malfunction depending on uppercase naming

Debug gives for fotoboxslide on PHP 7.4
NOTICE: Undefined offset: 313
/customers/7/2/3/troldand.dk/httpd.www/plugins/page_params/index.php:145
NOTICE: Undefined variable: fotoBoxesFiles
/customers/7/2/3/troldand.dk/httpd.www/plugins/fotoboxes/index.php:199
WARNING: 2 Invalid argument supplied for foreach()
/customers/7/2/3/troldand.dk/httpd.www/plugins/fotoboxes/index.php:199

I will test and debug again in a couple of days when I am back.
Now it point in different direction and a bit confusing for me.
But seems obvious that FotoBox and espacially FotoxBoxSlide is not the solution in future

jørgen
Gert
Posts: 2075
Joined: Sun 18. Nov 2012, 14:18

Re: CMS 5.4 and PHP 8 gives HTTP error 500

Post by Gert »

Hello,

2017-01-27 I have declared the end of support for FlexSlider, because the FlexSlider Script was not developed anymore, for example to be responsive.
(look at the changelog: https://www.ge-webdesign.de/cmsimpleplu ... _FotoBoxes )

2021-02-12 I have declared the end of development for FotoBoxes, and I have published a last version for php8. You can use it as long as it works, but anytime it will fail. At the moment it should work, also under php 8.

The successor of FotoBoxes is ImageChangers, a plugin without external scripts:

https://www.ge-webdesign.de/plugindemo/ ... geChangers

... or for galleries with much photos FotoPro.

But unfortunately no one of this plugins can use the image data of FotoBoxes. You can put the photos into the gallery folders, but than you have to setup the new galleries again (for example create thumbs and image descriptions). But you can copy the image descriptions from the data.php of the FotoBoxes galleries.

But: you can do it step by step, I hope, FotoBoxes will survive the next php versions ;-)

Gert

===================================

PS: As I see, you have very much FotoBoxes galleries in use on your website - a lot of work ... :roll:

But you use the minislider - it should work for a long time with no problems. I do not think, that the minislider function will fail in the next php versions.
Gert Ebersbach | CMSimple | Templates - Plugins - Services
ffelicia
Posts: 39
Joined: Mon 2. Nov 2015, 18:46
Location: Præstø Denmark
Contact:

Re: CMS 5.4 and PHP 8 gives HTTP error 500

Post by ffelicia »

Hello Gert

Thank you for making it clear what to do in future. And it is as I would expect it to be.

I will go for ImageChangers as the slider and if there is to many pictures, the galleri will bereduced until no problem.

And convert to FotoPro for the Fotoboxes-galleries, - and yes lot of galleries and work. But work is more easy to handle than problems.

It is a rather easy job as the Fotoboxes pictures (folders) can be re-used after a copy to a Fotopro folder

Best regards

-jørgen
Post Reply