Salut,
Am ?ncercat actualizarea modulului pe o instan?? local? ?i am primit eroarea fatal?:
PHP Fatal error: Uncaught TypeError: X\Inc\Woo_Checkout::alter_payment_gateways(): Argument #1 ($available_gateways) must be of type array, string given, called in /wp-includes/class-wp-hook.php on line 324 and defined in /wp-content/themes/x/inc/class-woo-checkout.php:206
?n tema site-ului (la loca?ia /wp-content/themes/x/inc/class-woo-checkout.php:206
) folosesc un filtru pentru hook-ul woocommerce_available_payment_gateways
cu un callback care are tipuri declarate PHP introduse ?ncepand cu versiunea 7.1.0. Declara?ia acestui callback arat? a?a: function alter_payment_gateways( array $available_gateways ): array
. Ei bine, acest lucru rezult? ?n eroarea de mai sus.
M-am uitat prin modulul Netopia ?i am g?sit folosit acest hook ?i acolo. Din p?cate este folosit gre?it ?i la un moment dat returneaz? un ?ir de caractere gol ?n aceast? loca?ie:wp-content/plugins/netopia-payments-payment-gateway/oney/oney-add-on-netopia.php:555
V? las aici documenta?ia oficial? a respectivului hook. Ar trebui ca valorile returnate de callback-urile puse pe el s? returneze strict vectori, nu altceva.
Mul?umesc,
Vlad Ilie
V? salut,
Am observat c? modulul prime?te actualiz?ri, dar versiunea lui nu este incrementat? (aproape) niciodat?. Nu ?tiu cum v? a?tepta?i ca cei care-l folosesc s? ?l actualizeze – iese din discu?ie accesarea paginii oficiale din WordPress, desc?rcarea lui ?i ?nc?rcarea pe site din moment ce este pus la punct un ?ntreg sistem de automatizare ?n acest sens.
V? rog s? v? documenta?i cu privire la dezvoltarea modulelor pentru WordPress ?i s? respecta?i pe cat se poate procesele, nu sunt nici pe departe imposibil de aplicat.
De asemenea, vreau s? v? rog s? configura?i corect modulul pentru a putea fi tradus. Mi-ar pl?cea s? fie accesibil clien?ilor mei ?i din acest punct de vedere.
?i un ultim lucru, dac? este posibil ?i nu cer prea mult, ?n modul de test, dup? ce o comand? a fost pl?tit? cu succes, starea comenzii nu se actualizeaz? automat ?ntr-una dintre cele alese de mine ?n set?rile modulului, r?mane tot ?Plat? ?n a?teptare” (mi-a? dori s? v? pot spune care este versiunea modulului cu care se ?ntampl? asta).
Cred c? cererile de mai sus sunt de bun sim? ?i poate v? ajut? ?n a ca?tiga mai mult respectul clien?ilor.
V? mul?umesc ?i a?tept cu interes un r?spuns,
Vlad Ilie
Activating the “Credit card with Oney” payment option conflicts with product related PHP based custom blocks in the admin.
I have a CPT named “Diets” and a PHP based custom block that allows editors to add product previews in the Gutenberg editor for the diets (and other CPTs).
If the “Credit card with Oney” option is selected in the Netopia plugin, the admin pages containing the product preview block will no longer work, throwing the following error:
Fatal error: Uncaught Error: Call to a member function get_cart_total() on null in /home/stage/public_html/wp-content/plugins/netopia-payments-payment-gateway/oney/oney-add-on-netopia.php:195 Stack trace: #0 /home/stage/public_html/wp-includes/class-wp-hook.php(324): oneynetopia_single_product_page() #1 /home/stage/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() #2 /home/stage/public_html/wp-includes/plugin.php(517): WP_Hook->do_action() #3 /home/stage/public_html/wp-content/themes/kindora-v2_child/woocommerce/single-product/add-to-cart/simple.php(67): do_action() #4 /home/stage/public_html/wp-content/plugins/woocommerce/includes/wc-core-functions.php(345): include(‘…’) #5 /home/stage/public_html/wp-content/plugins/woocommerce/includes/wc-template-functions.php(1729): wc_get_template() #6 /home/stage/public_html/wp-includes/class-wp-hook.php(324): woocommerce_simple_add_to_cart() #7 /home/stage/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() #8 /home/stage/public_html/wp-includes/plugin.php(517): WP_Hook->do_action() #9 /home/stage/public_html/wp-content/plugins/woocommerce/includes/wc-template-functions.php(1720): do_action() #10 /home/stage/public_html/wp-content/themes/kindora-v2_child/template-parts/woocommerce/quick-view-product-card.php(75): woocommerce_template_single_add_to_cart() #11 /home/stage/public_html/wp-includes/template.php(812): require(‘…’) #12 /home/stage/public_html/wp-includes/template.php(745): load_template() #13 /home/stage/public_html/wp-includes/general-template.php(206): locate_template() #14 /home/stage/public_html/wp-content/themes/kindora-v2_child/template-parts/blocks/product-card.php(45): get_template_part() #15 /home/stage/public_html/wp-includes/template.php(812): require(‘…’) #16 /home/stage/public_html/wp-includes/template.php(745): load_template() #17 /home/stage/public_html/wp-includes/general-template.php(206): locate_template() #18 /home/stage/public_html/wp-content/themes/kindora-v2_child/blocks/main-diet/block.php(67): get_template_part() #19 /home/stage/public_html/wp-content/plugins/advanced-custom-fields-pro/pro/blocks.php(738): include(‘…’) #20 /home/stage/public_html/wp-includes/class-wp-hook.php(324): acf_block_render_template() #21 /home/stage/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() #22 /home/stage/public_html/wp-includes/plugin.php(517): WP_Hook->do_action() #23 /home/stage/public_html/wp-content/plugins/advanced-custom-fields-pro/pro/blocks.php(712): do_action() #24 /home/stage/public_html/wp-content/plugins/advanced-custom-fields-pro/pro/blocks.php(610): acf_render_block() #25 /home/stage/public_html/wp-content/plugins/advanced-custom-fields-pro/pro/blocks.php(533): acf_rendered_block() #26 /home/stage/public_html/wp-includes/class-wp-block.php(519): acf_render_block_callback() #27 /home/stage/public_html/wp-includes/blocks.php(2061): WP_Block->render() #28 /home/stage/public_html/wp-includes/blocks.php(2113): render_block() #29 /home/stage/public_html/wp-includes/class-wp-hook.php(324): do_blocks() #30 /home/stage/public_html/wp-includes/plugin.php(205): WP_Hook->apply_filters() #31 /home/stage/public_html/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php(1871): apply_filters() #32 /home/stage/public_html/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php(575): WP_REST_Posts_Controller->prepare_item_for_response() #33 /home/stage/public_html/wp-includes/rest-api/class-wp-rest-server.php(1230): WP_REST_Posts_Controller->get_item() #34 /home/stage/public_html/wp-includes/rest-api/class-wp-rest-server.php(1063): WP_REST_Server->respond_to_request() #35 /home/stage/public_html/wp-includes/rest-api.php(547): WP_REST_Server->dispatch() #36 /home/stage/public_html/wp-includes/rest-api.php(2925): rest_do_request() #37 [internal function]: rest_preload_api_request() #38 /home/stage/public_html/wp-includes/block-editor.php(753): array_reduce() #39 /home/stage/public_html/wp-admin/edit-form-blocks.php(80): block_editor_rest_api_preload() #40 /home/stage/public_html/wp-admin/post.php(187): require(‘…’) #41 {main} thrown in /home/stage/public_html/wp-content/plugins/netopia-payments-payment-gateway/oney/oney-add-on-netopia.php on line 195
Bun? ziua,
Clientul meu folose?te acest modul pentru pl??i online ?i am identificat urm?toarea not? ?n fi?ierul de raportare de erori:
[06-Oct-2024 14:04:59 UTC] PHP Deprecated: Implicit conversion from float 507264.00000000006 to int loses precision in /wp-content/plugins/netopia-payments-payment-gateway/wc-netopiapayments-gateway.php on line 328
V? rog, se poate rezolva?
Mul?umesc mult,
Vlad Ilie
Hi,
You have an error in the latest version of the plugin. If you go to order management and click on any order, the Payment via [payment method] is empty [under title]. It happens with any payment method after activating netopia plugin.
In wp-content/plugins/netopia-payments-payment-gateway/oney/oney-add-on-netopia.php. you have
// Hook into the WooCommerce payment method title filter
add_filter(‘woocommerce_gateway_title’, ‘customize_payment_method_title’, 10, 2);
// Function to customize the payment method title
function customize_payment_method_title($title, $payment_method) {
if ( is_admin() ) { return ”; }
….
this makes the title in admin empty for any gateway.
Salutare, cand platesc si face redirect spre woocommerce inapoi adauga un ?orderId=123423 in url. Acest lucru genereaza un whitescreen si o eroare “Order Id was not found” daca elimin din url acest query argument functioneaza.
Cum pot modifica si in plugin.
]]>Getting a fatal error which made our website down.
See the logs:
[22-Jul-2024 12:44:51 UTC] Oney add-on file not found: /home/test/public_html/wp-content/plugins/netopia-payments-payment-gateway/oney/oney-add-on-netopia.php
[22-Jul-2024 12:44:51 UTC] PHP Warning: require_once(/home/test/public_html/wp-content/plugins/netopia-payments-payment-gateway/netopia/Payment/Blocks.php): Failed to open stream: No such file or directory in /home/test/public_html/wp-content/plugins/netopia-payments-payment-gateway/netopiapayments.php on line 74
[22-Jul-2024 12:44:51 UTC] PHP Fatal error: Uncaught Error: Failed opening required ‘/home/test/public_html/wp-content/plugins/netopia-payments-payment-gateway/netopia/Payment/Blocks.php’ (include_path=’.:/opt/cpanel/ea-php82/root/usr/share/pear’) in /home/test/public_html/wp-content/plugins/netopia-payments-payment-gateway/netopiapayments.php:74
Stack trace: 0 /home/test/public_html/wp-includes/class-wp-hook.php(324): woocommerce_gateway_netopia_block_support(”) 1 /home/test/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(”, Array)
Buna ziua,
Dupa adaugarea produsului in cos si finalizarea comenzii, pagina urmatoare nu arata nimic…
in woocommerce, order-ul este inregistrat, cu mentiunea pending payment.
wordpress: 6.4.4
woocommerce: 4.3.6 nu raporteaza erori
php: 7.3
Bogdan Popescu
tel: 0734814941
]]>Salutare,
Avem mai multe comenzi, unde comanda ramane cu statusul de cancelled , chiar daca , la a 2,3 incercare s-a finalizat cu succes. Prima data autentificarea 3D-Secure a esuat.
IN mod normal, dupa ce tranzactia s-a efectuat cu succes, chiar dc am avut mai multe esuari , statusul comenzii ar trb actualizat de la cancelled -> processing. Ceea ce nu se intampla.
Aveti idee ce ?
Avem ultima versiune la plugin si la woocommerce.
Multumesc frumos!
]]>Buna ziua,
Cum putem face ca, comenzile virtuale sa fie finalizate?
Momentan singurul status e in asteptare, ceea ce e ok pt produsele fizicem, dar la produsele electronice ne incurca.
Multumesc
]]>Hello,
We are keep getting this error in the error log and it’s related to accessing the order_key property incorrectly in WordPress/WooCommerce. This error typically occurs when attempting to access order properties directly, which is not the recommended approach.
order_key was called incorrectly. Order properties should not be accessed directly. Backtrace: require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), do_action('template_redirect'), WP_Hook->do_action, WP_Hook->apply_filters, WC_AJAX::do_wc_ajax, do_action('wc_ajax_checkout'), WP_Hook->do_action, WP_Hook->apply_filters, WC_AJAX::checkout, WC_Checkout->process_checkout, WC_Checkout->process_order_payment, SN_WC_MobilPay->process_payment, WC_Abstract_Legacy_Order->__get, wc_doing_it_wrong. This message was added in version 3.0.
Is there a way to help us fix the error?
Thank you.
]]>Our site is down. It displays this error:
This page contains the following errors: error on line 2 at column 1: Extra content at the end of the document
In the errors log file I found these errors:
[14-Jan-2024 10:34:28 UTC] PHP Warning: Undefined array key “env_key” in /home/…./plugins/netopia-payments-payment-gateway/wc-netopiapayments-gateway.php on line 404
[14-Jan-2024 10:34:28 UTC] PHP Warning: Undefined array key “data” in /home/…../plugins/netopia-payments-payment-gateway/wc-netopiapayments-gateway.php on line 405
If I disable the “NETOPIA Payments Woocommerce Payment Gateway” plugin everything comes back to normal.
What is to be done?
]]>
“keep keys on auto update.” Chiar nu face acest lucru. Pe 3 site-uri acelasi lucru. Update de la 1.0 la 1.3 cere cheile din nou.
]]>A fix for the order_key was called incorrectly error message.
order_key was called incorrectly. Order properties should not be accessed directly. Backtrace: require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’), do_action(‘template_redirect’), WP_Hook->do_action, WP_Hook->apply_filters, WC_AJAX::do_wc_ajax, do_action(‘wc_ajax_checkout’), WP_Hook->do_action, WP_Hook->apply_filters, WC_AJAX::checkout, WC_Checkout->process_checkout, WC_Checkout->process_order_payment, netopiapayments->process_payment, WC_Abstract_Legacy_Order->__get, wc_doing_it_wrong. This message was added in version 3.0.
Modify line 211 from: wc-netopiapayments-gateway.php
curent:
$order->order_key,
modified:
$order->get_order_key(),
This seems to fix the issue.
]]>Hello,
After installed and properly configured the plugin, while testing it in sandbox, after placing an order and trying to pay for it, the API from the title returns 411 Length Required.
I can see this message in the error_log:
get_order_key was called incorrectly. Order properties should not be accessed directly. Backtrace: require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), do_action('template_redirect'), WP_Hook->do_action, WP_Hook->apply_filters, WC_AJAX::do_wc_ajax, do_action('wc_ajax_checkout'), WP_Hook->do_action, WP_Hook->apply_filters, WC_AJAX::checkout, WC_Checkout->process_checkout, WC_Checkout->process_order_payment, netopiapayments->process_payment, WC_Abstract_Legacy_Order->__get, wc_doing_it_wrong. This message was added in version 3.0.
I changed order_key to get_order_key as suggested on forum, but it still does not work.
Can you please help me understand what’s going on?
Thank you!
Hello,
Do you have a development stage where I can test the payment done in real-time?
Please can you provide to me more information about the usage of your plugin and the system for managing the payment that are made?
Hi,
I would like to make a feature request. Right now when someone completes the payment the order status is updated to Completed. But this is very confusing, because it wasn’t shipped yet. It should be processing.
I also have other payments method enabled ,like bank transfer and once someone placed a new order, it’s status is updated to processing.
Would you please considerate changing this ?
Thanks
]]>Netopia offers recurrent payments as well.
Is your plugin able to deal with such payments?
Hello,
At this moment any customer who orders and pays with the order card automatically goes to the “Completed” state, this misleads us.
It would be nice if you could make it possible to set the status of the order.
example:
In processing
Payment by Card
Exhausted command
Order Completed.