PHP 8 - Question | JoomShaper
šŸŽƒ Halloween Sale is Live! Get 35% OFF on all plans. Sale ends soon!Ā Get Offer

PHP 8

W

Willem

General 3 years ago

Hello all,

I have this problem now for approx. 6 months and still no solution? It is getting a bit annoying! Updated to the newest versions and still the same problem when i activate PHP 8.0.

6 months ago i wrote this:

I enabled the error reporting. I put the PHP version back to 8.0 and 8.1 and get the same error. Now i put it back to PHP 7.4 and reload the webpage and saw in the upper level of the website this warning coming

Warning: A non-numeric value encountered in /mnt/web404/a3/70/52008070/htdocs/components/com_sppagebuilder/addons/image_carousel/site.php on line 108

I put back the PHP version 8.0 or 8.1 and then disabled the Image Carousel and reload the page and it was loading normal without any problems.

So maybe there is going something wrong in the script of the page and then specialy with the image_carousel.

Hope you can resolve this problem.

Thankx in advanced

Kind regards,

0
3 Answers
ā€ā€ā€Ž ā€ŽJā€ā€ā€Žā€Žeā€ā€Žā€ā€ā€Žā€Žnā€ā€ā€Žā€Žs W.ā€ā€ā€Ž
ā€ā€ā€Ž ā€ŽJā€ā€ā€Žā€Žeā€ā€Žā€ā€ā€Žā€Žnā€ā€ā€Žā€Žs W.ā€ā€ā€Ž
Accepted Answer
3 years ago #72688

Hello Willem,

this could happen, if there is no arrow_border_width set.
Define the arrow_border_width as 0 and the warning message should disapear.

In version 4.x, this problem should not be present.
The developers have rewritten the site.php.

Alternativly, you can change the site.php.

Change Line 108 from

$arrow_style .= (isset($settings->arrow_height) && $settings->arrow_height) ? "line-height: " . (($settings->arrow_height)-($settings->arrow_border_width)) . "px;" : "";

to

$arrow_style .= (isset($settings->arrow_height) && $settings->arrow_height && isset($settings->arrow_border_width) && $settings->arrow_border_width) ? "line-height: " . (($settings->arrow_height)-($settings->arrow_border_width)) . "px;" : "";

I just added an additional query for the border width.
Now the calculation will only happen, if both variables are present.

0
W
Willem
Accepted Answer
3 years ago #72698

Hello Jens,

Thank you very much for your quick answer.

I did what you suggest and this resolved the problem :) I changed it and now the website runs smooth under PHP 8.1

Thank you once again for your quick solution!

Kind regards,

Willem

0
Mehtaz Afsana Borsha
Mehtaz Afsana Borsha
Accepted Answer
Support Agent 3 years ago #72700

Hi Willem,

Glad to know that it is fixed now. And thanks Jens for sharing the solution with us. It really helped a lot.

-Regards.

0