WordPress.org

Support

Support » Plugins and Hacks » SFBrowser » [Resolved] [Plugin: SFBrowser] Getting "redeclare format_size() " error when trying to activate plugi

[Resolved] [Plugin: SFBrowser] Getting "redeclare format_size() " error when trying to activate plugi

  • Hi,

    just installed the plugin but I can’t activate it. I can’t even browse any page in the dashboard.

    Fatal error: Cannot redeclare format_size() (previously declared in /home/..../public_html/..../wp-content/plugins/wp-dbmanager/wp-dbmanager.php:226) in /home/...../public_html/..../wp-content/plugins/sfbrowser/connectors/php/functions.php on line 32

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

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

    @sjeiti

    Ah (sorry hadn’t noticed your post any sooner) it seems like a classic case of two similarly named functions, one in SFBrowser and one in the dbmanager plugin you have installed.

    I’ve checked the dbmanager function and it does do something similar but in a different way and with different parameters. So using if (!function_exists(“format_size”)) {… won’t cut it.

    I’m in the middle of a major update right now so I can’t fix and commit this very soon but I’ll do it for the upcoming update. Which I’ll probably release somewhere in the beginning of next week.

    (if you can’t wait and speak php you could try and do a find-and-replace in all sfbrowsers php files to rename the function)

    Plugin Author Sjeiti

    @sjeiti

    I’ve just updated SFBrowser to version 1.4. With it a fix for your problem, or any other similar problem since I’ve made all php functions protected and private within classes.

    Let me know if it works for you so I can mark the topic resolved.

    gr

    Ron

    Hi Ron,

    just installed the 1.4 version and get many errors when enabling it.

    First I get a popup alert saying:
    SFBrowser warning: please check your language settings. Either you have inadvertently set your language to ‘it_IT’ or the file ‘it_IT.po’ is missing in the folder ‘lang’ (and check the SFBrowser plugin folder as well).

    Then there are 3 lines at the very top of the dashboard:
    Warning: mkdir() [function.mkdir]: No such file or directory in /home/…/public_html/website.com/wp-content/plugins/sfbrowser/wp_sfbrowser.php on line 90

    Warning: mkdir() [function.mkdir]: No such file or directory in /home/…/public_html/website.com/wp-content/plugins/sfbrowser/wp_sfbrowser.php on line 90

    Warning: mkdir() [function.mkdir]: No such file or directory in /home/…/public_html/website.com/wp-content/plugins/sfbrowser/wp_sfbrowser.php on line 90

    Also lot of lines like this:

    Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, ‘WPSFBrowser::plugin_action_links’ was given in /home/…/public_html/domain.com/wp-includes/plugin.php on line 166

    Warning: array_unshift() [function.array-unshift]: The first argument should be an array in /home/…/public_html/domain.com/wp-content/plugins/adminimize/adminimize.php on line 1024

    Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, ‘WPSFBrowser::plugin_action_links’ was given in /home/…/public_html/domain.com/wp-includes/plugin.php on line 166

    and the line below for each plugin’s description:
    Warning: Invalid argument supplied for foreach() in /home/…/public_html/domain.com/wp-admin/plugins.php on line 611

    Plugin Author Sjeiti

    @sjeiti

    hmmm …. shit…

    For the first one: I’ll just revert to English if the language is missing.

    The next three are SFBrowser trying to make directories in your uploads folder. Strange why this is not working… have to look into it.

    The plugin_action_links thing is just a stupid mistake.

    I’ll let you know when I have a fix up.

    Plugin Author Sjeiti

    @sjeiti

    I’ve committed 1.4.1
    I hope I’ve solved your problems (I’ve tested with a clean WP install )

    But the mkdir stuff is strange…
    Can you check the permissions on your upload folder? The folder should exist (otherwise you’d have gotten a previous error) and is ussually called wp-content/uploads/
    The permissions should be set to 755 (or higher… http://codex.wordpress.org/Changing_File_Permissions)

    But the mkdir stuff is strange…
    Can you check the permissions on your upload folder? The folder should exist (otherwise you’d have gotten a previous error) and is ussually called wp-content/uploads/
    The permissions should be set to 755 (or higher… http://codex.wordpress.org/Changing_File_Permissions)

    I’m using a custom folder ‘media’ in the root dir rather than ‘wp-content/uploads/’
    Maybe that’s the problem?

    Plugin Author Sjeiti

    @sjeiti

    Could be, even though I retreive the uploads folder from the WordPress database… I’ll go test this.

    And so it was… it is fixed in 1.4.2

    Well that’ll teach me not to commit stuff after midnight… :-p

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘[Resolved] [Plugin: SFBrowser] Getting "redeclare format_size() " error when trying to activate plugi’ is closed to new replies.
Skip to toolbar