WordPress.org

Ready to get started?Download WordPress

Forums

WP-PageNavi
[resolved] Fatal Error (13 posts)

  1. fathernugen
    Member
    Posted 4 months ago #

    Hi Lester,

    Hanks for your plugin. It really helps with the theme I use.

    Unfortunately I have upgraded my theme (which requires your plugin) and WordPress to the latest versions, then went ahead and tried to upgrade any plugins which needed upgrading. After updating your plugin to the latest version (Version 2.85) the following error:

    Cannot redeclare scb_register_table() in /home/medsea/public_html/salingaroundthekrakenslair/wp-content/plugins/wp-pagenavi/scb/Table.php on line 38

    Can you supply me with code to fix this error?

    Thanks for any help you provide me with.

    Surya Osborne.

    https://wordpress.org/plugins/wp-pagenavi/

  2. Lester Chan
    Member
    Plugin Author

    Posted 4 months ago #

    Does your theme already uses my plugin? I have not come across this problem before.

  3. fathernugen
    Member
    Posted 4 months ago #

    Hi Lester,

    Thanks for the quick reply.

    Yes I use the U-Design theme from Themeforest and your plugin is required for the theme to work properly. In the past I have updated without any problems, but this time has it in for me!

    The issue arose after I updated my theme which then triggered the updates of everything else. It was during the update of the various plugins that gave me this error. All the other plugins are fine. Just yours wont activate.

    Do you have any idea what might have happened?

    Surya.

  4. Lester Chan
    Member
    Plugin Author

    Posted 4 months ago #

    Based on the error you posted your theme might be already including my plugin with it.

    And hence your theme copy of WP-PageNavi and the plugin copy of WP-PageNavi got loaded and hence the error.

    Try uninstalling the plugin copy of WP-PageNavi.

  5. fathernugen
    Member
    Posted 4 months ago #

    Hi Lester,

    Your super fast at replying. This is great support.

    The theme I use doesn't include it with the theme files, it only asks that I install your plugin after I install the theme.

    I took your advice and I just deleted the plugin and it's data. Then loaded it again and I get the same error.

    Do you have any other ideas?

    Surya.

  6. Lester Chan
    Member
    Plugin Author

    Posted 4 months ago #

    Can you make sure that you don't have two copies of WP-PageNavi?

    Also try searching for "function scb_register_table" in your themes and plugins. I wonder is another plugin using the SCB framework.

  7. fathernugen
    Member
    Posted 4 months ago #

    I opened my FTP and found the plugins folder. There is only one copy of your plugin inside it.

    Also I disabled all of my other plugins and tried activating WP PageNavi again and I still get the same error.

    All of the plugins worked well together before I started any upgrading.

    How do I search for the function you mentioned? Do I have to through all the files or is there a quick way of doing it? I have never searched for a functionbefore - would I go into the functions.php?

  8. Lester Chan
    Member
    Plugin Author

    Posted 4 months ago #

    I recommend using http://www.sublimetext.com/ and drag the whole /plugins/ and /themes/ folder to it and use "search in open folders"

  9. Lester Chan
    Member
    Plugin Author

    Posted 4 months ago #

    The other way is to switch to default theme, deactivate all plugins and activate WP-Pagenavi first

  10. fathernugen
    Member
    Posted 4 months ago #

    So that was quick.

    I searched all the plugin folders nd yours was the only plugin which had that "function scb_register_table"

    Here are the results of that search:

    --------------------------------------------------------

    Searching 262 files for "function scb_register_table"
    
    /Users/mac/Downloads/plugins/wp-pagenavi/scb/Util.php:
      169   * @param string $name The actual name of the table, without $wpdb->prefix
      170   */
      171: function scb_register_table( $key, $name = false ) {
      172  	global $wpdb;
      173  
    
    1 match in 1 file

    --------------------------------------------------------

    And here are the results from the theme folders:

    --------------------------------------------------------

    Searching 263 files for "function scb_register_table"
    
    0 matches across 0 files

    --------------------------------------------------------

    So it seems a though your plugin is the only file that references that particular function.

  11. Lester Chan
    Member
    Plugin Author

    Posted 4 months ago #

    That is weird. including the /themes/ folder as well?

    Next step is to switch to default theme, deactivate all plugins and activate WP-Pagenavi first

  12. fathernugen
    Member
    Posted 4 months ago #

    Hi Lester,

    Somehow, I don't know how, but, somehow the site just works again now. I re-uploaded all of the WordPress files again and everythig is back to normal. I must have misplaced a file or something. Or my internet connection is so slow that files get partially uploaded.

    Turns out the way I use the U-Design theme I hardly need any of their recommended plugins anyway so I have deleted them all.

    Thanks for all of your help. Whatever you said it made me look into things I have never used, so thanks for your help and for helping to open my eyes so I can see further than I could before.

    Surya.

  13. Lester Chan
    Member
    Plugin Author

    Posted 4 months ago #

    Cool cheers man =)

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.