Skip to main content

#131 Compile error on site

Posted in ‘Stripe Checkout for VirtueMart’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Environment Information (available for public)

PHP version
8.3.7

Latest post by b2z on Tuesday, 24 September 2024 15:48 EEST

mcfarmer

I have installed the Virtuemart plugin for Stripe, and get error on site. Have debuged and it shows:


Compile Error: Declaration of PlgVmPaymentVmstripeco::plgVmOnSelectedCalculatePricePayment(VirtueMartCart $cart, array &$cartPrices, string &$cartPricesName): ?bool must be compatible with vmPlugin::plgVmOnSelectedCalculatePricePayment(VirtueMartCart $cart, array &$cart_prices, &$cart_prices_name)

b2z

Hi,

Your admin panel is hide behind htpasswd, so we cannot access it. What is you VirtueMart version?

Probably the quick fix will be:

1. Open /plugins/vmpayment/vmstripeco/vmstripeco.php

2. Find line 348:
public function plgVmOnSelectedCalculatePricePayment(VirtueMartCart $cart, array &$cartPrices, string &$cartPricesName): ?bool

3. Change "string &$cartPricesName" to "&$cartPricesName":
public function plgVmOnSelectedCalculatePricePayment(VirtueMartCart $cart, array &$cartPrices, &$cartPricesName): ?bool

Kind regards,

Dmitrijs

b2z

I see that ticket is closed. It seems that you solved your issue with my advice? I am glad, but it does not solve the plugin issue, because we have two test websites with different Virtuemart versions, with PHP 8.3 and 8.2 and do not have such issue as you have. So we need to understand how to fix the problem globally, as when you will update the plugin you again will face the problem.

I reopening your ticket and waiting for your answer on my question about your Virtuemart version. Thank you.

Kind regards,

Dmitrijs

Send a reply

This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

 
Support information

Support hours: You can get our help: Monday - Friday / 09:00 to 17:00 (GMT+3), but not limited. Our staff is pleased to provide Premium support to every paid subscriber asap, but sometimes you should be ready to wait for our reply for up to 3 days.


Our time: / Your time:

Support policy: We would like to kindly inform you that when using our support you have already agreed to the Support Policy which is part of our Terms of Service. We also ask you to remove temporary credentials at your site after the problem is resolved. Thank you.

Support of free extensions is not provided on this forum. Please submit your questions or report issues via Github tracker. See link on the product page.