News:

Looking for documentation? Take a look on our wiki

Main Menu

Object of class VmImage could not be converted to string

Started by EvanGR, June 10, 2022, 12:00:32 PM

Previous topic - Next topic

EvanGR

Hello,

In one of my products (frontend) I am getting an error page with the following message:

0 - Object of class VmImage could not be converted to string

It only happens with a single product so far (in a site with thousands of products). Therefore it's an edge case.
The product loads fine in the backend, including the product image, and I tried re-saving it but this didn't fix it.

Any suggestions on how to approach/debug this?

Thanks

[VM 3.8.9 10473]

Milbo

enable the joomla debug and check the trace and post it here, so I can take a look. At best not only the last line, just the last 3-4 lines
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

EvanGR

I enabled Joomla debug, and error level reporting to maximum.
Nothing changed in the error page. (no debug information)

Discovered something super-weird... if I change the product title, e.g. add a blank space at the beginning, the product works fine!
If I change it back to the original, it crashes again.
Here's the original product title: Φορτιστής, συντηρητής και αποθειωτής συσσωρευτών 2 θέσεων φόρτισης NOCO GENIUS2X2 4Α (2Α/θέση φόρτ)

pinochico

www.minijoomla.org  - new portal for Joomla!, Virtuemart and other extensions
XML Easy Feeder - feeds for FB, GMC,.. from products, categories, orders, users, articles, acymailing subscribers and database table
Virtuemart Email Manager - customs email templates
Import products for Virtuemart - from CSV and XML
Rich Snippets - Google Structured Data
VirtueMart Products Extended - Slider with products, show Others bought, Products by CF ID and others filtering products