Black Friday 2026 50% off every plan Our biggest deal of the year on #1 Joomla products.
Ends in 12d 16h 18m 52s
Claim 50% off
Staff replied Templates

Finion Quickstart - finatic_services can´t change image in frontend-editing

Asked by Andre Göckler 4 years ago Last activity 4 years ago

Hi joomshaper-team,
thanks for the great template Finion which I´ve installed via Quickstart for Joomla 4.0.4 (PHP 7.4.26).

After changing an image in frontend-editing in the addon finatic_services I´ve got the error "Object of class stdClass could not be converted to string" like in a lot of posts from other user described. This addon is used in other templates too and I found a post, where is described to change this file:

/sppagebuilder/addons/finatic_services/site.php on line 36

Old:
$output .= '<img src="' . $service_img . '">'
New:
$output .= '<img src="' . json_decode(json_encode($service_img->img), true) . '">"

See in posts:
https://archive.joomshaper.com/forums/white-page-and-error-message-after-language-update
https://archive.joomshaper.com/forums/object-of-class-stdclass-could-not-be-converted-to-string-in-www-templates-finatic-sppagebuilder-addons-testimonial-slider-site-php-on-line-21

But this dosen´t work and produce another error:
"syntax error, unexpected 'class' (T_CLASS)"

I use PHP-Version 7.4.26 and think, may this is the problem - but - this version of PHP is the next to 8 the current version and I can´t believe that this addon not work in a Template respectively Quickstart Updated Last: 22 June 2021!
Editing the pagebuilder site directly and change an image work, but I need the frontend-editing for my customer and want you to give me and other users a quick and detailed instruction to fix this issue. Hopefully without to have to share an Admin access.

Thanks in advance.
Greets Andre

15 replies

Toufiq Senior Staff

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

Andre Göckler Asked this

Hi Toufiq,
thanks for your answer. I will send you the login data. Please let me know the solution so that I can understand where the error was.
Greets Andre

Toufiq Senior Staff

Hi there, I have updated the code.

templates/your_template/sppagebuilder/addons/finatic_services/site.php

site.zip

-Thanks

Andre Göckler Asked this

Hi Toufiq,
thank you very much for your help - know it works as expected. SP Pagebuilder (up to v. 3.7.10) itself is compatible with PHP 8 and if I change PHP version from 7.4 to 8 in future your edited code will work too, right?

Greets Andre

Toufiq Senior Staff

Yes, PHP 8 will work in the future. Thanks

Andre Göckler Asked this

Hi Toufiq,
thanks! I just recognized, that there ist the same problem with the addon "advance_slideshow". Could you please edit the file "site.php" for this addon and send me for integration? I have already deleted your admin login and hope, you can send me the updated file just like this without testing if possible. When you need admin account again let me.
Thanks in advance.
Greets Andre

Toufiq Senior Staff

Hi there, I have updated the code.

templates/your_template/sppagebuilder/addons/finatic_services/site.php

File
site.zip

-Thanks

Andre Göckler Asked this

Hi Toufiq,
you haven´t read my comment. I talk about the same error but in the addon "advance_slideshow".

/templates/finion/sppagebuilder/addons/advance_slideshow/site.php

Thanks for your help

Toufiq Senior Staff

Did you change administrator access?

Andre Göckler Asked this

Hi Toufiq,
yes, as I wrote in comment. But I activated it know and you can login again. It´s the slideshow on Page "Startseite" (frontpage).
Greets Andre

Log in to reply.