WordPress.org

Ready to get started?Download WordPress

Forums

Subscribe2
[resolved] 'Subscribe2_List_Table' not found (34 posts)

  1. tomiga
    Member
    Posted 1 year ago #

    Hello,
    After installing latest (v8.6) version of plugin I have following error on page Subscribers

    Fatal error: Class 'Subscribe2_List_Table' not found in ...wp/wp-content/plugins/subscribe2/admin/subscribers.php on line 136

    http://wordpress.org/extend/plugins/subscribe2/

  2. mattyrob
    Member
    Plugin Contributor

    Posted 1 year ago #

    @tomiga,

    That can only be the result of an incomplete upgrade, you'll have to re-apply the updated code.

  3. tomiga
    Member
    Posted 1 year ago #

    Can I reinstall it from WordPress menu or i have to do it somehow manually?

  4. mattyrob
    Member
    Plugin Contributor

    Posted 1 year ago #

    @tomiga,

    You'll need to do it manually, instruction on how to do that are here:
    http://codex.wordpress.org/Managing_Plugins#Manual_Plugin_Installation

    Plugin zip is here:
    http://downloads.wordpress.org/plugin/subscribe2.8.6.zip

  5. tomiga
    Member
    Posted 1 year ago #

    what about my subscribers email? will they be lost?

    2nd question.
    I download the source code of plugin but I do not see there class: Subscribe2_List_Table

    And at of subscribers.php the line it crashes
    $S2ListTable = new Subscribe2_List_Table();

    I am not familiar with plugin development so I do not know from where it has: wp-admin/includes/class-wp-list-table.php
    (include in your code) and if it is in my wp instalation

    I will check this in few hours (now I am at work)
    But expect more question

  6. mattyrob
    Member
    Plugin Contributor

    Posted 1 year ago #

    @tomiga,

    Provided you don't erase any files using the WordPress admin interface you won't lose any data.

    I suspect the file that's causing you issues is the admin/subscribers.php file. In there you'll fine these few lines:

    if ( !class_exists('WP_List_Table') ){
    	require_once( ABSPATH . 'wp-admin/includes/class-wp-list-table.php' );
    }
    // Instantiate and prepare our table data - this also runs the bulk actions
    $S2ListTable = new Subscribe2_List_Table();
    $S2ListTable->prepare_items();

    And later in the same file you will fine the 'Subscribe2_List_Table' class that extends the core 'WP_List_Table' class to display all of the plugin subscriber data.

  7. tomiga
    Member
    Posted 1 year ago #

    I have compared download files with one on my server. They are the same. Problem still exists. Any other ideas?

  8. mattyrob
    Member
    Plugin Contributor

    Posted 1 year ago #

    @tomiga,

    Does the 'wp-admin/includes/class-wp-list-table.php' file exist on your server also?

    If it does the only other thing I can think of is to move the class code at the bottom of the admin/subscribers.php in Subscribe2 to the top of the file.

  9. mattyrob
    Member
    Plugin Contributor

    Posted 1 year ago #

    @tomiga,

    I've pulled the 'Subscribe2_List_Table' class out into a new file for the next version, that should avoid any future issues along this line.

    I think it must be due to different version of PHP being more picky that others when looking at files for class definitions.

  10. tomiga
    Member
    Posted 1 year ago #

    Ok, I have also class-wp-list-table.

    I have updated your code and moved the class definition at top of the file. It is working now!

    I am not php expert but you tryied to use class which was not defined (before it was defined in the file). And as far as know php is interpreted language (not compiled) so that can be a problem (I am surprised that it works for you).

    So I think fix is required.

  11. tomiga
    Member
    Posted 1 year ago #

    Just FYI my PHP Version 5.2.17

  12. mattyrob
    Member
    Plugin Contributor

    Posted 1 year ago #

    @tomiga,

    PHP is a bit picky, I'm using 5.3.17 and it's working fine but it is a know issue when extending classes.

    You are correct though that perhaps by coding is not the cleanest. I've moved the class to an external file and required it, works fine for me so I'll check those change in later - perhaps you could test them out as a more permanent fix.

  13. tomiga
    Member
    Posted 1 year ago #

    If you like you can send me fix. I can check it.
    Thanks for support.

  14. mattyrob
    Member
    Plugin Contributor

    Posted 1 year ago #

    @tomiga,

    Try the development version, I've just pushed the fix.

    http://downloads.wordpress.org/plugin/subscribe2.zip

  15. tomiga
    Member
    Posted 1 year ago #

    This link is still to old version (no difference in code dates of all files are on 13 dec 20:02). Or something was in cache of serwers.

  16. tomiga
    Member
    Posted 1 year ago #

    Ok I found correct version. I have taken it from

    http://wordpress.org/extend/plugins/subscribe2/developers/

    Other versions: Development version

    It seems to be ok.
    Thx.

  17. mattyrob
    Member
    Plugin Contributor

    Posted 1 year ago #

    @tomiga,

    Sorry about the delay, I type in the svn commit command and walked away, came back an hour later to notice the command had an error and hadn't processed!

    Glad you checked back and thanks for confirming the fix.

  18. grahamkay
    Member
    Posted 1 year ago #

    I have the same problem after upgrading WordPress 3.5

    Is the same fix as above then relevant.

    Cheers

  19. mattyrob
    Member
    Plugin Contributor

    Posted 1 year ago #

    @grahamkay,

    If you have the exact same problem then this fix should work fine for you.

  20. grahamkay
    Member
    Posted 1 year ago #

    Hey Matthew

    All fixed. Seems it was probably an update by my host to PHP that caused the problem that I only noticed after upgrading WordPress to 3.5.
    The subscribe2 development version fixed the problem.

    Donation sent!!
    http://www.picsaustralia.net

  21. mattyrob
    Member
    Plugin Contributor

    Posted 1 year ago #

    @grahamkay,

    I'm glad the fix worked for you and thank you for your donation.

  22. grahamkay
    Member
    Posted 1 year ago #

    I did loose my subscribers though. Probably something I did as I am a complete novice.
    No big deal though as there were not many, mostly all registered users that remained untouched and it was easy to re-subscribe the unregistered subscribers.

  23. mattyrob
    Member
    Plugin Contributor

    Posted 1 year ago #

    @grahamkay,

    I suspect you uninstalled the plugin from the admin area in WordPress.

    It's always worth running a backup plugin. You hosting provider may be able to restore to a previous database also.

  24. mixmastermichael
    Member
    Posted 1 year ago #

    So, I've tried all of these techniques, including downloading the developer version and uploading that version am still having the issue.

    It's weird as sometimes the subscribers page 1 or 3 or 4 etc pulls up just fine, and then when you refresh it stops and gives me that:

    Fatal error: Class 'Subscribe2_List_Table' not found in /mnt/target06/346262/394688/www.aspenreallife.com/web/content/wp-content/plugins/subscribe2/admin/subscribers.php on line 136

    but for example, even when writing that, I went back and refreshed and the subscribers pulled up just fine.

    Does anyone have any ideas?

    Thanks!

  25. mattyrob
    Member
    Plugin Contributor

    Posted 1 year ago #

    @mixmastermichael,

    Have you got some form of caching running on the server? It really should not run on the Admin side or you'll get lots of weird things like this happening.

  26. mixmastermichael
    Member
    Posted 1 year ago #

    Not sure actually. there is a WP-super cache they have installed on it that might be the issue. I've disabled it but am still having the issue.

    I also suspect it's a caching issue now since it sometimes works when you refresh.

  27. mattyrob
    Member
    Plugin Contributor

    Posted 1 year ago #

    @mixmastermichael,

    Even though you have now disabled it, the server may still be serving cached pages if there were changes made in the .htaccess file for example.

    Have a check and see if there is a way to reset the Cache before disabling the plugin.

    If you need caching, I use one called Hypercache without any issues on my production sites.

  28. klancast
    Member
    Posted 1 year ago #

    I did an upgrade to 8.6 and also have the list error. I also am seeing a {PERMALINK) error where that is not being output in emails.

    I will try the fixes above to see if I can get to my subscribers list.

    (Fatal error: Class 'Subscribe2_List_Table' not found in /home/weaver/public_html/wordblog/wp-content/plugins/subscribe2/admin/subscribers.php on line 136)

  29. klancast
    Member
    Posted 1 year ago #

    I upgraded with the developers version that you had recommended above, it work re the subscriber list. I now can see all of them and do not get the error.

    I did not lose any of the subscribers.

    thanks.

  30. mixmastermichael
    Member
    Posted 1 year ago #

    @mattyrob. So, I'm still on the hunt to get my client's issue fixed. I am not really sure where the disconnect is for the WP-cache plugin and gong to the subscribers page. I just can't figure out which plugin is causing the disconnect.... I've tried a few things to delete the cache on the wp-cache side and going back to the subscribe2 plugin, but nothing seems to change it and I still get that fatal error message.

    The only thing that works is just to sit on that page for a bit (when you get the error) then refresh and the content pulls up fine... so weird. I can't really have that be a solution to the client though haha

    So I guess, as the author of that plugin, do you know if there is anything I could possibly do to get it so that the cache doesn't run into the subscribe2 side of things? I dunno.

    hope you're all having a good weekend!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic