Unsupported operand types: string + int after updating SP Page Builder Pro to 5.2.1 - Forum | JoomShaper
Staff replied SP Page Builder

Unsupported operand types: string + int after updating SP Page Builder Pro to 5.2.1

Asked by Aleksandr Kowalczuk 2 years ago Last activity 2 years ago

After updating Page Builder to 5.2.1 I've started to get "Unsupported operand types: string + int" on my main page. It doesn't show up in while editing on frontend/backend but shows up in preview. I've narrowed it down to Tabs compontent on the page. If a page contains a Tabs element with anything in it, it fails to render and returns "Unsupported operand types: string + int". Replacing Tabs element with a new one doesn't change anything.

1 reply

Toufiq Senior Staff

Hi there,

I appreciate you reaching out. I sincerely apologize for this oversight. Will you please provide me the Joomla administrator access to check the issue? I will check & get back to you soon. 

-Thanks

Aleksandr Kowalczuk Asked this

After some debugging I found and fixed the issue (probably, no errors for now).
The main cause was an syntax error in templates/shaper_medico/sppagebuilder/addons/tab.php, line 38 and 45. As I understand this should concate the strings, not add something. (JS syntax vs PHP syntax)

The original:
($this->addon->id + $key)
Fixed:
($this->addon->id . $key)

Toufiq Senior Staff

Thank you for providing a detailed explanation of your actions. We will incorporate these insights into our next release. Please continue to enjoy using our products, and don't hesitate to reach out if you require further assistance. Your feedback is highly valued.

Log in to reply.