PHP 8.1 Error
-
hi, i have exactly same probleme like here:
https://wordpress.org/support/topic/php-8-0-and-woocommerce-2/
there is no solution on this thread?
when enable the coupons, the error disapears. But i have no coupons needed.Regards
-
Hello @jonnybgood,
Thank you for reaching out!
I understand you are facing an issue in your site and once you enable coupons the issue disappears.
So that we can understand the issue, could you please share with us the error message you are getting from your end?
Also, please share with us your System Status Report, as this will help us in further understanding your site set up.
You can find it via
WooCommerce > Status. SelectGet system reportand thenCopy for support. Once you’ve done that, you can paste it into your reply here.Looking forward to your reply.
Error:
Warning: Trying to access array offset on value of type null in /home/httpd/vhosts/hesstaxi.ch/neu.hesstaxi.ch/wp-content/plugins/woocommerce/src/Admin/Features/Navigation/CoreMenu.php on line 246 Warning: Cannot modify header information - headers already sent by (output started at /home/httpd/vhosts/hesstaxi.ch/neu.hesstaxi.ch/wp-content/plugins/woocommerce/src/Admin/Features/Navigation/CoreMenu.php:246) in /home/httpd/vhosts/hesstaxi.ch/neu.hesstaxi.ch/wp-admin/includes/misc.php on line 1431 Warning: Cannot modify header information - headers already sent by (output started at /home/httpd/vhosts/hesstaxi.ch/neu.hesstaxi.ch/wp-content/plugins/woocommerce/src/Admin/Features/Navigation/CoreMenu.php:246) in /home/httpd/vhosts/hesstaxi.ch/neu.hesstaxi.ch/wp-includes/functions.php on line 7049 Warning: Cannot modify header information - headers already sent by (output started at /home/httpd/vhosts/hesstaxi.ch/neu.hesstaxi.ch/wp-content/plugins/woocommerce/src/Admin/Features/Navigation/CoreMenu.php:246) in /home/httpd/vhosts/hesstaxi.ch/neu.hesstaxi.ch/wp-admin/admin-header.php on line 9Status Report:
` ### WordPress Environment ### WordPress address (URL): https://www.hesstaxi.ch Site address (URL): https://www.hesstaxi.ch WC Version: 8.4.0 REST API Version: ✔ 8.4.0 WC Blocks Version: ✔ 11.6.2 Action Scheduler Version: ✔ 3.7.0 Log Directory Writable: ✔ WP Version: 6.4.2 WP Multisite: – WP Memory Limit: 256 MB WP Debug Mode: – WP Cron: ✔ Language: de_DE_formal External object cache: – ### Server Environment ### Server Info: Apache PHP Version: 8.1.25 PHP Post Max Size: 256 MB PHP Time Limit: 60 PHP Max Input Vars: 200000 cURL Version: 8.2.1 NSS/3.79 SUHOSIN Installed: – MySQL Version: 10.6.15-MariaDB Max Upload Size: 256 MB Default Timezone is UTC: ✔ fsockopen/cURL: ✔ SoapClient: ✔ DOMDocument: ✔ GZip: ✔ Multibyte String: ✔ Remote Post: ✔ Remote Get: ✔ ### Database ### WC Database Version: 8.4.0 WC Database Prefix: wp_ Datenbank-Gesamtgröße: 72.06MB Datenbank-Datengröße: 28.44MB Datenbank-Indexgröße: 43.62MB wp_woocommerce_sessions: Daten: 0.03MB + Index: 0.02MB + Engine InnoDB wp_woocommerce_api_keys: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_attribute_taxonomies: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB wp_woocommerce_downloadable_product_permissions: Daten: 0.02MB + Index: 0.06MB + Engine InnoDB wp_woocommerce_order_items: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB wp_woocommerce_order_itemmeta: Daten: 0.16MB + Index: 0.17MB + Engine InnoDB wp_woocommerce_tax_rates: Daten: 0.02MB + Index: 0.06MB + Engine InnoDB wp_woocommerce_tax_rate_locations: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_shipping_zones: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB wp_woocommerce_shipping_zone_locations: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_shipping_zone_methods: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB wp_woocommerce_payment_tokens: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB wp_woocommerce_payment_tokenmeta: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_log: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB bf_activitylog: Daten: 0.02MB + Index: 0.05MB + Engine InnoDB bf_core_hashes: Daten: 0.30MB + Index: 0.33MB + Engine InnoDB bf_files: Daten: 5.48MB + Index: 19.86MB + Engine InnoDB bf_files_last: Daten: 5.48MB + Index: 17.77MB + Engine InnoDB bf_folders: Daten: 0.41MB + Index: 0.78MB + Engine InnoDB bf_folders_to_scan: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB wp_actionscheduler_actions: Daten: 0.20MB + Index: 0.16MB + Engine InnoDB wp_actionscheduler_claims: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB wp_actionscheduler_groups: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB wp_actionscheduler_logs: Daten: 0.14MB + Index: 0.11MB + Engine InnoDB wp_aioseo_cache: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB wp_aioseo_notifications: Daten: 0.02MB + Index: 0.06MB + Engine InnoDB wp_aioseo_posts: Daten: 0.08MB + Index: 0.02MB + Engine InnoDB wp_alp_pickup_location: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB wp_commentmeta: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB wp_comments: Daten: 0.06MB + Index: 0.09MB + Engine InnoDB wp_itsec_bans: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB wp_itsec_dashboard_events: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB wp_itsec_dashboard_lockouts: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB wp_itsec_distributed_storage: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB wp_itsec_fingerprints: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB wp_itsec_firewall_rules: Daten: 0.02MB + Index: 0.05MB + Engine InnoDB wp_itsec_geolocation_cache: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB wp_itsec_lockouts: Daten: 0.02MB + Index: 0.08MB + Engine InnoDB wp_itsec_logs: Daten: 0.19MB + Index: 0.11MB + Engine InnoDB wp_itsec_mutexes: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB wp_itsec_opaque_tokens: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB wp_itsec_temp: Daten: 0.02MB + Index: 0.06MB + Engine InnoDB wp_itsec_user_groups: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB wp_itsec_vulnerabilities: Daten: 0.02MB + Index: 0.05MB + Engine InnoDB wp_links: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB wp_options: Daten: 6.03MB + Index: 0.16MB + Engine InnoDB wp_postmeta: Daten: 0.45MB + Index: 0.33MB + Engine InnoDB wp_posts: Daten: 4.52MB + Index: 0.09MB + Engine InnoDB wp_storeabill_documentmeta: Daten: 0.27MB + Index: 0.25MB + Engine InnoDB wp_storeabill_documents: Daten: 0.05MB + Index: 0.06MB + Engine InnoDB wp_storeabill_document_itemmeta: Daten: 0.30MB + Index: 0.25MB + Engine InnoDB wp_storeabill_document_items: Daten: 0.06MB + Index: 0.05MB + Engine InnoDB wp_storeabill_document_noticemeta: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB wp_storeabill_document_notices: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB wp_storeabill_journals: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB wp_termmeta: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB wp_terms: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB wp_term_relationships: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB wp_term_taxonomy: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB wp_usermeta: Daten: 0.08MB + Index: 0.03MB + Engine InnoDB wp_users: Daten: 0.02MB + Index: 0.05MB + Engine InnoDB wp_wcpdf_invoice_number: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wc_admin_notes: Daten: 0.11MB + Index: 0.00MB + Engine InnoDB wp_wc_admin_note_actions: Daten: 0.11MB + Index: 0.02MB + Engine InnoDB wp_wc_category_lookup: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wc_customer_lookup: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB wp_wc_download_log: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB wp_wc_orders: Daten: 0.02MB + Index: 0.11MB + Engine InnoDB wp_wc_orders_meta: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB wp_wc_order_addresses: Daten: 0.02MB + Index: 0.06MB + Engine InnoDB wp_wc_order_coupon_lookup: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB wp_wc_order_operational_data: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB wp_wc_order_product_lookup: Daten: 0.02MB + Index: 0.06MB + Engine InnoDB wp_wc_order_stats: Daten: 0.02MB + Index: 0.05MB + Engine InnoDB wp_wc_order_tax_lookup: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB wp_wc_product_attributes_lookup: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wc_product_download_directories: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wc_product_meta_lookup: Daten: 0.02MB + Index: 0.09MB + Engine InnoDB wp_wc_rate_limits: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wc_reserved_stock: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wc_tax_rate_classes: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wc_webhooks: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wfpklist_template_data: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB wp_woocommerce_gzd_dhl_im_products: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_gzd_dhl_im_product_services: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_gzd_dhl_labelmeta: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_gzd_dhl_labels: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_gzd_packaging: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB wp_woocommerce_gzd_packagingmeta: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_gzd_shipmentmeta: Daten: 0.09MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_gzd_shipments: Daten: 0.02MB + Index: 0.05MB + Engine InnoDB wp_woocommerce_gzd_shipment_itemmeta: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_gzd_shipment_items: Daten: 0.02MB + Index: 0.06MB + Engine InnoDB wp_woocommerce_gzd_shipment_labelmeta: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_gzd_shipment_labels: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_gzd_shipping_provider: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB wp_woocommerce_gzd_shipping_providermeta: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_twintcw_cc: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB wp_woocommerce_twintcw_documents: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB wp_woocommerce_twintcw_ecc: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB wp_woocommerce_twintcw_schema_version: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB wp_woocommerce_twintcw_storage: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB wp_woocommerce_twintcw_transactions: Daten: 0.19MB + Index: 0.00MB + Engine InnoDB wp_wpforms_entries: Daten: 1.52MB + Index: 0.02MB + Engine InnoDB wp_wpforms_entry_fields: Daten: 0.45MB + Index: 0.34MB + Engine InnoDB wp_wpforms_entry_meta: Daten: 0.02MB + Index: 0.06MB + Engine InnoDB wp_wpforms_payments: Daten: 0.02MB + Index: 0.14MB + Engine InnoDB wp_wpforms_payment_meta: Daten: 0.02MB + Index: 0.05MB + Engine InnoDB wp_wpforms_tasks_meta: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB ### Post Type Counts ### attachment: 74 bc_x1379_op_type: 7 custom_css: 1 document_template: 7 itsec-dash-card: 6 itsec-dashboard: 1 nav_menu_item: 17 page: 30 polylang_mo: 2 post: 4 product: 3 revision: 245 shop_order: 68 wpforms: 2 ### Security ### Secure connection (HTTPS): ✔ Hide errors from visitors: ✔ ### Active Plugins (19) ### Polylang: von WP SYNTEX – 3.5.3 Autoptimize: von Frank Goossens (futtta) – 3.1.10 AWEOS PHP Server Info: von AWEOS GmbH – 1.2 Solid Security Basic: von SolidWP – 9.2.0 Classic Editor: von WordPress-Mitwirkende – 1.6.3 Yoast Duplicate Post: von Enrico Battocchi & Team Yoast – 4.5 Google Analytics for WordPress by MonsterInsights: von MonsterInsights – 8.23.1 Loco Translate: von Tim Whitlock – 2.6.6 Login Logo: von Mark Jaquith – 0.10.2 Min and Max Quantity for WooCommerce: von BeRocket – 1.3.4 mywpguru: von Phil Taylor – is fully automatically updated to the latest UpdraftPlus - Backup/Restore: von UpdraftPlus.Com DavidAnderson – 1.23.16 vendidero Helper: von vendidero – 2.2.2 Germanized für WooCommerce Pro: von vendidero – 3.9.0 Germanized für WooCommerce: von vendidero – 3.15.4 WooCommerce: von Automattic – 8.4.0 WooCommerce TwintCw: von customweb GmbH – 4.0.49 WPForms: von WPForms – 1.8.5.4 XT Floating Cart for WooCommerce Pro: von XplodedThemes – 2.7.5 ### Inactive Plugins (0) ### ### Settings ### API Enabled: – Force SSL: – Currency: CHF (CHF) Currency Position: left_space 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 Woo.com: – Enforce Approved Product Download Directories: – HPOS feature screen enabled: – HPOS feature enabled: – Order datastore: WC_Order_Data_Store_CPT HPOS data sync enabled: – ### WC Pages ### Shop-Basis: #39 - /shop/ Warenkorb: #40 - /warenkorb/ Kasse: #41 - /kasse/ Ihr Konto: #42 - /mein-konto/ Allgemeine Geschäftsbedingungen: #360 - /agb/ ### Theme ### Name: YOOtheme Version: 4.2.11 Author URL: https://yootheme.com Child Theme: ❌ – Wenn Sie WooCommerce mit einem Theme das Sie nicht selbst entwickelt haben an eigene Bedürfnisse anpassen dann empfehlen wir die Verwendung eines Child-Themes. Siehe Wie Sie ein Child-Theme erstellen (engl.) WooCommerce Support: ✔ ### Templates ### Overrides: – ### Admin ### Enabled Features: activity-panels analytics product-block-editor coupons core-profiler customer-effort-score-tracks import-products-task experimental-fashion-sample-products shipping-smart-defaults shipping-setting-tour homescreen marketing mobile-app-banner navigation onboarding onboarding-tasks product-variation-management product-virtual-downloadable remote-inbox-notifications remote-free-extensions payment-gateway-suggestions shipping-label-banner subscriptions store-alerts transient-notices woo-mobile-welcome wc-pay-promotion wc-pay-welcome-page Disabled Features: customize-store minified-js new-product-management-experience product-external-affiliate settings async-product-editor-category-field Daily Cron: ✔ Next scheduled: 2023-12-29 14:42:35 +01:00 Options: ✔ Notes: 186 Onboarding: completed ### Action Scheduler ### Abgeschlossen: 256 Oldest: 2023-11-28 13:15:06 +0100 Newest: 2023-12-29 00:05:06 +0100 Fehlgeschlagen: 125 Oldest: 2023-07-19 13:35:06 +0200 Newest: 2023-11-18 07:13:47 +0100 Ausstehend: 10 Oldest: 2023-12-29 09:38:46 +0100 Newest: 2024-01-04 13:15:07 +0100 ### Status report information ### Generated at: 2023-12-29 09:34:00 +01:00 `Hello jonnybgood
Thank you for your reply and for providing SSR.Could please tell me where you see this error? A screenshot will be helpful.
Warning: Trying to access array offset on value of type null in /home/httpd/vhosts/hesstaxi.ch/neu.hesstaxi.ch/wp-content/plugins/woocommerce/src/Admin/Features/Navigation/CoreMenu.php on line 246Also please share a copy of the fatal error log. You can find this under WooCommerce > System Status > Logs. With this information, we will be better able to investigate and understand what might be causing these issues on your site.
Looking forward to your response. Thanks!
hi
Error is only in backend.

Strangely, I don’t have a “Logs” tab in the status? there are any Tabs…
Hello @jonnybgood,
This is a known bug that happens in the “New Navigation” layout, however, development for this feature is currently on hold, so the team won’t be addressing it any time soon.
I suggest simply disabling “New Navigation” from Woocommerce → Advance → Features.
Link to image: https://d.pr/i/byxCvo
Let us know if you have any other questions! :)ok thank you, that solved the problem 🙂
-
This reply was modified 2 years, 7 months ago by
jonnybgood.
Hello @jonnybgood,
I’m glad we were able to help!
If you have a few minutes, we’d love if you could leave us a review: https://wordpress.org/support/plugin/woocommerce/reviews/
Please note that I will mark this ticket as solved. If you ever face any other issues, I suggest opening a new thread.
Cheers and Happy New Year!
-
This reply was modified 2 years, 7 months ago by
The topic ‘PHP 8.1 Error’ is closed to new replies.