"Unsupported Operand Types: String + Int" Error On "Startup Landing" Template Blog Home Page When Migrating Site From PHP 7.4 To PHP 8.0 Or 8.1 - Question | JoomShaper

"Unsupported Operand Types: String + Int" Error On "Startup Landing" Template Blog Home Page When Migrating Site From PHP 7.4 To PHP 8.0 Or 8.1

C

CyberM

Template 1 year ago

Hello. Why does the "Startup Landing" template blog home page get the "Unsupported operand types: string + int" error when migrating a site from PHP 7.4 to PHP 8.0 or 8.1?

Tell me, please, what could be the reason for this and how to fix it?

1
6 Answers
M
milad
Accepted Answer
1 year ago #82046

Same issue for me !

0
Ofi Khan
Ofi Khan
Accepted Answer
Support Agent 1 year ago #82552

Hello CyberM and milad

Please use PHP 7.4 for the template. It is not yet compatible with PHP 8.

Best regards

0
‏‏‎ ‎J‏‏‎‎e‏‎‏‏‎‎n‏‏‎‎s W.‏‏‎
‏‏‎ ‎J‏‏‎‎e‏‎‏‏‎‎n‏‏‎‎s W.‏‏‎
Accepted Answer
1 year ago #83632

Hello @Ofi,

I have a question about the Startup Template.
Does the template exist only as a quickstart for Joomla4?
In the download section the link for the template for Joomla4 is missing.
The existing link for the template alone, is unfortunately only the Joomla3 template.

startuplanding_templatet_j3.zip

I wanted to provide CyberM and Milad the needed patches "PHP8" for the template.
If the hoster forces the change to PHP8, the patches could be used until Joomshaper can provide an update.
So CyberM and Milad would have no downtime of the site.

0
Ofi Khan
Ofi Khan
Accepted Answer
Support Agent 1 year ago #83736

Hello Jens,

The template will work both on Joomla 3 and Joomla 4. Maybe it's the naming mistake only. Please try it. Also, thank you for your contribution to the forum.

0
‏‏‎ ‎J‏‏‎‎e‏‎‏‏‎‎n‏‏‎‎s W.‏‏‎
‏‏‎ ‎J‏‏‎‎e‏‎‏‏‎‎n‏‏‎‎s W.‏‏‎
Accepted Answer
1 year ago #83812

Hello @Ofi,

the zip is unfortunately really only the Joomla3 variant.
This is due to the included Helix-Ultimate.
This still uses the old functions that are no longer available in Joomla4.

Call to undefined method Joomla\CMS\Application\AdministratorApplication::isAdmin() and behavior::caption

As a result, the backend is then no longer usable.
After I corrected this and updated Helix, it turned out that it is a Joomla3 template, because it also still uses the old "behavior::caption" functions, which in turn lead to errors.

The solution here was to download Quickstart and copy out only the template folder.
This is already without the old calls.

After that, the template now worked without error messages under PHP 8.0.22.

So far I could not find any problems after that.

I tested it with the following:

  • PHP 8.0.22
  • Joomla 4.2.2
  • Helix Ultimate 2.0.11
  • Startup-Landing 2.0.0
  • SP-Page-Builder 4.0.4

With kind regards

0
‏‏‎ ‎J‏‏‎‎e‏‎‏‏‎‎n‏‏‎‎s W.‏‏‎
‏‏‎ ‎J‏‏‎‎e‏‎‏‏‎‎n‏‏‎‎s W.‏‏‎
Accepted Answer
1 year ago #83814

@CyberM and @Milad

Would you please provide the following information?

  • Joomla version
  • Helix UItimate Version
  • Startup Landing Version

Maybe the problem is already fixed with an update.
If not, I may be able to find the cause with the help of the information.

With kind regards

0