WordPress.org

Ready to get started?Download WordPress

Forums

WordPress Backup to Dropbox
[resolved] HTTP_OAuth_Consumer redecleration (4 posts)

  1. myatu
    Member
    Posted 1 year ago #

    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/

  2. Michael De Wildt
    Member
    Plugin Author

    Posted 1 year ago #

    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.

  3. Ramzii
    Member
    Posted 1 year ago #

    Awesome, this worked (:

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

    Is it my hosting?

  4. Michael De Wildt
    Member
    Plugin Author

    Posted 1 year ago #

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

    Hence the reason for that configuration.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags