News:

Support the VirtueMart project and become a member

Main Menu

Error updating to PHP 8.2

Started by DonCorleo, November 09, 2023, 07:55:40 AM

Previous topic - Next topic

DonCorleo

I've upgraded a Joomla website to VM4.2.4 and J!4.4.0. All extensions have been updated to the latest version, but something is throwing an error and i can't figure out what it is. Hopefully there is someone here that can help out.

When switching PHP version from 7.4 to 8.2 the following error occurs:
Compile Error: Unparenthesized `a ? b : c ? d : e` is not supported. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)`

in /home/deb19843/domains/test.domainname.nl/public_html/libraries/sisow/base.php (line 292)
        $sisow->amount = round($order['details']['BT']->order_total, 2);        $sisow->payment = $this->paymentcode;                //Load User input values        $mainframe = JFactory::getApplication();        $bic = $this->paymentcode == 'eps' ? $mainframe->getUserState( "biceps" ) : $this->paymentcode == 'giropay' ? $mainframe->getUserState( "bicgiropay" ) : '';        if(!empty($bic))            $arg['bic'] = $bic;                $iban = $mainframe->getUserState( "iban" );        if(!empty($iban))

GJC Web Design

3rd party payment plugin named something like giropay ?
GJC Web Design
VirtueMart and Joomla Developers - php developers [url="https://www.gjcwebdesign.com"]https://www.gjcwebdesign.com[/url]
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
[url="https://extensions.joomla.org/profile/profile/details/67210"]https://extensions.joomla.org/profile/profile/details/67210[/url]
Contact for any VirtueMart or Joomla development & customisation

DonCorleo

Tnx for your reply

Only sisow_mistercash and sisow_ideal are present in Virtuemart payment systems. No giropay plugin in Joomla either.

jenkinhill

in /home/deb19843/domains/test.domainname.nl/public_html/libraries/sisow/base.php (line 292)

This points to an error with sisow plugin.
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

DonCorleo

Just found out that Sisow has changed to Buckaroo these days. I've e-mailed support. I'll keep you posted.

DonCorleo

#5
The siwos plugin won't be available for PHP 8.2 and Buckaroo doesn't have a plugin vor Virtuemart. I'll search for another payment plugin. Any suggestions?


BTW: I've deleted the Sisow extension and could run the website on PHP8.2
Tnx for pointing me in the right direction