Error 0 When Using Headline With Link - Question | JoomShaper

Error 0 When Using Headline With Link

SG

Schrift & Bild Nienaber GmbH

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

0
8 Answers
Ziaul Kabir
Ziaul Kabir
Accepted Answer
Support Agent 1 year ago #172769

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,

0
Ziaul Kabir
Ziaul Kabir
Accepted Answer
Support Agent 1 year ago #172773

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!

0
SG
Schrift & Bild Nienaber GmbH
Accepted Answer
1 year ago #172784

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.

0
Ziaul Kabir
Ziaul Kabir
Accepted Answer
Support Agent 1 year ago #172950

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

0
Ziaul Kabir
Ziaul Kabir
Accepted Answer
Support Agent 1 year ago #172789

Please, permit me to super admin access.

Thanks

0
SG
Schrift & Bild Nienaber GmbH
Accepted Answer
1 year ago #172798

You are a super user now.

0
SG
Schrift & Bild Nienaber GmbH
Accepted Answer
1 year ago #173035

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

0
Ziaul Kabir
Ziaul Kabir
Accepted Answer
Support Agent 1 year ago #173076

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

Thanks,

0