1. Typhoon365
  2. RO CSVI
  3. Thursday, 02 November 2023
  4.  Subscribe via email
Hi,

Just upgraded to 8.9.1 for both RO CSVI and RO CSVI - Virtuemart and now getting a 500 Internal Server Error on some of our export templates.

Below is the error shown after changing Virtument error reporting to Development:

Fatal error: Declaration of CsviVmPrices::getInstance(int $vendorId = 1, int $countryId = 0, int $stateId = 0) must be compatible with calculationHelper::getInstance($vendorId = 1, $countryId = 0, $stateId = 0) in /home/loltoysc/public_html/plugins/csviaddon/virtuemart/com_virtuemart/helper/com_virtuemart_calculation.php on line 39

Software Version
RO CSVI - 8.9.1
RO CSVI Virtuemart - 8.9.1
VIrtuemart - 4.0.12
PHP - 8.0.30
Accepted Answer
Accepted Answer Pending Moderation
Hello,

The error happens because you are running an older version of VirtueMart. VirtueMart changed the signature of this function so we followed suit. Here is the dilemma, if we were to change the signature it would work on your installation now, would you update VirtueMart you will get this same error again because the signature mismatches. All this is because you are on PHP 8.

So basically you have a new PHP version and an old VirtueMart what is the root cause of this issue. There are few options you can choose from:

  • Downgrade to RO CSVI 8.8.0
  • Downgrade to PHP 7.4
  • Update VirtueMart to the 4.2 release
Let me know if you have any further questions.
Kind regards,

RolandD

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
  1. more than a month ago
  2. RO CSVI
  3. # Permalink
Sorry, the discussion is currently locked. You will not be able to post a reply or a comment at the moment.