omarcp
Forum Replies Created
-
El plugin woocommerce-mercadopago está produciendo un fatal error en PHP 8+ al intentar acceder a una propiedad tipada que no ha sido inicializada.
Error completo registrado en
debug.log:PHP Fatal error: Uncaught Error: Typed property MercadoPago\Woocommerce\Gateways\AbstractGateway::$countryConfigs must not be accessed before initialization in /wp-content/plugins/woocommerce-mercadopago/src/Gateways/AbstractGateway.php:390Stack trace muestra que el error se dispara durante:
registerCheckoutScripts()payment_scripts()BasicGateway->__construct()- Ejecución del funnel (
Funnel->create())
La causa exacta es esta línea dentro de
AbstractGateway.php:protected array $countryConfigs;En PHP 8.0–8.3, una propiedad con “typed property” sin valor inicial provoca un fatal error si es accedida antes de recibir asignación explícita.
Más adelante, el plugin trata a
$countryConfigscomo un array:$this->countryConfigs[$country]Pero como nunca fue inicializada, PHP detiene la ejecución.
Este problema no existía en PHP 7, pero rompe en PHP 8+. 📌 Solución aplicada
El error se resuelve inicializando la propiedad para cumplir con las reglas de typed properties:
Antes:
protected array $countryConfigs;Después (solución):
protected array $countryConfigs = [];Esto evita el fatal error y permite que el plugin cargue correctamente en PHP 8+.
Ejecute esa consulta para eliminar la cuenta previa ya que cambie de cuenta de mercado apgo pero ahora da error critico en la web, ya borre el plugin e instale uno desde cero y sigue dando error critico debido a que ejecute la consulte que me preoporcionaron
Hi i just updated the plugin and updated the script and that error is gone. but know i get an error 100 when sync..
i think its because i have more than 100 products but im testing.
it doesnt sync at least 100? for tesitng? if this works i will consider buying pro version.Forum: Plugins
In reply to: [Wayra - Click to Order or Chat] Shortcodeshello, i need the same, did you found the shortcodes?
Hello @fizanzvai
This is a video i recorded, it just dont let select the variation, when i click on the variation color it do nothig.
We need to find a way to stop earning points when a coupon is being used.
It looks like the plugin don’t allow to avoid to earn points if the customer use a coupon as Salvatore Strano (@salvostrano) said.
Is there a code snippet to make yith points do not earn point if any coupon is used?
there is not such option there, it is supposed to be the one that says “on sale”?
Can you tell me where is that option?
Forum: Plugins
In reply to: [Woo Manage Fraud Orders] disable payment optionsYes that is exactly my point.
would be great for us because we blacklist them at the third attempt so, there is some real customers that just got their info wrong and we have to whitelist them manually again
but that way we make it safer as they can only pay via bank transfer or deposit, not credit card
hello, i would like to exclude those generated coupons from discounted products, i can achieve that creating a coupon manually but not the ones from cart abandonmen
Forum: Plugins
In reply to: [WP Eventbrite Embedded Checkout] Not showing in a pop up using elementorYes please, i will wait for next version.
I have tryed embeding in a normal page with a diferent Event ID and it works but with mine it does not, the only diferent feature i find inside the event is the seat reservation map.
I hope you could try it yourself with my event id 61332308586
thanks for your attention.
Forum: Plugins
In reply to: [WP Eventbrite Embedded Checkout] Not showing in a pop up using elementorThank you for your fast reply,
The popup works when using a button that opens the checkout modal over your content.
It is not working when i chose “Embedded on the page with your content”
What im trying to do is a button in my site and when you click on it it open the checkout inside my site. for that im using elementor popup or offcanvas content.
I want to embedd it on my content, thats why i think it is not working with mine because it works really nice in your demo. this is my event ID: 61332308586
Forum: Plugins
In reply to: [WP Eventbrite Embedded Checkout] Not showing in a pop up using elementorHello!
I just opened a new popup template from elementor, added shortcode widget and copy and paste [wp-eventbrite-checkout]
It could affect that the event have seat reservation?
thanks fot your help
Hello, yes I’m using role based prices by yith but also I found that the native sale prices from woocomerce are not showing up when loading with the this plugin