VirtueMart Forum

VirtueMart 2 + 3 + 4 => Installation, Migration & Upgrade => Topic started by: DonCorleo on November 09, 2023, 07:55:40 AM

Title: Error updating to PHP 8.2
Post by: DonCorleo on November 09, 2023, 07:55:40 AM
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))
Title: Re: Error updating to PHP 8.2
Post by: GJC Web Design on November 09, 2023, 10:50:29 AM
3rd party payment plugin named something like giropay ?
Title: Re: Error updating to PHP 8.2
Post by: DonCorleo on November 09, 2023, 11:23:31 AM
Tnx for your reply

Only sisow_mistercash and sisow_ideal are present in Virtuemart payment systems. No giropay plugin in Joomla either.
Title: Re: Error updating to PHP 8.2
Post by: jenkinhill on November 09, 2023, 12:47:02 PM
in /home/deb19843/domains/test.domainname.nl/public_html/libraries/sisow/base.php (line 292)

This points to an error with sisow plugin.
Title: Re: Error updating to PHP 8.2
Post by: DonCorleo on November 09, 2023, 13:34:41 PM
Just found out that Sisow has changed to Buckaroo these days. I've e-mailed support. I'll keep you posted.
Title: Re: Error updating to PHP 8.2
Post by: DonCorleo on November 10, 2023, 07:27:02 AM
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