Order errors
-
Hello,
I am getting this errors on my website admin panel orders page, how should I solve this
Notice: Function id was called incorrectly. Order properties should not be accessed directly. Backtrace: require(‘wp-admin/edit-form-advanced.php’), do_meta_boxes, WC_Meta_Box_Order_Data::output, do_action(‘woocommerce_admin_order_data_after_order_details’), WP_Hook->do_action, WP_Hook->apply_filters, abpt_custom_checkout_field_display_admin_order_meta, WC_Abstract_Legacy_Order->__get, wc_doing_it_wrong Please see?Debugging in WordPress?for more information. (This message was added in version 3.0.) in?/home/u646909914/domains/domain_name/public_html/wp-includes/functions.php?on line?6031
Notice: Function payment_method was called incorrectly. Order properties should not be accessed directly. Backtrace: require(‘wp-admin/edit-form-advanced.php’), do_meta_boxes, WC_Meta_Box_Order_Data::output, do_action(‘woocommerce_admin_order_data_after_billing_address’), WP_Hook->do_action, WP_Hook->apply_filters, zitengine_paypal_admin_order_data, WC_Abstract_Legacy_Order->__get, wc_doing_it_wrong Please see?Debugging in WordPress?for more information. (This message was added in version 3.0.) in?/home/u646909914/domains/domain_name/public_html/wp-includes/functions.php?on line?6031
-
Hi there @faketempl, thanks for reaching out.
I understand you are getting an error message in your orders page. Before we can proceed with solving the issues, we’d like to understand the cause, do you remember making any changes before the issue started, such as updating or installing plugin(s)?
In the meantime, I’d like to understand your site properly. Please share with us the necessary information below for us to investigate the issue further:
System Status Report, which you can find via WooCommerce > Status > Get system report > Copy for support.
Fatal error logs (if any) under WooCommerce > Status > Logs.
You could copy and paste your reply here or paste it via https://gist.github.com/ and send the link here.Once we have more information, we’ll be able to assist you further.
this is error caused by another payment plugin Paypal Manual Payment Gateway
here are the logs
2024-02-05T07:33:15+00:00 CRITICAL Uncaught Error: Call to undefined function wc_get_payment_gateway_by_id() in /home/u646909914/domains/intempl.cc/public_html/wp-content/plugins/manual-payment-gateway-paypal/paypal.php:166 Stack trace: #0 /home/u646909914/domains/intempl.cc/public_html/wp-content/plugins/woocommerce/includes/class-wc-checkout.php(1058): zitengine_paypal->process_payment() #1 /home/u646909914/domains/intempl.cc/public_html/wp-content/plugins/woocommerce/includes/class-wc-checkout.php(1287): WC_Checkout->process_order_payment() #2 /home/u646909914/domains/intempl.cc/public_html/wp-content/plugins/woocommerce/includes/class-wc-ajax.php(508): WC_Checkout->process_checkout() #3 /home/u646909914/domains/intempl.cc/public_html/wp-includes/class-wp-hook.php(324): WC_AJAX::checkout() #4 /home/u646909914/domains/intempl.cc/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() #5 /home/u646909914/domains/intempl.cc/public_html/wp-includes/plugin.php(517): WP_Hook->do_action() #6 /home/u646909914/domains/intempl.cc/public_html/wp-content/plugins/woocommerce/includes/class-wc-ajax.php(96): do_action() #7 /home/u646909914/domains/intempl.cc/public_html/wp-includes/class-wp-hook.php(324): WC_AJAX::do_wc_ajax() #8 /home/u646909914/domains/intempl.cc/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() #9 /home/u646909914/domains/intempl.cc/public_html/wp-includes/plugin.php(517): WP_Hook->do_action() #10 /home/u646909914/domains/intempl.cc/public_html/wp-includes/template-loader.php(13): do_action() #11 /home/u646909914/domains/intempl.cc/public_html/wp-blog-header.php(19): require_once(‘/home/u64690991…’) #12 /home/u646909914/domains/intempl.cc/public_html/index.php(17): require(‘/home/u64690991…’) #13 {main} thrown in /home/u646909914/domains/intempl.cc/public_html/wp-content/plugins/manual-payment-gateway-paypal/paypal.php on line 166
and here is the system status
` WordPress Environment WordPress address (URL): https://intempl.cc<br>Site address (URL): https://intempl.cc<br>WC Version: 8.5.2<br>REST API Version: ? 8.5.2<br>WC Blocks Version: ? 11.8.0-dev<br>Action Scheduler Version: ? 3.7.1<br>Log Directory Writable: ?<br>WP Version: 6.4.3<br>WP Multisite: –<br>WP Memory Limit: 512 MB<br>WP Debug Mode: ?<br>WP Cron: ?<br>Language: en_US<br>External object cache: ? Server Environment Server Info: LiteSpeed<br>PHP Version: 8.1.18<br>PHP Post Max Size: 256 MB<br>PHP Time Limit: 300<br>PHP Max Input Vars: 5000<br>cURL Version: 7.87.0<br>OpenSSL/1.1.1p SUHOSIN Installed: –<br>MySQL Version: 10.5.19-MariaDB-cll-lve<br>Max Upload Size: 256 MB<br>Default Timezone is UTC: ?<br>fsockopen/cURL: ?<br>SoapClient: ?<br>DOMDocument: ?<br>GZip: ?<br>Multibyte String: ?<br>Remote Post: ?<br>Remote Get: ? Database WC Database Version: 8.5.2<br>WC Database Prefix: wp_<br>Total Database Size: 482.47MB<br>Database Data Size: 430.06MB<br>Database Index Size: 52.41MB<br>wp_woocommerce_sessions: Data: 293.34MB + Index: 10.05MB + Engine InnoDB<br>wp_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>wp_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wp_woocommerce_downloadable_product_permissions: Data: 0.09MB + Index: 0.14MB + Engine InnoDB<br>wp_woocommerce_order_items: Data: 0.09MB + Index: 0.02MB + Engine InnoDB<br>wp_woocommerce_order_itemmeta: Data: 0.34MB + Index: 0.36MB + Engine InnoDB<br>wp_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB<br>wp_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>wp_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>wp_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wp_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>wp_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wp_actionscheduler_actions: Data: 0.48MB + Index: 0.42MB + Engine InnoDB<br>wp_actionscheduler_claims: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wp_actionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wp_actionscheduler_logs: Data: 0.38MB + Index: 0.25MB + Engine InnoDB<br>wp_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>wp_comments: Data: 0.11MB + Index: 0.09MB + Engine InnoDB<br>wp_gla_attribute_mapping_rules: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_gla_budget_recommendations: Data: 0.22MB + Index: 0.14MB + Engine InnoDB<br>wp_gla_merchant_issues: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_gla_shipping_rates: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>wp_gla_shipping_times: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wp_jetpack_sync_queue: Data: 0.03MB + Index: 0.06MB + Engine InnoDB<br>wp_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wp_litespeed_url: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>wp_litespeed_url_file: Data: 0.02MB + Index: 0.08MB + Engine InnoDB<br>wp_mailpoet_automations: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_mailpoet_automation_runs: Data: 0.02MB + Index: 0.08MB + Engine InnoDB<br>wp_mailpoet_automation_run_logs: Data: 0.02MB + Index: 0.05MB + Engine InnoDB<br>wp_mailpoet_automation_run_subjects: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>wp_mailpoet_automation_triggers: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_mailpoet_automation_versions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wp_mailpoet_custom_fields: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wp_mailpoet_dynamic_segment_filters: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wp_mailpoet_feature_flags: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wp_mailpoet_forms: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_mailpoet_log: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_mailpoet_migrations: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wp_mailpoet_newsletters: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>wp_mailpoet_newsletter_links: Data: 0.02MB + Index: 0.05MB + Engine InnoDB<br>wp_mailpoet_newsletter_option: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wp_mailpoet_newsletter_option_fields: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wp_mailpoet_newsletter_posts: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wp_mailpoet_newsletter_segment: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wp_mailpoet_newsletter_templates: Data: 2.52MB + Index: 0.00MB + Engine InnoDB<br>wp_mailpoet_scheduled_tasks: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>wp_mailpoet_scheduled_task_subscribers: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wp_mailpoet_segments: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>wp_mailpoet_sending_queues: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>wp_mailpoet_settings: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wp_mailpoet_statistics_bounces: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_mailpoet_statistics_clicks: Data: 0.02MB + Index: 0.05MB + Engine InnoDB<br>wp_mailpoet_statistics_forms: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wp_mailpoet_statistics_newsletters: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>wp_mailpoet_statistics_opens: Data: 0.02MB + Index: 0.08MB + Engine InnoDB<br>wp_mailpoet_statistics_unsubscribes: Data: 0.02MB + Index: 0.05MB + Engine InnoDB<br>wp_mailpoet_statistics_woocommerce_purchases: Data: 0.02MB + Index: 0.06MB + Engine InnoDB<br>wp_mailpoet_stats_notifications: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>wp_mailpoet_subscribers: Data: 0.02MB + Index: 0.23MB + Engine InnoDB<br>wp_mailpoet_subscriber_custom_field: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wp_mailpoet_subscriber_ips: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wp_mailpoet_subscriber_segment: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>wp_mailpoet_subscriber_tag: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>wp_mailpoet_tags: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wp_mailpoet_user_agents: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wp_mailpoet_user_flags: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wp_options: Data: 10.38MB + Index: 2.34MB + Engine InnoDB<br>wp_postmeta: Data: 55.59MB + Index: 21.06MB + Engine InnoDB<br>wp_posts: Data: 51.56MB + Index: 8.06MB + Engine InnoDB<br>wp_termmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>wp_terms: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>wp_term_relationships: Data: 0.50MB + Index: 0.28MB + Engine InnoDB<br>wp_term_taxonomy: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>wp_usermeta: Data: 0.38MB + Index: 0.28MB + Engine InnoDB<br>wp_users: Data: 0.05MB + Index: 0.05MB + Engine InnoDB<br>wp_wc_admin_notes: Data: 0.08MB + Index: 0.00MB + Engine InnoDB<br>wp_wc_admin_note_actions: Data: 0.06MB + Index: 0.02MB + Engine InnoDB<br>wp_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_wc_customer_lookup: Data: 0.05MB + Index: 0.03MB + Engine InnoDB<br>wp_wc_download_log: Data: 0.06MB + Index: 0.03MB + Engine InnoDB<br>wp_wc_orders: Data: 0.02MB + Index: 0.11MB + Engine InnoDB<br>wp_wc_orders_meta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>wp_wc_order_addresses: Data: 0.02MB + Index: 0.06MB + Engine InnoDB<br>wp_wc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>wp_wc_order_operational_data: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>wp_wc_order_product_lookup: Data: 0.09MB + Index: 0.06MB + Engine InnoDB<br>wp_wc_order_stats: Data: 0.06MB + Index: 0.05MB + Engine InnoDB<br>wp_wc_order_tax_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>wp_wc_product_attributes_lookup: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wp_wc_product_download_directories: Data: 0.52MB + Index: 0.41MB + Engine InnoDB<br>wp_wc_product_meta_lookup: Data: 2.52MB + Index: 3.34MB + Engine InnoDB<br>wp_wc_rate_limits: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wp_wc_reserved_stock: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wp_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wp_wpforms_payments: Data: 0.02MB + Index: 0.14MB + Engine InnoDB<br>wp_wpforms_payment_meta: Data: 0.02MB + Index: 0.05MB + Engine InnoDB<br>wp_wpforms_tasks_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_wt_iew_action_history: Data: 0.41MB + Index: 0.00MB + Engine InnoDB<br>wp_wt_iew_mapping_template: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_yith_wcwl: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wp_yith_wcwl_lists: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>wp_yoast_indexable: Data: 7.52MB + Index: 1.36MB + Engine InnoDB<br>wp_yoast_indexable_hierarchy: Data: 0.30MB + Index: 0.36MB + Engine InnoDB<br>wp_yoast_migrations: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wp_yoast_primary_term: Data: 0.41MB + Index: 0.38MB + Engine InnoDB<br>wp_yoast_seo_links: Data: 0.30MB + Index: 0.30MB + Engine InnoDB Post Type Counts attachment: 22856<br>custom_css: 1<br>customize_changeset: 2<br>mailpoet_page: 1<br>mc4wp-form: 1<br>nav_menu_item: 52<br>page: 6<br>portfolio: 9<br>post: 18<br>product: 6060<br>product_variation: 6<br>revision: 1414<br>shop_order: 363<br>woocg-post: 1<br>wp_global_styles: 1 Security Secure connection (HTTPS): ?<br>Hide errors from visitors: ?Error messages should not be shown to visitors. Active Plugins (18) Advance Bank Payment Transfer Gateway: by Ramesh Kumar – 6.4<br>All 404 Redirect to Homepage: by wp-buy – 4.3<br>Coinbase Commerce: by Coinbase Commerce – 1.3<br>Custom Payment Gateways for WooCommerce: by Imaginate Solutions – 1.8.1<br>Instant Indexing: by Rank Math – 1.1.17<br>Jetpack: by Automattic – 13.0<br>JivoChat: by JivoChat – 1.3.6.1<br>LiteSpeed Cache: by LiteSpeed Technologies – 6.0.0.1<br>Paypal Manual Payment Gateway: by Md Zahedul Hoque – 1.1<br>Product Import Export for WooCommerce: by WebToffee – 2.4.0<br>Woo Custom Gateway: by Richard Muvirimi – 1.6.1<br>WP Sheet Editor - WooCommerce Products (Premium): by WP Sheet Editor – 1.8.6<br>WooCommerce Random Product Sorting with Pagination: by William Crowley – 0.9.2<br>Extra Product Sorting Options for WooCommerce: by SkyVerge – 2.10.0<br>WooCommerce Custom Payment Gateway: by WPRuby – 1.3.9<br>WooCommerce: by Automattic – 8.5.2<br>Yoast SEO: by Team Yoast – 21.9.1<br>Skrill Manual Payment Gateway: by Md Zahedul Hoque – 1.1 Inactive Plugins (1) NOWPayments for WooCommerce: by CoderPress – 1.1 Dropin Plugins (1) object-cache.php: object-cache.php Must Use Plugins (1) Affiliate Plugin: by – 1.0.1 Settings API Enabled: –<br>Force SSL: –<br>Currency: USD ($)<br>Currency Position: left<br>Thousand Separator: ,<br>Decimal Separator: .<br>Number of Decimals: 2<br>Taxonomies: Product Types: external (external)<br>grouped (grouped)<br>simple (simple)<br>variable (variable) Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog)<br>exclude-from-search (exclude-from-search)<br>featured (featured)<br>outofstock (outofstock)<br>rated-1 (rated-1)<br>rated-2 (rated-2)<br>rated-3 (rated-3)<br>rated-4 (rated-4)<br>rated-5 (rated-5) Connected to Woo.com: –<br>Enforce Approved Product Download Directories: ?<br>HPOS feature screen enabled: –<br>HPOS feature enabled: –<br>Order datastore: WC_Order_Data_Store_CPT<br>HPOS data sync enabled: – WC Pages Shop base: #5 - /<br>Cart: #6 - /cart/<br>Checkout: #7 - /checkout/<br>My account: #8 - /my-account/<br>Terms and conditions: ? Page not set Theme Name: Astra<br>Version: 4.1.6 (update to version 4.6.4 is available)<br>Author URL: https://wpastra.com/about/?utm_source=theme_preview&utm_medium=author_link&utm_campaign=astra_theme<br>Child Theme: ? – If you are modifying WooCommerce on a parent theme that you did not build personally we recommend using a child theme. See: How to create a child theme<br>WooCommerce Support: ? Templates Overrides: astra/woocommerce/emails/admin-new-order.php Admin Enabled Features: activity-panels<br>analytics<br>product-block-editor<br>coupons<br>core-profiler<br>customer-effort-score-tracks<br>import-products-task<br>experimental-fashion-sample-products<br>shipping-smart-defaults<br>shipping-setting-tour<br>homescreen<br>marketing<br>mobile-app-banner<br>navigation<br>onboarding<br>onboarding-tasks<br>product-variation-management<br>product-virtual-downloadable<br>product-external-affiliate<br>product-grouped<br>remote-inbox-notifications<br>remote-free-extensions<br>payment-gateway-suggestions<br>shipping-label-banner<br>subscriptions<br>store-alerts<br>transient-notices<br>woo-mobile-welcome<br>wc-pay-promotion<br>wc-pay-welcome-page Disabled Features: customize-store<br>minified-js<br>new-product-management-experience<br>product-linked<br>settings<br>async-product-editor-category-field Daily Cron: ? Next scheduled: 2024-02-05 15:49:03 +00:00<br>Options: ?<br>Notes: 93<br>Onboarding: completed Action Scheduler Complete: 286<br>Oldest: 2024-01-05 13:51:04 +0000<br>Newest: 2024-02-05 08:50:40 +0000 Failed: 818<br>Oldest: 2023-07-01 12:18:04 +0100<br>Newest: 2024-02-05 08:51:53 +0000 Pending: 2<br>Oldest: 2024-02-05 11:34:54 +0000<br>Newest: 2024-02-05 11:34:54 +0000 Status report information Generated at: 2024-02-05 08:57:17 +00:00<br>`
Hey there ??
Thanks for sharing that!
The errors you’re encountering on the WooCommerce → Orders page indicate that there are incorrect function calls related to accessing order properties directly.
These notices are typically caused by outdated or incompatible code in your WordPress theme or plugins, particularly those related to WooCommerce.
Can you please make sure that all plugins and themes on the site are all updated to their latest version.
Also, if any custom code snippets have been added to the theme’s
functions.php
file or elsewhere, please review them for any incorrect function calls related to order properties.As for the recent error log you shared, it seems the Paypal Manual Payment Gateway plugin is causing some errors. To check if this is the cause of the main issue at hand, can you see if temporarily deactivating the Paypal Manual Payment Gateway plugin resolves the issue?
If this makes no difference, I’d suggest performing a full conflict test at this point to rule out any theme/plugin conflicts causing the error. You can do this by following the steps outlined in the support guide below:
To prevent testing on your live site, you can use the free?Health Check?plugin which will allow you to deactivate plugins and switch themes while you’re still logged in, without affecting normal visitors to your site.
Cheers!
Howdy ??
We haven’t heard back from you in a while, so I’m going to mark this as resolved – we’ll be here if you need any further help with this.
Cheers!
- The topic ‘Order errors’ is closed to new replies.