• Resolved ferns

    (@ferns)


    Hi,

    Hoping you can help with a critical error with the plugin without me losing all of my content.

    My site (wp-admin and the front-end) would not load and both pages just displayed the following errors:

    Warning: array_combine(): Both parameters should have an equal number of elements in [site]/wp-content/plugins/mooberry-book-manager/includes/class-mbm-options.php on line 637

    Warning: Invalid argument supplied for foreach() in [site]/wp-content/plugins/mooberry-book-manager/includes/class-mbm-options.php on line 245

    (same error repeated 3 times with that last line number changing: 156 & 225)

    Followed by

    Warning: Cannot modify header information – headers already sent by (output started at [site]/wp-content/plugins/mooberry-book-manager/includes/class-mbm-options.php:637) in [site]/wp-includes/pluggable.php on line 1251

    Repeated again with line 1254.

    I renamed the plugin directory, logged in & updated the deactivated plugin (was one version behind) in case it might fix it, but got the same errors as soon as I reactivated.

    The site is loading right now and even showing books (I’m surprised it suddenly started doing that, but ok), but these errors are all over the wp-admin dashboard, and if you go to any book page you will see the errors above the content.

    Help appreciated.

    Thanks.

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author mooberrydreams

    (@mooberrydreams)

    Hello, Sorry about the errors. I will update the plugin to fix them, however in the meantime you should be able to fix them by going to MBM Settings -> Retailers and saving the page (no need to change anything). Do the same with the Edition Formats and E-book Formats setting pages.

    In general, though, it’s not a good idea to display PHP warnings and notices on production sites and you might want to turn it off. Here’s instructions on how to turn that off:
    https://aristath.github.io/blog/wp-hide-php-errors

    Hope this helps!

    Thread Starter ferns

    (@ferns)

    Thank you for the prompt response, that does help :).

    Thread Starter ferns

    (@ferns)

    Oops, I marked this as resolved too soon.

    I did as you suggested (and hid the errors from the front end), but I’m still seeing the errors all over the dashboard. I deleted the cache and tried it again, but no luck.

    Plugin Author mooberrydreams

    (@mooberrydreams)

    The same errors?

    Would you be willing to set up an account for my on your site so I can take a look at your settings? Email address support @ mooberrydreams.com (minus the spaces)

    Plugin Author mooberrydreams

    (@mooberrydreams)

    Feel free to email me there as well

    Thread Starter ferns

    (@ferns)

    Thanks so much. Email is on its way.

    Thread Starter ferns

    (@ferns)

    Just a note to anyone who might run into this: There was a bug in PHP 7.0.33 causing this issue. I updated to 7.2 and it was fixed.

    Huge thank you so much to Mooberry support for going above and beyond to track this down for me. Stellar sleuthing work, and the effort is much appreciated :).

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Array errors in plugin causing critical site issues’ is closed to new replies.