Errors in error log
-
Not sure if it needs to be fixed with an update or something that needs to be changed in my system. Please help.
Thanks,
Mike(Received 2x errors below)
Warning: preg_replace(): Compilation failed: invalid range in character class at offset 4 in /home/dh_dvap5v/mc-salesllc.com/wp-content/plugins/woocommerce-gateway-paypal-powered-by-braintree/includes/api/requests/class-wc-braintree-api-transaction-request.php on line 209
stock was called incorrectly. Product 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, WC_Braintree\Plugin_Framework\SV_WC_Payment_Gateway_Direct->process_payment, WC_Order->payment_complete, WC_Order->save, WC_Order->status_transition, do_action(‘woocommerce_order_status_processing’), WP_Hook->do_action, WP_Hook->apply_filters, wc_maybe_reduce_stock_levels, wc_reduce_stock_levels, do_action(‘woocommerce_reduce_order_stock’), WP_Hook->do_action, WP_Hook->apply_filters, OrderWrapper::handle_reduce_order_stock, WC_Abstract_Legacy_Product->__get, wc_doing_it_wrong. This message was added in version 3.0.
-
Hi there @mcsalesllc,
Can you please provide me with more context of this error? Where do you see it and when? Does the gateway work as expected at the same time or payments are failing?
Also, please share a copy of your site’s System Status. You can find it via WooCommerce > Status.
Select “Get system report” and then “Copy for support”.? Once you’ve done that, paste it here in your response.Cheers!
Hello,
I reached out to the folks at GitHub and they said this,
“Your payment gateway is calling product properties directly and not using the getters provided for accessing properties. I suggest you contact the developers of the gateway for support.”This occurs when orders have been processed by my customers. From what I can tell, the payments have not failed yet, but I do not want it to get to that point. I also do not want it messing up my inventory structure by not adjusting accordingly after a sale. I’m not one to go in and revise plugins so I’d much rather not go in and change the coding myself.
System Status:
### WordPress Environment ### WordPress address (URL): https://mc-salesllc.com Site address (URL): https://mc-salesllc.com WC Version: 3.6.3 Log Directory Writable: ? WP Version: 5.2.1 WP Multisite: – WP Memory Limit: 512 MB WP Debug Mode: – WP Cron: ? Language: en_US External object cache: – ### Server Environment ### Server Info: Apache PHP Version: 7.3.0 PHP Post Max Size: 65 MB PHP Time Limit: 6000 PHP Max Input Vars: 1000 cURL Version: 7.35.0 OpenSSL/1.0.1f SUHOSIN Installed: – MySQL Version: 5.6.34-log Max Upload Size: 64 MB Default Timezone is UTC: ? fsockopen/cURL: ? SoapClient: ? DOMDocument: ? GZip: ? Multibyte String: ? Remote Post: ? Remote Get: ? ### Database ### WC Database Version: 3.6.3 WC Database Prefix: wp_ MaxMind GeoIP Database: ? Total Database Size: 487.94MB Database Data Size: 453.14MB Database Index Size: 34.80MB wp_woocommerce_sessions: Data: 29.83MB + Index: 1.01MB wp_woocommerce_api_keys: Data: 0.00MB + Index: 0.01MB wp_woocommerce_attribute_taxonomies: Data: 0.01MB + Index: 0.01MB wp_woocommerce_downloadable_product_permissions: Data: 0.00MB + Index: 0.00MB wp_woocommerce_order_items: Data: 0.24MB + Index: 0.09MB wp_woocommerce_order_itemmeta: Data: 0.96MB + Index: 0.68MB wp_woocommerce_tax_rates: Data: 0.00MB + Index: 0.01MB wp_woocommerce_tax_rate_locations: Data: 0.00MB + Index: 0.00MB wp_woocommerce_shipping_zones: Data: 0.00MB + Index: 0.00MB wp_woocommerce_shipping_zone_locations: Data: 0.00MB + Index: 0.01MB wp_woocommerce_shipping_zone_methods: Data: 0.00MB + Index: 0.00MB wp_woocommerce_payment_tokens: Data: 0.00MB + Index: 0.00MB wp_woocommerce_payment_tokenmeta: Data: 0.00MB + Index: 0.00MB wp_woocommerce_log: Data: 0.00MB + Index: 0.00MB wp_addactionsandfilters_plugin_usercode: Data: 0.00MB + Index: 0.00MB wp_aws_index: Data: 2.00MB + Index: 0.00MB wp_commentmeta: Data: 0.06MB + Index: 0.05MB wp_comments: Data: 1.12MB + Index: 0.41MB wp_contact_bank: Data: 0.02MB + Index: 0.00MB wp_contact_bank_meta: Data: 0.03MB + Index: 0.00MB wp_cpf_customfeeds: Data: 0.02MB + Index: 0.02MB wp_cpf_custom_products: Data: 0.02MB + Index: 0.02MB wp_cpf_feedproducts: Data: 0.02MB + Index: 0.00MB wp_cpf_google_merchant_feed_products: Data: 0.02MB + Index: 0.02MB wp_cpf_resolved_product_data: Data: 0.02MB + Index: 0.00MB wp_cp_feeds: Data: 0.00MB + Index: 0.00MB wp_discount: Data: 0.00MB + Index: 0.00MB wp_ebay_accounts: Data: 0.35MB + Index: 0.00MB wp_ebay_auctions: Data: 70.64MB + Index: 0.58MB wp_ebay_categories: Data: 1.58MB + Index: 1.07MB wp_ebay_jobs: Data: 0.06MB + Index: 0.00MB wp_ebay_log: Data: 0.23MB + Index: 0.01MB wp_ebay_messages: Data: 0.42MB + Index: 0.01MB wp_ebay_orders: Data: 23.68MB + Index: 0.09MB wp_ebay_payment: Data: 0.00MB + Index: 0.00MB wp_ebay_profiles: Data: 0.01MB + Index: 0.00MB wp_ebay_shipping: Data: 0.01MB + Index: 0.00MB wp_ebay_sites: Data: 0.01MB + Index: 0.00MB wp_ebay_store_categories: Data: 0.00MB + Index: 0.00MB wp_ebay_transactions: Data: 30.77MB + Index: 0.17MB wp_google_merchant_cp_feeds: Data: 0.02MB + Index: 0.00MB wp_grp_google_place: Data: 0.00MB + Index: 0.00MB wp_grp_google_review: Data: 0.00MB + Index: 0.00MB wp_links: Data: 0.00MB + Index: 0.00MB wp_litespeed_img_optm: Data: 0.00MB + Index: 0.00MB wp_litespeed_optimizer: Data: 0.00MB + Index: 0.00MB wp_mail_bank: Data: 0.00MB + Index: 0.00MB wp_mail_bank_email_logs: Data: 40.52MB + Index: 0.00MB wp_mail_bank_logs: Data: 72.45MB + Index: 0.08MB wp_mail_bank_meta: Data: 0.00MB + Index: 0.00MB wp_mclean_refs: Data: 0.00MB + Index: 0.00MB wp_mclean_scan: Data: 0.00MB + Index: 0.00MB wp_mg_ebayapiaccounts: Data: 0.00MB + Index: 0.00MB wp_mg_ebayglobal: Data: 0.00MB + Index: 0.00MB wp_mg_ebaystores: Data: 0.00MB + Index: 0.00MB wp_options: Data: 10.64MB + Index: 1.36MB wp_postmeta: Data: 78.30MB + Index: 13.68MB wp_posts: Data: 16.43MB + Index: 3.19MB wp_rw_gplaces_place: Data: 0.00MB + Index: 0.00MB wp_rw_gplaces_review: Data: 0.00MB + Index: 0.00MB wp_termmeta: Data: 0.26MB + Index: 0.25MB wp_terms: Data: 0.29MB + Index: 0.57MB wp_term_relationships: Data: 1.26MB + Index: 2.69MB wp_term_taxonomy: Data: 0.24MB + Index: 0.33MB wp_usermeta: Data: 3.91MB + Index: 2.26MB wp_users: Data: 0.29MB + Index: 0.23MB wp_wcpdf_invoice_number: Data: 0.02MB + Index: 0.01MB wp_wc_download_log: Data: 0.00MB + Index: 0.00MB wp_wc_product_meta_lookup: Data: 1.50MB + Index: 0.89MB wp_wc_webhooks: Data: 0.00MB + Index: 0.00MB wp_wm_get_ebay_fb_table: Data: 0.00MB + Index: 0.01MB wp_woof_query_cache: Data: 0.00MB + Index: 0.00MB wp_wpbackitup_job_control: Data: 0.10MB + Index: 0.00MB wp_wpbackitup_job_items: Data: 64.75MB + Index: 4.98MB wp_wpbackitup_job_tasks: Data: 0.01MB + Index: 0.00MB wp_wpfm_backup: Data: 0.02MB + Index: 0.00MB ### Post Type Counts ### amn_exact-metrics: 1 attachment: 20967 ct_afc: 2 custom_css: 1 customize_changeset: 2 jetpack_migration: 2 nav_menu_item: 14 page: 14 post: 1 product: 4212 product_variation: 73 revision: 229 scheduled-action: 9 shop_coupon: 22 shop_order: 1460 shop_order_refund: 41 wafs: 2 wc_afrsm: 1 wpplugin__sub_log: 1 wpplugin_sub_button: 8 ### Security ### Secure connection (HTTPS): ? Hide errors from visitors: ? ### Active Plugins (23) ### Advanced noCaptcha & invisible Captcha: by Shamim Hasan – 5.4 – Not tested with the active version of WooCommerce AfterShip - WooCommerce Tracking: by AfterShip – 1.9.5 – Not tested with the active version of WooCommerce Child Themify: by John P. Bloch – 2.0.1 Error Log Monitor: by Janis Elsts – 1.6.6 Google Analytics Dashboard for WP (GADWP): by ExactMetrics – 5.3.8 Google XML Sitemaps: by Arne Brachhold – 4.1.0 ExportFeed - Create Product Feeds For 40+ Merchants: by ExportFeed.com – 3.2.2.2 – Not tested with the active version of WooCommerce Sales Pop: by Beeketing – 1.4.14 Search Manager Lite for WooCommerce and WordPress: by Custom4Web – 1.4 – Not tested with the active version of WooCommerce UpdraftPlus - Backup/Restore: by UpdraftPlus.Com DavidAnderson – 1.16.14 UPS WooCommerce Shipping: by PluginHive – 3.10.4 – Not tested with the active version of WooCommerce WooCommerce Advanced Free Shipping: by Jeroen Sormani – 1.1.4 – Not tested with the active version of WooCommerce WooCommerce Extended Coupon Features FREE: by Soft79 – 3.0.5 – Not tested with the active version of WooCommerce WooCommerce PayPal Powered by Braintree Gateway: by WooCommerce – 2.2.4 – Not tested with the active version of WooCommerce Import from eBay to WooCommerce: by WP Lab – 1.7.1 Booster for WooCommerce: by Algoritmika Ltd – 4.3.1 WooCommerce PDF Invoices & Packing Slips: by Ewout Fernhout – 2.2.12 WooCommerce: by Automattic – 3.6.3 WP File Manager: by mndpsingh287 – 4.8 WP-Lister Pro for eBay: by WP Lab – 2.1.0 – Not tested with the active version of WooCommerce WP Mail SMTP Plugin by Mail Bank: by Tech Banker – 4.0.6 WP Rollback: by Impress.org – 1.6 YITH WooCommerce Bulk Product Editing: by YITH – 1.2.11 ### Inactive Plugins (0) ### ### Settings ### API Enabled: ? Force SSL: ? Currency: USD ($) Currency Position: left Thousand Separator: , Decimal Separator: . Number of Decimals: 2 Taxonomies: Product Types: external (external) grouped (grouped) simple (simple) variable (variable) Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog) exclude-from-search (exclude-from-search) featured (featured) outofstock (outofstock) rated-1 (rated-1) rated-2 (rated-2) rated-3 (rated-3) rated-4 (rated-4) rated-5 (rated-5) Connected to WooCommerce.com: – ### WC Pages ### Shop base: #35 - /shop/ Cart: #36 - /cart/ Checkout: #37 - /checkout/ My account: #38 - /my-account/ Terms and conditions: #33 - /terms-of-sale/ ### Theme ### Name: square - child theme Version: 1.0 Author URL: Child Theme: ? Parent Theme Name: Square Parent Theme Version: 1.4.7 Parent Theme Author URL: https://hashthemes.com WooCommerce Support: ? ### Templates ### Overrides: square/woocommerce/single-product-reviews.php version 3.5.0 is out of date. The core version is 3.6.0 Outdated Templates: ? Learn how to update ### Braintree (Credit Card) ### Environment: Production Tokenization Enabled: Debug Mode: Off ### Braintree (PayPal) ### Environment: Production Tokenization Enabled: Debug Mode: Off ### Action Scheduler ### Complete: 8 Oldest: 2019-04-24 14:18:00 +0000 Newest: 2019-05-15 14:19:01 +0000 Pending: 1 Oldest: 2019-05-22 14:19:02 +0000 Newest: 2019-05-22 14:19:02 +0000 Canceled: 0 Oldest: – Newest: – In-progress: 0 Oldest: – Newest: – Failed: 0 Oldest: – Newest: –
Hi there @mcsalesllc,
Thanks for getting back to us with more details!
I reached out to the folks at GitHub and they said this,
“Your payment gateway is calling product properties directly and not using the getters provided for accessing properties. I suggest you contact the developers of the gateway for support.”Could you please elaborate who did you get in touch with? Did you notice that the errors appear only when another plugin is active?
Also, please share a link to a GH report you mentioned.
I also do not want it messing up my inventory structure by not adjusting accordingly after a sale. I’m not one to go in and revise plugins so I’d much rather not go in and change the coding myself.
Can you also tell me more about your inventory problem? Is it not adjusted accordingly when an order is placed with our gateway?
Cheers!
Hi @mcsalesllc,
We haven’t heard back from you in a while, so I’m going to mark this as resolved – if you have any further questions, you can start a new thread.
My original reply was via email. Didn’t know it was a noreply email..
Elvira K wrote:
Hi there @mcsalesllc,
Thanks for getting back to us with more details!
> I reached out to the folks at GitHub and they said this,
“Your payment gateway is calling product properties directly and not using the getters provided for accessing properties. I suggest you contact the developers of the gateway for support.”Can you please elaborate who did you get in touch with? Did you notice that the errors appear only when another plugin is active?
**kloon. / negativeCan you please share a link to a GH report you mentioned?
**https://github.com/woocommerce/woocommerce/issues/23795> I also do not want it messing up my inventory structure by not adjusting accordingly after a sale. I’m not one to go in and revise plugins so I’d much rather not go in and change the coding myself.
Can you also tell me more about your inventory problem? Is it not adjusted accordingly when an order is placed with our gateway?
**As for now it’s working correctly, but if my payment gateway is calling product properties directly and not using the getters provided for accessing properties, that does seem to be a problem down the road if not with this plugin, possibly with others. I dont know what other information I could provide you with that I haven’t already.
Thanks,
MikeCheers!
Hi there @mcsalesllc,
I got another look at the logs with the developers and it looks like the issue is coming not from WooCommerce PayPal Powered by Braintree Payment Gateway, but from whatever plugin is hooked into
woocommerce_reduce_order_stock
and callingOrderWrapper::handle_reduce_order_stock
– the last thing in the stack trace is what you’d want to look at.I’d recommend checking if you have any custom code or plugins which do that – full conflict testing can shed some light on it – for more detailed instructions, check out How to test for plugin and theme conflicts.
Cheers!
Hi @mcsalesllc,
I’ll mark this thread as resolved now. If you have any further questions, I recommend creating a new thread.
- The topic ‘Errors in error log’ is closed to new replies.