• Resolved dimal

    (@dimalifragis)


    Hi, WP latest and Woo Latest and PHP 8.1.x

    [23-Oct-2023 18:37:52 UTC] [23-Oct-2023 18:37:52 UTC] PHP Deprecated: Automatic conversion of false to array is deprecated in /home/public_html/wp-content/plugins/woocommerce/src/Admin/DataSourcePoller.php on line 138

    Thank you

    • This topic was modified 1 year, 4 months ago by dimal.
Viewing 14 replies - 1 through 14 (of 14 total)
  • Thread Starter dimal

    (@dimalifragis)

    Also

    [24-Oct-2023 15:22:18 UTC] PHP Deprecated: Automatic conversion of false to array is deprecated in /home/public_html/wp-content/plugins/pinterest-for-woocommerce/class-pinterest-for-woocommerce.php on line 600

    Thread Starter dimal

    (@dimalifragis)

    I’m confused …. considering my above issue and lots of deprecated notices in woocommerce….

    WordPress 6.4’s PHP Compatibility

    • This reply was modified 1 year, 4 months ago by dimal.

    Hi @dimalifragis ,

    Kindly avoid creating duplicate posts as this goes against the Forum Guidelines.

    Since further support has been provided on?your other thread, I’ll go ahead and mark this topic as resolved???

    Cheers!

    Thread Starter dimal

    (@dimalifragis)

    @beautyofcode Hi, I didn’t brake any rule, i posted TWO different Deprecated notices.

    Anyways, sorry for the trouble i may have created.

    Thread Starter dimal

    (@dimalifragis)

    This notice is still present even after updating to woo commerce 6.3 today.

    [19-Nov-2023 16:01:00 UTC] PHP Deprecated: Automatic conversion of false to array is deprecated in /home/public_html/wp-content/plugins/woocommerce/src/Admin/DataSourcePoller.php on line 138

    Hi @dimalifragis

    To isolate this problem, could you please try to perform a conflict test? Switch to a default WordPress theme, and then deactivate all plugins except WooCommerce to see if the issue is gone, if yes, that means a theme or a plugin is contributing to the issue. Re-enable each to see which one causes it. You can find a more detailed explanation of how to do a conflict test here.

    Please also share a copy of your site’s System Status Report so that we can better understand your site’s current environment. You can find this by navigating to WooCommerceStatus → select Get system report and then Download for support. This will download a TXT file that has the contents of the SSR to share with us.

    Thanks and looking forward to your response!

    Thread Starter dimal

    (@dimalifragis)

    @aguinaldodarla Hi ans thanks for the reply.

    I could do all that but the problem is that this error is showing 1-2 times per day and i can’t replicate it. So i don’t know when it happens.

    Maybe if i’m told what “DataSourcePoller.php” does, i can force it to happen.

    • This reply was modified 1 year, 3 months ago by dimal.

    Howdy @dimalifragis,

    I could do all that but the problem is that this error is showing 1-2 times per day and i can’t replicate it. So i don’t know when it happens.

    Is this notice being displayed on the front end of your site, or is it only being logged in the error log found?under?WooCommerce?→?Status?→?Logs.?

    Also, if you roll back to a previous PHP version, does the issue resolve? The best way to perform these types of checks is in a staging environment. This is a clone of your live site where you can test changes without affecting your live site. This can be done using the free?WP Staging?plugin.

    If you do make any changes to your live site, we always recommend ensuring that you have a good?backup?of your?full site and database?before doing this, so that, should something go wrong, you are able to easily restore your site to a functioning state.

    Lastly, kindly share a copy of your site’s System Status Report so that we can take a closer look at your sites current environment.

    As mentioned, this can be found via?WooCommerce?→?Status. Select?Get system report?and then?Download for Support. This will download a TXT file that has the contents of the SSR which you can then share with us here.

    Cheers!

    Howdy,

    We haven’t heard back from you in a while, so I’m going to mark this as resolved – we’ll be here if you need any further help with this.

    Cheers!

    Hello there,

    I have the same problem. Could you please re check and fix it?

    How to fix it:

    In file:/woocommerce/src/Admin/DataSourcePoller.php on line 136

    Change from

    $specs_group = get_transient( $this->args['transient_name'] ) ?? array();

    to:

    $specs_group = (array) get_transient( $this->args['transient_name'] ) ?? array();
    • This reply was modified 1 year, 1 month ago by vandung93.
    • This reply was modified 1 year, 1 month ago by vandung93.
    Thread Starter dimal

    (@dimalifragis)

    @vandung93 It seems they have their own agenda and there is no reason to report things here. All you get is vague replies and a “Status Resolved”.

    After 3 months, still an issue.

    Hi there @vandung93,

    As per the forum rules, I suggest that you start a new thread with your case, so that we don’t mix several troubleshooting sessions in one thread. Even if the symptoms are the same, perhaps the underlying problem is different in your case.

    @dimalifragis, I’m sorry to hear about your ongoing issue, and I apologize if our responses have not met your expectations. Could you please confirm that even after updating your WooCommerce version, the issue persists?

    Thread Starter dimal

    (@dimalifragis)

    @ckadenge Hi,

    After 3+ months and the issue is still present, so i’m entitled not to be happy ??

    Hey @dimalifragis

    After 3+ months and the issue is still present, so i’m entitled not to be happy ??

    We hear your frustration and we’d be happy to take a closer look into this.

    Please respond to our previous reply and include your sites System Status Report so that we can better understand your sites current environment.

    Cheers!

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘PHP 8.1.x – PHP Deprecated’ is closed to new replies.