WordPress.org

Support

Support » Plugins and Hacks » [Resolved] [Plugin: WordPress Backup to Dropbox] HTTP_OAuth_Consumer redecleration

[Resolved] [Plugin: WordPress Backup to Dropbox] HTTP_OAuth_Consumer redecleration

  • Just a heads up, that the plugin re-declares HTTP_OAuth_Consumer and as a result causes a fatal error:

    Fatal error: Cannot redeclare class HTTP_OAuth_Consumer in /var/www/sites/wordpress-dev.localnet/public/wp-content/plugins/wordpress-backup-to-dropbox/PEAR_Includes/HTTP/OAuth/Consumer.php on line 420 Call Stack: 0.0001 331288 1. {main}() /var/www/sites/wordpress-dev.localnet/public/wp-admin/admin.php:0 0.3749 5370980 2. do_action() /var/www/sites/wordpress-dev.localnet/public/wp-admin/admin.php:151 0.3749 5372184 3. call_user_func_array() /var/www/sites/wordpress-dev.localnet/public/wp-includes/plugin.php:403 0.3749 5372212 4. backup_to_dropbox_admin_menu_contents() /var/www/sites/wordpress-dev.localnet/public/wp-includes/plugin.php:0 0.3751 5372812 5. include('/var/www/sites/wordpress-dev.localnet/public/wp-content/plugins/wordpress-backup-to-dropbox/Views/wp-backup-to-dropbox-options.php') /var/www/sites/wordpress-dev.localnet/public/wp-content/plugins/wordpress-backup-to-dropbox/wp-backup-to-dropbox.php:79 0.3751 5373152 6. Dropbox_Facade::construct() /var/www/sites/wordpress-dev.localnet/public/wp-content/plugins/wordpress-backup-to-dropbox/Views/wp-backup-to-dropbox-options.php:31 0.3751 5373612 7. Dropbox_Facade->__construct() /var/www/sites/wordpress-dev.localnet/public/wp-content/plugins/wordpress-backup-to-dropbox/Classes/class-dropbox-facade.php:38 0.3847 5625252 8. Dropbox_OAuth_PEAR->__construct() /var/www/sites/wordpress-dev.localnet/public/wp-content/plugins/wordpress-backup-to-dropbox/Classes/class-dropbox-facade.php:50 0.3848 5625572 9. Dropbox_autoload() /var/www/sites/wordpress-dev.localnet/public/wp-content/plugins/wordpress-backup-to-dropbox/Dropbox_API/src/Dropbox/autoload.php:0 0.3849 5636928 10. include('/var/www/sites/wordpress-dev.localnet/public/wp-content/plugins/wordpress-backup-to-dropbox/Dropbox_API/src/Dropbox/OAuth/Consumer/Dropbox.php') /var/www/sites/wordpress-dev.localnet/public/wp-content/plugins/wordpress-backup-to-dropbox/Dropbox_API/src/Dropbox/autoload.php:22

    http://wordpress.org/extend/plugins/wordpress-backup-to-dropbox/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Michael De Wildt

    @michaeldewildt

    This is because I bundle the required PEAR includes with the plugin as most servers do not have them.

    If you change the USE_BUNDLED_PEAR flag to false in the wp-backup-to-dropbox.php file using the plugin editor.

    This error should stop.

    Let me know how you go.

    Awesome, this worked (:

    Thanks, quick question though.. why didnt it work straight outta the box?

    Is it my hosting?

    Plugin Author Michael De Wildt

    @michaeldewildt

    Some hosts include the PEAR libs in their PHP install that conflicts with the one I bundled.

    Hence the reason for that configuration.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Resolved] [Plugin: WordPress Backup to Dropbox] HTTP_OAuth_Consumer redecleration’ is closed to new replies.