PHP 8.0 – FATAL ERROR
-
Hi!
Updated from 7.4 to 8.0 using latest version of WordPress and WooCommerce. I get this error:
An error of type E_COMPILE_ERROR was caused in line 518 of the file [my-site]/wp-content/plugins/woocommerce/includes/class-wc-download-handler.php. Error message: Only variables can be passed by reference
This has already been ‘covered’ in this thread but I don’t have the feeling that this relates to custom coding? I haven’t changed anything in WooCommerce php files.
https://wordpress.org/support/topic/woocommerce-fatal-error-php-8-0-line-518/
-
Hi there!
The first thing we’d like to make sure of is seeing if this is a conflict. I understand that you don’t feel like this is related to custom code, but in order for us to pass this on to our development team, we do need to ask you to do a conflict test first.
The steps for such a test are listed here: https://docs.woocommerce.com/document/how-to-test-for-conflicts/
Looking forward to hearing back from you on what you find!
Okay.
So I’ve tried both (using WordPress Default Theme). No change. And also deactivating all plugins but WooCommerce. Same error.
Hi there!
Can you please take a complete backup of your store, uninstall WooCommerce, and then try installing a fresh copy that’s downloaded from here: https://wordpress.org/plugins/woocommerce/
Also, can you please include the steps to replicate the error you’re seeing?
Completed the steps. Same error even with fresh WooCommerce. As soon as I switch from PHP 7.4 to PHP 8.0 and reload the site, in backend as well as front end.
-
This reply was modified 5 years ago by
100lba.
Hi there!
Thank you for testing that out for us.
Could you 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.
I understand PHP 8.0 gives you an error, so please share it when your site is on PHP 7.4.
### WordPress Environment ###
WordPress address (URL): [private]
Site address (URL): [private]
WC Version: 5.2.2
REST API Version: ✔ 5.2.2
WC Blocks Version: ✔ 4.7.2
Action Scheduler Version: ✔ 3.1.6
WC Admin Version: ✔ 2.1.5
Log Directory Writable: ✔
WP Version: 5.7.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.4.13
PHP Post Max Size: 150 MB
PHP Time Limit: 50000
PHP Max Input Vars: 5000
cURL Version: 7.52.1
OpenSSL/1.0.2uSUHOSIN Installed: –
MySQL Version: 5.7.22-log
Max Upload Size: 150 MB
Default Timezone is UTC: ✔
fsockopen/cURL: ✔
SoapClient: ✔
DOMDocument: ✔
GZip: ✔
Multibyte String: ✔
Remote Post: ✔
Remote Get: ✔### Database ###
WC Database Version: 5.2.2
WC Database Prefix: wpgo_
Datenbank-Gesamtgröße: 32.45MB
Datenbank-Datengröße: 28.50MB
Datenbank-Indexgröße: 3.95MB
wpgo_woocommerce_sessions: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB
wpgo_woocommerce_api_keys: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB
wpgo_woocommerce_attribute_taxonomies: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB
wpgo_woocommerce_downloadable_product_permissions: Daten: 0.02MB + Index: 0.06MB + Engine InnoDB
wpgo_woocommerce_order_items: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB
wpgo_woocommerce_order_itemmeta: Daten: 0.08MB + Index: 0.03MB + Engine InnoDB
wpgo_woocommerce_tax_rates: Daten: 0.02MB + Index: 0.06MB + Engine InnoDB
wpgo_woocommerce_tax_rate_locations: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB
wpgo_woocommerce_shipping_zones: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB
wpgo_woocommerce_shipping_zone_locations: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB
wpgo_woocommerce_shipping_zone_methods: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB
wpgo_woocommerce_payment_tokens: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB
wpgo_woocommerce_payment_tokenmeta: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB
wpgo_woocommerce_log: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB
wpgo_actionscheduler_actions: Daten: 0.05MB + Index: 0.11MB + Engine InnoDB
wpgo_actionscheduler_claims: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB
wpgo_actionscheduler_groups: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB
wpgo_actionscheduler_logs: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB
wpgo_commentmeta: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB
wpgo_comments: Daten: 0.02MB + Index: 0.09MB + Engine InnoDB
wpgo_imagify_files: Daten: 0.02MB + Index: 0.08MB + Engine InnoDB
wpgo_imagify_folders: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB
wpgo_links: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB
wpgo_options: Daten: 2.52MB + Index: 0.17MB + Engine InnoDB
wpgo_postmeta: Daten: 19.52MB + Index: 2.02MB + Engine InnoDB
wpgo_posts: Daten: 3.52MB + Index: 0.33MB + Engine InnoDB
wpgo_revslider_css: Daten: 0.13MB + Index: 0.00MB + Engine InnoDB
wpgo_revslider_css_bkp: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB
wpgo_revslider_layer_animations: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB
wpgo_revslider_layer_animations_bkp: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB
wpgo_revslider_navigations: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB
wpgo_revslider_navigations_bkp: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB
wpgo_revslider_sliders: Daten: 0.11MB + Index: 0.00MB + Engine InnoDB
wpgo_revslider_sliders_bkp: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB
wpgo_revslider_slides: Daten: 1.52MB + Index: 0.00MB + Engine InnoDB
wpgo_revslider_slides_bkp: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB
wpgo_revslider_static_slides: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB
wpgo_revslider_static_slides_bkp: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB
wpgo_termmeta: Daten: 0.09MB + Index: 0.09MB + Engine InnoDB
wpgo_terms: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB
wpgo_term_relationships: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB
wpgo_term_taxonomy: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB
wpgo_usermeta: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB
wpgo_users: Daten: 0.02MB + Index: 0.05MB + Engine InnoDB
wpgo_wc_admin_notes: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB
wpgo_wc_admin_note_actions: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB
wpgo_wc_category_lookup: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB
wpgo_wc_customer_lookup: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB
wpgo_wc_download_log: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB
wpgo_wc_order_coupon_lookup: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB
wpgo_wc_order_product_lookup: Daten: 0.02MB + Index: 0.06MB + Engine InnoDB
wpgo_wc_order_stats: Daten: 0.02MB + Index: 0.05MB + Engine InnoDB
wpgo_wc_order_tax_lookup: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB
wpgo_wc_product_meta_lookup: Daten: 0.02MB + Index: 0.09MB + Engine InnoDB
wpgo_wc_reserved_stock: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB
wpgo_wc_tax_rate_classes: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB
wpgo_wc_webhooks: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB### Post Type Counts ###
acf-field: 192
acf-field-group: 3
attachment: 193
custom_css: 1
elementor_library: 5
nav_menu_item: 13
page: 26
post: 1
product: 3
product_variation: 6
revision: 1080
shop_coupon: 2
shop_order: 7
shop_order_refund: 2
user_request: 1### Security ###
Secure connection (HTTPS): ✔
Hide errors from visitors: ✔### Active Plugins (11) ###
Advanced Custom Fields: von Elliot Condon – 5.9.5
The SEO Framework: von Das SEO Framework Team – 4.1.3
BBQ Firewall: von Jeff Starr – 20210211
Elementor: von Elementor.com – 3.2.2
Imagify: von WP Media – 1.9.14
Kadence WooCommerce Email Designer: von Kadence WP – 1.4.7
Neuron Core: von NeuronThemes – 2.1.2
German Market: von MarketPress – 3.11.1
WooCommerce TM Zusätzliche Produktoptionen: von themeComplete – 5.0.12.12
WooCommerce: von Automattic – 5.2.2
WP Rocket: von WP Media – 3.8.8### Inactive Plugins (1) ###
Slim Maintenance Mode: von Johannes Ries – 1.3.6
### Dropin Plugins (1) ###
advanced-cache.php: advanced-cache.php
### Settings ###
API Enabled: –
Force SSL: –
Currency: EUR (€)
Currency Position: right_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 WooCommerce.com: –
### WC Pages ###
Shop-Basis: ❌ Seite nicht festgelegt
Warenkorb: #3708 – /cart/
Kasse: #3709 – /checkout/
Mein Konto: #3710 – /my-account/
Allgemeine Geschäftsbedingungen: #35144 – /terms/### Theme ###
Name: Bifrost Child
Version: 2.1.2
Author URL: https://neuronthemes.com
Child Theme: ✔
Parent Theme Name: Bifrost
Parent Theme Version: 2.1.4
Parent Theme Author URL: http://neuronthemes.com
WooCommerce Support: ✔### Templates ###
Overrides: bifrost/woocommerce/archive-product.php
bifrost/woocommerce/cart/cross-sells.php
bifrost/woocommerce/cart/mini-cart.php
bifrost/woocommerce/content-product.php
bifrost/woocommerce/content-single-product.php
bifrost-child/woocommerce/emails/admin-cancelled-order.php
bifrost-child/woocommerce/emails/admin-failed-order.php
bifrost-child/woocommerce/emails/admin-new-order.php
bifrost-child/woocommerce/emails/customer-completed-order.php
bifrost-child/woocommerce/emails/customer-invoice.php
bifrost-child/woocommerce/emails/customer-new-account.php
bifrost-child/woocommerce/emails/customer-note.php
bifrost-child/woocommerce/emails/customer-on-hold-order.php
bifrost-child/woocommerce/emails/customer-processing-order.php
bifrost-child/woocommerce/emails/customer-refunded-order.php
bifrost-child/woocommerce/emails/customer-reset-password.php
bifrost-child/woocommerce/emails/email-addresses.php
bifrost-child/woocommerce/emails/email-customer-details.php
bifrost-child/woocommerce/emails/email-downloads.php
bifrost-child/woocommerce/emails/email-footer.php
bifrost-child/woocommerce/emails/email-header.php
bifrost-child/woocommerce/emails/email-order-details.php
bifrost-child/woocommerce/emails/email-order-items.php
bifrost-child/woocommerce/emails/email-styles.php
bifrost-child/woocommerce/emails/plain/admin-cancelled-order.php
bifrost-child/woocommerce/emails/plain/admin-failed-order.php
bifrost-child/woocommerce/emails/plain/admin-new-order.php
bifrost-child/woocommerce/emails/plain/customer-completed-order.php
bifrost-child/woocommerce/emails/plain/customer-invoice.php
bifrost-child/woocommerce/emails/plain/customer-new-account.php
bifrost-child/woocommerce/emails/plain/customer-note.php
bifrost-child/woocommerce/emails/plain/customer-on-hold-order.php
bifrost-child/woocommerce/emails/plain/customer-processing-order.php
bifrost-child/woocommerce/emails/plain/customer-refunded-order.php
bifrost-child/woocommerce/emails/plain/customer-reset-password.php
bifrost-child/woocommerce/emails/plain/email-addresses.php
bifrost-child/woocommerce/emails/plain/email-customer-details.php
bifrost-child/woocommerce/emails/plain/email-downloads.php
bifrost-child/woocommerce/emails/plain/email-order-details.php
bifrost-child/woocommerce/emails/plain/email-order-items.php
bifrost/woocommerce/loop/add-to-cart.php
bifrost/woocommerce/loop/loop-end.php
bifrost/woocommerce/loop/loop-start.php
bifrost/woocommerce/loop/orderby.php
bifrost/woocommerce/loop/pagination.php
bifrost/woocommerce/loop/price.php
bifrost/woocommerce/loop/result-count.php
bifrost/woocommerce/myaccount/my-account.php
bifrost/woocommerce/myaccount/navigation.php
bifrost/woocommerce/product-searchform.php
bifrost/woocommerce/single-product/product-image.php
bifrost/woocommerce/single-product/related.php
bifrost/woocommerce/single-product/sale-flash.php
bifrost/woocommerce/single-product/up-sells.php
bifrost/woocommerce/single-product.php
bifrost/woocommerce/taxonomy-product_cat.php
bifrost/woocommerce/taxonomy-product_tag.php### Action Scheduler ###
Abgeschlossen: 42
Oldest: 2021-04-04 11:13:31 +0200
Newest: 2021-05-04 02:02:01 +0200Ausstehend: 1
Oldest: 2021-05-05 02:02:01 +0200
Newest: 2021-05-05 02:02:01 +0200### Status report information ###
Generated at: 2021-05-04 11:25:15 +02:00
Hi there!
Thank you for the System Status Report. I don’t see anything obvious with the System Status Report except for the templates overridden by your theme.
Can you please share a screenshot of the same error you’re seeing, with just WooCommerce as the active plugin, and Storefront as the active theme?
You can set up a staging site to test by getting in touch with your web host, or using a plugin. The WP Staging plugin is perfect for making a clone of your live site so you can set up a local development site. If you need help setting it up, you can find the step-by-step documentation here: https://wordpress.org/plugins/wp-staging/#description under “HOW TO INSTALL AND SETUP?”
Only WooCommerce + storefront theme active. I get this as soon as I use PHP 8: Screenshot
Thank you for the screenshot. Interestingly, we’re still unable to replicate this on our own test site with PHP 8.0:
Link to image: https://d.pr/i/2ZLUW4For further troubleshooting, can you please test this on a different hosting environment / a local installation of WooCommerce + WooCommerce?
-
This reply was modified 5 years ago by
Aashik P - a11n. Reason: fixed image link
I’m afraid I won’t get to that anytime soon, sry. But maybe we can get user @dabevap, from the linked thread above, on board and see if there are any similarities between our cases?
My hosting provider actually has a very modern setup. There will be a server upgrade at the end of May and in the course of that, a few adjustments – maybe by chance that will settle the issue.
Otherwise, I assume that as PHP 8 becomes more widespread, I’m sure at least a few other users will have the same problem. Can’t imagine this being a particular edge case, as I use almost everything out of the box.
Hey again!
I’m hoping that the update to your hosting setup will allow this to work without issue.
I would love to be able to trace this down further, but without being able to replicate this in any of our testing, it’s pretty difficult.
If you have any additional info that might help us narrow this down, please let us know.
Hi @100lba,
We’ve not heard back from you in a while and we might soon mark this thread as resolved. Thus, we’re checking if you were able to try the above suggestion and if the issue was resolved.
We’ll be happy to hear from you.
Thanks.
No, unfortunately not.
I simply don’t have time for that at the moment.
-
This reply was modified 5 years ago by
The topic ‘PHP 8.0 – FATAL ERROR’ is closed to new replies.