Unsupported Operand Types: String + Int After Updating SP Page Builder Pro To 5.2.1 - Question | JoomShaper
Black Friday sale is live with flat 50% OFF. Sale ends soon! Grab your deal now!

Unsupported Operand Types: String + Int After Updating SP Page Builder Pro To 5.2.1

AK

Aleksandr Kowalczuk

SP Page Builder 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.

0
3 Answers
Toufiq
Toufiq
Accepted Answer
Senior Staff 2 years ago #139227

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

0
AK
Aleksandr Kowalczuk
Accepted Answer
2 years ago #139497

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)

0
Toufiq
Toufiq
Accepted Answer
Senior Staff 1 year ago #139816

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.

0