• Resolved struppi

    (@struppi)


    Since the last update I get the following message on my page overview site in the backend:

    `Warning: count(): Parameter must be an array or an object that implements Countable in /****/wp-admin/includes/class-wp-list-table.php on line 513

    If I disable your Plugin the message disapear.

    My WordPress Version is 5.3.2
    And the Five Star Restaurant Menu Version 2.0.7

    • This topic was modified 6 years, 2 months ago by struppi.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support jaysupport

    (@jaysupport)

    As this is something we are not able to recreate on our end, and since that message does not reference one of our files, which gives no indication of with what or where in our plugin there is a conflict, can you or someone else provide more information as to how to get the error to show up? For example, exactly what steps you are taking, what options you have changed, where else this message shows up (admin and/or front end, and exactly on which page), etc.

    If you remove the shortcode or block from a page, does the error still display on your page overview screen?

    It could be possible that the newest update didn’t install correctly. If you delete and re-install the plugin (you won’t lose any data), does it still show the error?

    Thread Starter struppi

    (@struppi)

    It is only in the backend and only when I list the “page” site and the “Menu” listings – and really only the menu, not the other lists (I have a german translation there are also “Menü-Einträge” and “Menü-Abschnitte” – here is everything ok).

    I have create several Menus a half year ago. Since last week everything was ok. But I noticed this last week, I don’t work everyday with it.

    I remove the Plugin and re-install it. Nopthing has changed. I still see this warnings.

    I have upload a screenshot
    http://struppi.bplaced.net/Bildschirmfoto_2020-03-23_17-50-00.png

    Thread Starter struppi

    (@struppi)

    Today comes an update and I was excited if this would solve the problem. But unfortunaley not. I still see those warnings.

    Plugin Support jaysupport

    (@jaysupport)

    Hi struppi,

    By any chance, do you happen to be using a theme from Theme of the Crop? We wouldn’t have originally thought this could have anything to do with the theme, but it’s now looking like it might. So, could you let me know the name of the theme you are using?

    Also, does temporarily switching to a different theme make the issue go away?

    Also, it looks like the warning could be coming from the row_actions hook. With that in mind, could you open the “class-custom-post-types.php” file (in the “includes” folder in our plugin files) and comment out (add two slashes at the start of the line) the following line?

    add_filter( 'post_row_actions', array( $this, 'menu_item_row_actions' ), 10, 2 );

    It’s on line 43 in the current version.

    Does that make any difference?

    Thank you

    • This reply was modified 6 years, 2 months ago by jaysupport.
    • This reply was modified 6 years, 2 months ago by jaysupport.
    Thread Starter struppi

    (@struppi)

    Yes, you got it. When I comment the line everything looks fine.

    You know what the problem is now?

    • This reply was modified 6 years, 2 months ago by struppi.
Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Warning: count(): Parameter must be an array or an object …’ is closed to new replies.