Author Topic: Object of class VmImage could not be converted to string  (Read 1093 times)

EvanGR

  • Jr. Member
  • **
  • Posts: 493
Object of class VmImage could not be converted to string
« on: June 10, 2022, 12:00:32 pm »
Hello,

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

Code: [Select]
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

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 10530
  • VM4.0.7 Eagle Owl
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: Object of class VmImage could not be converted to string
« Reply #1 on: June 20, 2022, 19:35:31 pm »
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

  • Jr. Member
  • **
  • Posts: 493
Re: Object of class VmImage could not be converted to string
« Reply #2 on: June 30, 2022, 12:41:08 pm »
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

  • 3rd party VirtueMart Developer
  • Full Member
  • *
  • Posts: 1620
    • MiniJoomla
  • Skype Name: support-easysoftware
  • VirtueMart Version: 3
Re: Object of class VmImage could not be converted to string
« Reply #3 on: June 30, 2022, 19:14:53 pm »
for debug we use n3t debug plugin:
https://bitbucket.org/n3t/n3t-debug/downloads/
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