• Resolved Robert

    (@redrings)


    I am now getting the following error on my website when trying to access Sites from the Network menu (or from the dashboard menu):

    Fatal error: Access level to WP_MS_Sites_List_Table::display_rows() must be public (as in class WP_List_Table)

    This seems to have started pretty recently, though I’m not sure with what update. This is happening on my Staging site that has the wordpress beta plugin enabled.

    Any ideas what is going on or how to fix it?

    Thanks!

Viewing 12 replies - 1 through 12 (of 12 total)
  • Anonymous User 9055193

    (@anonymized-9055193)

    What version of WP? There should be a file path and line number with the Fatal error–can you post it? Thanks

    Thread Starter Robert

    (@redrings)

    4.0

    Fatal error: Access level to WP_MS_Sites_List_Table::display_rows() must be public (as in class WP_List_Table) in /…/wp-admin/includes/class-wp-ms-sites-list-table.php on line 390

    Thanks!

    Anonymous User 9055193

    (@anonymized-9055193)

    Thanks. Hmm, sounds like WP_MS_Sites_List_Table class is extending WP_List_Table and may have a protected function. Will need to debug–possibly file a 4.0 bug report.

    Anonymous User 9055193

    (@anonymized-9055193)

    For now, while Beta testing, try changing…

    class-wp-ms-sites-list-table.php (line 180)

    FIND:
    protected function display_rows() {

    REPLACE:
    public function display_rows() {

    See if that works. You can file a bug report during Beta testing ??

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    What version of PHP are you on?

    Thread Starter Robert

    (@redrings)

    PHP Version 5.3.10

    Thread Starter Robert

    (@redrings)

    @neurobotic – that worked, I’ve never filled out a bug report before – can anyone point me in the right direction to get started on that?

    Thanks!!

    Anonymous User 9055193

    (@anonymized-9055193)

    Cool, and please note: you’re editing core Beta files, so I want to get you through dev, for now, then you can investigate what the bug is later. It may not even be a bug.

    For future reference…
    https://codex.www.ads-software.com/Reporting_Bugs

    Thread Starter Robert

    (@redrings)

    “so I want to get you through dev, for now, then you can investigate what the bug is later.”

    I’m not sure what that means… sorry

    Anonymous User 9055193

    (@anonymized-9055193)

    Sorry, I mean: get you through development today so you’re not bogged down with bug squashing…

    You’re Beta testing with a dev release. The files could change during a future update. Consider this a, “hotfix,” to get you through your day. Log it in your daily notes, come back to it later on. If you feel it’s a bug, file a report ??

    Thread Starter Robert

    (@redrings)

    Oh I see, thanks! That site having the problem is almost exclusively used for testing wordpress releases before applying them on our production site (though we also occasionally use it to preview a site/page before deploying it on production, which is actually how we discovered the issue this morning). Our development is done on local installs on the developer machines (and then tested on the staging site).

    I’ll watch it and retest it over the next few beta updates and if it looks like it is still going to be a problem before the next stable update (guess I should check to see when that is) I’ll report it as a bug.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    ACTUALLY, there’s already a bug on this one (it hit 5.2.x really badly) so this should be fixed soon. ??

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Fatal error: Access level to WP_MS_Sites_List_Table::display_rows()’ is closed to new replies.