Error 0 when using Headline with link - Forum | JoomShaper
Solved SP Page Builder

Error 0 when using Headline with link

Asked by Schrift & Bild Nienaber GmbH 2 years ago Last activity 2 years ago

We just inherited a website from another agency that was build with the Page Builder Pro. When saving a page that has an Addon Heading that contains a link that page wil show Error "0 – Object of class stdClass could not be converted to string" on the frontend. The backend editor as well as the frontend editor are working just fine. It’s only the actual page that shows the error.
Pages containing linked Addon Headlines that haven't been saved are not showing any errors.

I tried updating both Joomla 4 as well as the SP Page Builder Pro to the newest version, but the error still shows when saving pages.

Accepted answer

Marked as the solution
Ziaul Kabir Staff

Hello,

This issues comes from override heading addon. I fix your issues, Please check and let me know. This way I solve this issues:

Go to system/templates/shaper_tixon/sppagebuilder/addons/heading/site.php

remove this line from site.php

$title_link = ($use_link) ? ((isset($this->addon->settings->title_link) && $this->addon->settings->title_link) ? $this->addon->settings->title_link : '') : false;

then use this code instead of above line:

// Handle title_link for the structure observed (src instead of url)
$title_link = '';
if ($use_link && isset($this->addon->settings->title_link)) {
        if (is_object($this->addon->settings->title_link) && isset($this->addon->settings->title_link->src)) {
                $title_link = $this->addon->settings->title_link->src;
        } elseif (is_string($this->addon->settings->title_link)) {
                $title_link = $this->addon->settings->title_link;
        }
}

Thanks

4 more replies

Ziaul Kabir Staff

Hello Schrift,

Thank you for reaching out to us. I apologize for the inconvenience, and I am currently looking into your issue.

Thanks for your patience!

Best Regards,

Ziaul Kabir Staff

Hello,

I created a test page and used the Heading addon with a link, but I didn’t encounter any issues. Could you please provide a screenshot showing where you’re facing this problem? Also, when providing us with access, please make sure to grant Super User permissions.

Thank you!

Schrift & Bild Nienaber GmbH Asked this

The Home pages use the Addon Heading with a link, on the German page the links still work, on the English Home page they don't.

When saving the page like in the screenshot the error occurs.

Ziaul Kabir Staff

Please, permit me to super admin access.

Thanks

Schrift & Bild Nienaber GmbH Asked this

You are a super user now.

Schrift & Bild Nienaber GmbH Asked this

Thank you for fixing this issue, it seems to work fine now.

Ziaul Kabir Staff

You are most welcome. Please, accept the answer of this question, so that It will mark as complete.

Thanks,

Log in to reply.