Author Topic: Product edit in admin - PHP v8.0 "Unsupported operand types: string + int"  (Read 622 times)

xur82

  • Beginner
  • *
  • Posts: 11
Virtuemart 4.0.6
Joomla 4.15

Working fine with php 7.4, but if I switch to php v 8.0 I have an error when trying to edit a product in Virtuemart Admin..
Unsupported operand types: string + int
and the product details will not display.

Any help would be appreciated, thanks

pinochico

  • 3rd party VirtueMart Developer
  • Full Member
  • *
  • Posts: 1541
    • MiniJoomla
  • Skype Name: support-easysoftware
  • VirtueMart Version: 3
wait for version for PHP8 :)
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

xur82

  • Beginner
  • *
  • Posts: 11
I have a choice on my hosting account 8.0 (which is what I am trying) and 8.1
cheers

xur82

  • Beginner
  • *
  • Posts: 11
My original post should have said php 8.0
Since your reply I just tried 8.1 and have the same error/problem with that php version too

pinochico

  • 3rd party VirtueMart Developer
  • Full Member
  • *
  • Posts: 1541
    • MiniJoomla
  • Skype Name: support-easysoftware
  • VirtueMart Version: 3
Our hosting is from PHP52 to PHP8.1

cheers too  8)
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

Jac62

  • Beginner
  • *
  • Posts: 3
  • A beginner
Same problem with Joomla 3.10.10 and PHP 8.0.
Error in front end: Unsupported operand types: string % string

It works fine with PHP 7.4
Does anyone have a clue ?
Thanks

Jac62

  • Beginner
  • *
  • Posts: 3
  • A beginner
VM 4.0.6
Same problem with Joomla 3.10.10 and PHP 8.0.
Error in front end: Unsupported operand types: string % string

It works fine with PHP 7.4
Does anyone have a clue ?
Thanks

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 10579
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.8.8
supply the bug trace with debugging so we know where it is happening...
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

Jac62

  • Beginner
  • *
  • Posts: 3
  • A beginner
Hi,

in php 8, with the debug mode, the page remains blank.
Here is the code from the previous page that calls the product categories. Thanks.

{
    "__default": {
        "session": {
            "counter": 42,
            "timer": {
                "start": 1659594535,
                "last": 1659688896,
                "now": 1659688900
            },
            "token": "s3VZZJHjSFZhQrTj5QmVHFxOfhZa7i7d"
        },
        "registry": {
            "com_virtuemart": {
                "category": {
                    "limit": ""
                },
                "categoryc13m0": {
                    "limitstart": 0
                },
                "categoryc23m0": {
                    "limitstart": 0
                },
                "categoryc15m0": {
                    "limitstart": 0
                }
            }
        },
        "user": {
            "id": 0,
            "name": null,
            "username": null,
            "email": null,
            "password": null,
            "password_clear": "",
            "block": null,
            "sendEmail": 0,
            "registerDate": null,
            "lastvisitDate": null,
            "activation": null,
            "params": null,
            "groups": [],
            "guest": 1,
            "lastResetTime": null,
            "resetCount": null,
            "requireReset": null,
            "aid": 0
        },
        "plg_system_languagefilter": {
            "language": "fr-FR"
        }
    },
    "__vm": {
        "manage": 0,
        "vmlastvisitedItemid": 123,
        "vmlastvisitedcategoryid": 0,
        "vmlastvisitedmanuid": 0,
        "vmcartlastVendorId": 1
    }
}

Studio 42

  • Contributing Developer
  • Sr. Member
  • *
  • Posts: 4655
  • Joomla & Virtuemart developper
    • Studio 42 - Virtuemart & Joomla extentions
  • VirtueMart Version: 2.6 & 3
If you have a blank page, activate the debug log file in PHP. So you have the informations
But blank page should show the php debug trace if you have set it correctly