Cuisine - Object Of Class Error - Question | JoomShaper
Black Friday sale is live with flat 50% OFF. Sale ends soon! Grab your deal now!

Cuisine - Object Of Class Error

S

StuartPerrett

Template 3 years ago

Are you able to post the Solution to this problem?

OBJECT OF CLASS STDCLASS COULD NOT BE CONVERTED TO STRING

You only get the ERROR when you use the Frontend Editor, If you use the Admin Edit Page the Error does not happen.

It ONLY effects any of the ADDITIONAL CODED ADD-ON Items when you change Images in the FRONT END. NOT Admin section. Base Addons with the Page Builder are all AOK error doesn't accur.

I would like to know the solution so if I use this template again I don't have to get support.

UPDATE ITEMS FOR NEXT RELEASE: Some Lang item that you may wish to fix within your ADMIN Lang file (en-GB.com_sppagebuilder.ini) include the following: COM_SPPAGEBUILDERADDONREOEATABLE_ITEMS Change to > COM_SPPAGEBUILDER_ADDON_REPEATABLE_ITEMS

Missing Lang COM_SPPAGEBUILDER_ADDON_BOOK_TABLE_SUBTITLE COM_SPPAGEBUILDER_ADDON_BOOK_TABLE_SUBTITLE_DESC

Running Latest Version cuisine_quickstart j3_v1.9

Server = PHP 7.4 (Have Tried version 8 still getting same Error) Both Base Install Joomla from Quick Install PLUS Updated to Latest Joomla 3.10.6 + 3 Extentions SP Pro - using a test (fresh Download version) Developed a site for a client and used the work around (admin Edit Page) in the mean time... I have used this template in the past and is working fine on my developed site.

0
9 Answers
Toufiq
Toufiq
Accepted Answer
Senior Staff 3 years ago #60131

Hi there,

Thanks for contacting us. Sorry for the inconvenience. Will you please provide me the Joomla administrator access to check the issue? I will check & get back to you soon. 

-Thanks

0
S
StuartPerrett
Accepted Answer
3 years ago #60214

Access Info submitted

0
Toufiq
Toufiq
Accepted Answer
Senior Staff 3 years ago #60278

Administrator login access doesn't work

You do not have access to the Administrator section of this site.

0
S
StuartPerrett
Accepted Answer
3 years ago #60478

Sorry about that - Access - SuperUser Granted now sorry

0
Toufiq
Toufiq
Accepted Answer
Senior Staff 3 years ago #60606

Please check now and re-insert your first image. Thanks

0
S
StuartPerrett
Accepted Answer
3 years ago #60607

Can you please share the solution to the problem

0
Toufiq
Toufiq
Accepted Answer
Senior Staff 3 years ago #60638

I have added fix on this file. You can use this file other site also.

templates/your_templates/sppagebuilder/addons/slideshow_full/site.php

0
S
StuartPerrett
Accepted Answer
3 years ago #60754

Around Line 24 - Add & Update this section - All to do with Image Source

    foreach ($this->addon->settings->sp_slideshow_full_item as $key => $item) {
        $src = "";
        if (isset($item->bg)) {
            if (is_object($item->bg)) {
                $src = $item->bg->src;
            } elseif (is_string($item->bg)) {
                $src = $item->bg;
            }
        }
        $class = ($key == 0) ? ' active' : '';

        $output .= '<div class="item' . $class . '" style="background-image: url('/ . JURI::base(true) . '/' . $item->image->src . ')">';
        $output .= '<div class="sppb-text-center">';

Around Line 87 Replace

                <div class="item {{activeClass}}" style="background-image: url(/{{item.image}})">
                <div class="sppb-text-center">

With <div class="item {{activeClass}}" style="background-image: url(/{{item.image.src}})"> <div class="sppb-text-center">

So the same Image Source would apply to the other Add-Ons right... Are these code fix ups going to be included in a new release of the template?

Hope this helps other having the same issue

0
Toufiq
Toufiq
Accepted Answer
Senior Staff 3 years ago #60850

We will merge it next release. Thanks

0