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.
Unsupported operand types: string + int after updating SP Page Builder Pro to 5.2.1
1 reply
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
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)
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.