Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught TypeError: Cannot access offset of type string on string #2602

Open
2 tasks
rawdreeg opened this issue Aug 3, 2023 · 0 comments
Open
2 tasks

Uncaught TypeError: Cannot access offset of type string on string #2602

rawdreeg opened this issue Aug 3, 2023 · 0 comments

Comments

@rawdreeg
Copy link
Contributor

rawdreeg commented Aug 3, 2023

🔎 Isolate the bug

We received a few reports of cases where the facebook_config value is wrong. This issue is to investigate this and figure out where the erroneous value is getting set.

  • I have confirmed this occurs in the most recent version of WordPress, WooCommerce, and Facebook for WooCommerce.
  • I have confirmed this occurs when only WooCommerce and Facebook for WooCommerce are active and when using a default WordPress or WooCommerce theme.

✍️ Describe the bug

TBD

🚶‍♀️ Steps to reproduce

TDB

🗃 Logs

2023-07-26T13:23:59+00:00 CRITICAL Uncaught TypeError: Cannot access offset of type string on string in /home/www/web4-testserver/technology/wp-content/plugins/facebook-for-woocommerce/facebook-commerce-pixel-event.php:573 Stack trace: #0 /home/www/web4-testserver/technology/wp-content/plugins/facebook-for-woocommerce/facebook-commerce.php(409): WC_Facebookcommerce_Pixel::set_use_pii_key(true) #1 /home/www/web4-testserver/technology/wp-content/plugins/facebook-for-woocommerce/facebook-commerce.php(232): WC_Facebookcommerce_Integration->init_pixel() #2 /home/www/web4-testserver/technology/wp-content/plugins/facebook-for-woocommerce/class-wc-facebookcommerce.php(603): WC_Facebookcommerce_Integration->__construct(Object(WC_Facebookcommerce)) #3 /home/www/web4-testserver/technology/wp-includes/class-wp-hook.php(308): WC_Facebookcommerce->get_integration('') #4 /home/www/web4-testserver/technology/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array) #5 /home/www/web4-testserver/technology/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #6 /home/www/web4-testserver/technology/wp-settings.php(623): do_action('init') #7 /home/www/web4-testserver/technology/wp-config.php(88): require_once('/home/www/web4-...') #8 /home/www/web4-testserver/technology/wp-load.php(50): require_once('/home/www/web4-...') #9 /home/www/web4-testserver/technology/wp-admin/admin.php(34): require_once('/home/www/web4-...') #10 {main} thrown in /home/www/web4-testserver/technology/wp-content/plugins/facebook-for-woocommerce/facebook-commerce-pixel-event.php on line 573
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
1 participant