• Resolved simsim1986

    (@simsim1986)


    I’m getting 2 Errors in my home page and only

    Warning: Undefined array key 10 in /www/wwwroot/www.foxerz.com/wp-includes/class-wp-hook.php on line 315

    Warning: foreach() argument must be of type array|object, null given in?/www/wwwroot/www.foxerz.com/wp-includes/class-wp-hook.php?on line?315

    Please Help!

Viewing 4 replies - 1 through 4 (of 4 total)
  • sangeethasrinivasan

    (@sangeethasrinivasan)

    Hey

    Thank you for reaching out to us. This is Sangeetha from Customer Support Team.

    Our dev team are actively checking on this. In the meantime for further troubleshooting, would it be possible for you to open a support ticket here: https://www.flycart.org/support with the below details:

    • Version of Worpress, PHP and Woocommerce you are using and
    • Site URL

    So that one of our support engineers with assist on this as soon as possible.

    Looking forward to assisting you on this.

    Thanks
    Team Flycart

    sangeethasrinivasan

    (@sangeethasrinivasan)

    Hey @abouvard

    The response may have been unintentionally deleted, and we sincerely apologize for any inconvenience this may have caused.

    To resolve the issue, can you give a try by setting “Suppress third party discount plugins -> No” from our settings tab (if you have set it as “Yes”) ?

    Here is an example screenshot: https://nimb.ws/oH9ELK (go to WordPress back end -> Woocommerce -> Woo Discount Rules -> Settings -> choose the setting and save the changes).

    Hope this helps.

    If issue still occurs, would it be possible for you to open a support ticket here: https://www.flycart.org/support for further help ?

    Looking forward to assisting you on this.

    Thanks
    Team Flycart

    LRA21

    (@slysoft)

    Same problem here. I’ve tried to disable every plugin until error is out. Discount Rules disabled and no error after.

    I tried also to change the PHP Version.
    When I’m on PHP 7.4, I’ve got this error:

    Warning: Invalid argument supplied for foreach() in /***/public_html/wp-includes/class-wp-hook.php on line 315

    After that, when I changed to PHP 8.0 or 8.1, i’ve got this error:

    Warning: Undefined array key 10 in /***/public_html/wp-includes/class-wp-hook.php on line 315

    Warning: foreach() argument must be of type array|object, null given in /***/public_html/wp-includes/class-wp-hook.php on line 315



    Do you plan an update to fix errors?

    Thanks!

    Later update:
    I tried your fix from message above and it works

    • This reply was modified 1 year ago by LRA21.
    sangeethasrinivasan

    (@sangeethasrinivasan)

    Hey @slysoft

    Thanks for giving the option a try.

    Would it be possible for you to open a support ticket here:?https://www.flycart.org/support?for further help ?

    Looking forward to assisting you on this.

    Thanks
    Team Flycart

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘2 Errors in homepage “class-wp-hook.php on line 315”’ is closed to new replies.