-
Notifications
You must be signed in to change notification settings - Fork 10.7k
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
PHP 8 support #27674
Comments
Wow, this is fast, good one people 🤯🥳 |
Milestoning for 4.7, as that is the last release before WP 5.6 gets released, but not everything might be ready by then, so we might need to adjust the plan. |
I've found that when trying to manually create an order, |
Latest update from WP core:
|
Updates from WP core: https://make.wordpress.org/core/2020/10/06/call-for-testing-php-8-0/ |
@peterfabian Currently it's missing only to update our Unit Tests, but this isn't something that depends on a release and can be merged at any time. I'm going to remove the 4.7 milestone, since 4.7 already includes all other changes. @Konamiman Thank you very much for all your work! |
Just trying to add PHP 8 to our CI as part of #27844 and we can close this one. |
Closing as we've recently merged #27844, which was the last pending PR on this subject. |
FATAL ERROR with php 8 on customer-processing-order.php on: |
Hi @genuino2, thanks for your report. Could you please provide more details on what the exact error is and what are the steps to get it? |
Sure: please note that the custom template used is different only for one
paragraph. I've tried also with original template and the error was the
same.
Please, pay attention to row that using my template. Is a little different
from the original file.
[25-Feb-2022 14:47:52 UTC] PHP Fatal error: Uncaught TypeError: Illegal
offset type in isset or empty in
/home2/lwgaspar/public_html/wp-includes/meta.php:657
Stack trace:
#0 /home2/website/public_html/wp-includes/meta.php(572):
get_metadata_raw('post', 155188, Array, true)
#1 /home2/website/public_html/wp-includes/post.php(2505):
get_metadata('post', 155188, Array, true)
#2
/home2/website/public_html/wp-content/plugins/woocommerce/includes/class-wc-emails.php(505):
get_post_meta(155188, Array, true)
#3 /home2/website/public_html/wp-includes/class-wp-hook.php(309):
WC_Emails->order_meta(Object(Automattic\WooCommerce\Admin\Overrides\Order),
false, false)
#4 /home2/website/public_html/wp-includes/class-wp-hook.php(331):
WP_Hook->apply_filters('', Array)
#5 /home2/website/public_html/wp-includes/plugin.php(474):
WP_Hook->do_action(Array)
#6
/home2/website/public_html/wp-content/themes/mytheme-child/woocommerce/emails/customer-processing-order.php(71):
do_action('woocommerce_ema...',
Object(Automattic\WooCommerce\Admin\Overrides\Order), false, false,
Object(WC_Email_Customer_Processing_Order))
#7
/home2/website/public_html/wp-content/plugins/woocommerce/includes/wc-core-functions.php(345):
include('/home2/website...')
#8
/home2/website/public_html/wp-content/plugins/woocommerce/includes/wc-core-functions.php(364):
wc_get_template('emails/customer...', Array, '', '')
#9
/home2/website/public_html/wp-content/plugins/woocommerce/includes/emails/class-wc-email-customer-processing-order.php(113):
wc_get_template_html('emails/customer...', Array)
#10
/home2/website/public_html/wp-content/plugins/woocommerce/includes/emails/class-wc-email.php(541):
WC_Email_Customer_Processing_Order->get_content_html()
#11
/home2/website/public_html/wp-content/plugins/woocommerce/includes/emails/class-wc-email-customer-processing-order.php(93):
WC_Email->get_content()
#12 /home2/website/public_html/wp-includes/class-wp-hook.php(307):
WC_Email_Customer_Processing_Order->trigger(155188,
Object(Automattic\WooCommerce\Admin\Overrides\Order))
#13 /home2/website/public_html/wp-includes/class-wp-hook.php(331):
WP_Hook->apply_filters('', Array)
#14 /home2/website/public_html/wp-includes/plugin.php(522):
WP_Hook->do_action(Array)
#15
/home2/website/public_html/wp-content/plugins/woocommerce/includes/class-wc-emails.php(170):
do_action_ref_array('woocommerce_ord...', Array)
#16 /home2/website/public_html/wp-includes/class-wp-hook.php(307):
WC_Emails::send_transactional_email(Array,
Object(Automattic\WooCommerce\Admin\Overrides\Order))
#17 /home2/website/public_html/wp-includes/class-wp-hook.php(331):
WP_Hook->apply_filters('', Array)
#18 /home2/website/public_html/wp-includes/plugin.php(474):
WP_Hook->do_action(Array)
#19
/home2/website/public_html/wp-content/plugins/woocommerce/includes/class-wc-order.php(373):
do_action('woocommerce_ord...', 155188,
Object(Automattic\WooCommerce\Admin\Overrides\Order))
#20
/home2/website/public_html/wp-content/plugins/woocommerce/includes/class-wc-order.php(222):
WC_Order->status_transition()
#21
/home2/website/public_html/wp-content/plugins/woocommerce/includes/admin/meta-boxes/class-wc-meta-box-order-data.php(635):
WC_Order->save()
#22 /home2/website/public_html/wp-includes/class-wp-hook.php(309):
WC_Meta_Box_Order_Data::save(155188)
#23 /home2/website/public_html/wp-includes/class-wp-hook.php(331):
WP_Hook->apply_filters(NULL, Array)
#24 /home2/website/public_html/wp-includes/plugin.php(474):
WP_Hook->do_action(Array)
#25
/home2/website/public_html/wp-content/plugins/woocommerce/includes/admin/class-wc-admin-meta-boxes.php(222):
do_action('woocommerce_pro...', 155188, Object(WP_Post))
#26 /home2/website/public_html/wp-includes/class-wp-hook.php(309):
WC_Admin_Meta_Boxes->save_meta_boxes(155188, Object(WP_Post))
#27 /home2/website/public_html/wp-includes/class-wp-hook.php(331):
WP_Hook->apply_filters(155188, Array)
#28 /home2/website/public_html/wp-includes/plugin.php(474):
WP_Hook->do_action(Array)
#29 /home2/website/public_html/wp-includes/post.php(4687):
do_action('save_post', 155188, Object(WP_Post), true)
#30 /home2/website/public_html/wp-includes/post.php(4789):
wp_insert_post(Array, false, true)
#31 /home2/website/public_html/wp-admin/includes/post.php(426):
wp_update_post(Array)
#32 /home2/website/public_html/wp-admin/post.php(227): edit_post()
#33 {main}
thrown in /home2/website/public_html/wp-includes/meta.php on line 657
Il giorno ven 25 feb 2022 alle ore 16:53 Néstor Soriano <
***@***.***> ha scritto:
… Hi @genuino2 <https://github.com/genuino2>, thanks for your report. Could
you please provide more details on what the exact error is and what are the
steps to get it?
—
Reply to this email directly, view it on GitHub
<#27674 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABE4R4LWY7E5SUZ353EZD7DU46QWNANCNFSM4RM2CS4Q>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Thanks @genuino2 but I'd need some more details:
Thank you! |
WooCommerce 6.2.1
Theme: blocksy
PHP: 8
What i've done: I've moved an order from On Hold to Processing and i've the
error. Email to customer not sent. Switched to Php 7.4 and it's all ok.
Il giorno lun 28 feb 2022 alle ore 15:43 Néstor Soriano <
***@***.***> ha scritto:
… Thanks @genuino2 <https://github.com/genuino2> but I'd need some more
details:
- What WooCommerce version are you using?
- Which is the original theme in which you are also getting the error?
- Could you please provide the detailed usage steps that trigger the
error?
Thank you!
—
Reply to this email directly, view it on GitHub
<#27674 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABE4R4JWWF6JRB4KPKVGPRLU5OC23ANCNFSM4RM2CS4Q>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Woocommerce 6.9.0
Fixed with this solution add_filter( 'woocommerce_enqueue_styles', 'wc_child_theme_fix_33467', PHP_INT_MAX ); function wc_child_theme_fix_33467( $styles ) { |
@dadart123 this should be addressed in 6.9.1, per #34671 |
woocommerce 7.1 Error DetailsAn error of type E_ERROR was caused in line 37 of the file /www/wwwroot/sweetener/wp-content/plugins/woocommerce/includes/class-wc-regenerate-images-request.php. Error message: Uncaught Error: Call to undefined function putenv() in /www/wwwroot/sweetener/wp-content/plugins/woocommerce/includes/class-wc-regenerate-images-request.php:37 |
I keep getting this error message and it's a core alert. I have no idea why and it only happens when I use any php version higher than 7.4 with WordPress 6.22. Uncaught Error: array_filter(): Argument #1 ($array) must be of type array, null given wp-includes/class-wp-user-query.php:479 Any when I try to edit any page, I get a Fatal response: array_filter() expects parameter 1 to be array, null given wp-includes/class-wp-user-query.php:479 Can you help me? |
Hi @michaelbgibs. Could you please confirm if this error appears only if WooCommerce is installed? If that's the case, could you please create a new issue with detailed reproduction steps? Thank you! |
Similarly to WordPress 5.6 (planned for 8 December 2020), we need to start preparations to be fully compatible with PHP 8 once it lands on November 26, 2020.
We need to
WP core trac ticket for some reference: https://core.trac.wordpress.org/ticket/50913
Related: p59oML-1O4-p2
Related pull requests:
Checked items are already merged.
The text was updated successfully, but these errors were encountered: