Spectrum Template does Not Work With PHP 8.0 Or Higher - Question | JoomShaper
Black Friday sale is live with flat 50% OFF. Sale ends soon! Grab your deal now!

Spectrum Template does Not Work With PHP 8.0 Or Higher

louisj

louisj

Template 3 years ago

Hi there,

Having 2 most recent versions of 2 different templates here: Hope and Spectrum. Where Hope works fine on J3 of J4 with latest SP Pagebuilders and PHP 8, Spectrum does not. It does work properly with PHP 7.4 but Joomla core is mentioning that PHP 7.4 is end-of-life and that is will stop to support this version at all as of November this year. What can you or I do to prevent my website from going offline?

Kind regards,

Louis

0
6 Answers
louisj
louisj
Accepted Answer
3 years ago #84462

Hi there Jens,

How awesome of you to share this. The bad news is, it did not solve the issue. The good news is, thanks to you the issue is solved anyway. I'll explain why.

Your response triggered me to dive deeper than I did so far. What I did sofar was comparing 2 Joomla sites, both same Joomla version, same SPPB version but different Joomshaper templates. Where 1 did work with PHP8.0, the other not. So my conclusion was: it's the template.

However, I did not have a look at actual error messages. So I turned on the development mode and found out 2 error messages.

Where one was related to a file which I assume is part of the core: /%root%/plugins/system/gzip/helper.php. I was able to fix the error (replacing {} with [] around some parameter) and that solved the actual issue. The other error was not blocking the usage of PHP8.0 at all.

So this case can be closed as the template did not seem to cause any issue at all. My appologies. But thanks for your response which was in the end the trigger to find the actual issue :-)

Thanks,

Louis

1
Ofi Khan
Ofi Khan
Accepted Answer
Support Agent 3 years ago #84150

Hello louisj

Apology for the inconvenience. Please allow us some time. We will update the templates soon. Sites will be alright with PHP 7.4 even after end of life. It is just the end of security updates.

Best regards

0
louisj
louisj
Accepted Answer
3 years ago #84170

Hi Ofi,

Thanks for the response. And thanks for picking this up. To me a website that does not receive security updates anymore is a website that is not considered as "alright". Is there any indication when the update could be there? Moreover my current subscription end 27 September. So how would that work? PHP8 has been released in November 2020 already by the way.

Kind regards,

Louis

0
‏‏‎ ‎J‏‏‎‎e‏‎‏‏‎‎n‏‏‎‎s W.‏‏‎
‏‏‎ ‎J‏‏‎‎e‏‎‏‏‎‎n‏‏‎‎s W.‏‏‎
Accepted Answer
3 years ago #84239

Hello louisj,

if you have one the following error message, you can use my patches.
Which I provided Joomshaper in there github repository.

https://github.com/JoomShaper/Helix3/pull/112

array_replace(): Argument #2 () Must Be Of Type Array, String Given

or

Failed opening required '....route.php'

If you have a diffrent Problem, let me know the error message and I will see if I can provide you a patch.

Toufiq said in a diffrent thread, the developer are now working on the templates.
Unfortunately, it is unclear exactly which ones are being worked on and also when there will be patches from Joomshaper.
https://www.joomshaper.com/forum/question/12450#qa-answer-83491

With kind regards

0
‏‏‎ ‎J‏‏‎‎e‏‎‏‏‎‎n‏‏‎‎s W.‏‏‎
‏‏‎ ‎J‏‏‎‎e‏‎‏‏‎‎n‏‏‎‎s W.‏‏‎
Accepted Answer
3 years ago #84545

Hello louisj,

I'm glad to hear that you were able to locate and fix the problem.
Thank you also for sharing how you were able to find and fix the problem.

Yes the debug mode is very helpful here because it shows the stack trace and where exactly the error is coming from.

Have a great rest of the week and continued success.

Many greetings

Jens

0
Ofi Khan
Ofi Khan
Accepted Answer
Support Agent 3 years ago #84611

Happy to see that you guys are helping yourselves. Thanks for sharing the knowledge.

Please accept the answer that helped you. It will be then easier to find the solution for the other users with the same issue. There is a button to accept answer after each comment.

Have a good day, louisj and Jens 😊

0