WordPress.org

Ready to get started?Download WordPress

Forums

Simple Dropbox Upload
[resolved] Error: Need to authorize plugin! (29 posts)

  1. milton12
    Member
    Posted 2 years ago #

    I downloaded & installed Simple-Dropbox-Upload-Form, v 1.3.0.

    I downloaded, installed Dropbox 1.2.49 and set up DBx account.

    I went thru the 6-step installation for the Upload-Form, with what appeared to be confirmation that each step completed successfully.

    I inserted the [simple-wp-dropbox] code on a page, but when I previewed the page, I rcvd the error msg in the Topic Title.

    I marked the page to NOT show on the Menu, and published the page.
    Same error message when display the page.

    Don't see anyone else with this error, but with the minimal install/setup instructions, I must be doing something wrong. Could problem be with Dropbox.com? How can I check?

    http://wordpress.org/extend/plugins/simple-dropbox-upload-form/

  2. hiphopsmurf
    Member
    Plugin Author

    Posted 2 years ago #

    Please reset the plugin and do the authorization again. It sounds as though dropbox didn't return the required info the first time around.

  3. milton12
    Member
    Posted 2 years ago #

    OK. I was able to "reset" the plug-in, and the page loads properly with a

    text box, and "Browse" and "Submit" buttons.

    But when I submit a file I get back the error msg:
    Fatal error: Call to a member function setToken() on a non-object in /home/content/80/8015580/html/millionairemasters/wp-content/plugins/simple-dropbox-upload-form/wp-dropbox.php on line 134

    Am I still doing something wrong?

  4. hiphopsmurf
    Member
    Plugin Author

    Posted 2 years ago #

    It is highly likely that your host/server isn't configured with OAuth which is required for this plugin to work with dropbox.

  5. milton12
    Member
    Posted 2 years ago #

    My site is hosted by godaddy.com. Apparently they do NOT support OAuth protocols. They told me, "You need to use a script that uses PHP." What can I do at this point? Do I need to find another plugin?

  6. hiphopsmurf
    Member
    Plugin Author

    Posted 2 years ago #

    Its my understanding that godaddy does not allow the use of ini_set so you would need to add to the include path in the php.ini file. It would be something like ":/YOUR/PATH/HERE/wp-content/plugins/simple-dropbox-upload-form/inc/Dropbox/pear_includes"

  7. mintbeat
    Member
    Posted 2 years ago #

    hey there, Im having exactly the same issue as milton12 and i would like to fix it.

    where and how I cut & paste the following code?

    ":/YOUR/PATH/HERE/wp-content/plugins/simple-dropbox-upload-form/inc/Dropbox/pear_includes"

    also 'your path here' means the same drop box path i would like to file to be uploaded?

    many thanks in advance

    Bruno

  8. mintbeat
    Member
    Posted 2 years ago #

    If i try to upload i receive the error below.. my host is goddady.

    many thanks

    Bruno

    Warning: include(HTTP/OAuth/Consumer.php) [function.include]: failed to open stream: No such file or directory in /home/content/24/9370424/html/wp-content/plugins/simple-dropbox-upload-form/inc/Dropbox/OAuth/PEAR.php on line 47

    Warning: include() [function.include]: Failed opening 'HTTP/OAuth/Consumer.php' for inclusion (include_path='.:/usr/local/php5/lib/php') in /home/content/24/9370424/html/wp-content/plugins/simple-dropbox-upload-form/inc/Dropbox/OAuth/PEAR.php on line 47
    Error: The HTTP_OAuth_Consumer class could not be found! Did you install the pear HTTP_OAUTH class?
    Fatal error: Call to a member function putFile() on a non-object in /home/content/24/9370424/html/wp-content/plugins/simple-dropbox-upload-form/wp-dropbox.php on line 210

  9. hiphopsmurf
    Member
    Plugin Author

    Posted 2 years ago #

    To answer your first post, that line gets pasted in your php.ini file. I do not have access to a godaddy server to give exact directions but I had another user tell me that they had to do that. Your second post is a result of the first post in that the proper files arent included in the include path and godaddy doesnt support oAuth

  10. hiphopsmurf
    Member
    Plugin Author

    Posted 2 years ago #

    As an alternative you can check out the sugarsync plugin that I made which was made for people in the same situation your in. SugarSync is just like dropbox.

    Simple SugarSync Upload

  11. mintbeat
    Member
    Posted 2 years ago #

    many thanks for the very prompt response! I'll check it now

    just in case - can I paste the text anywhere in the php.ini ? where can i find it? sorry, never done it b4

    many thanks again

    Bruno

  12. hiphopsmurf
    Member
    Plugin Author

    Posted 2 years ago #

    look for include_path = " in the php.ini file. insert /home/content/24/9370424/html/wp-content/plugins/simple-dropbox-upload-form/inc/Dropbox/pear_includes so it will look something like:

    include_path = ".:/usr/lib/php:/usr/local/lib/php:/home/content/24/9370424/html/wp-content/plugins/simple-dropbox-upload-form/inc/Dropbox/pear_includes"

  13. mintbeat
    Member
    Posted 2 years ago #

    cheers hiphopsmurf

    Im in the plugin editor but i cannot find the php.ini

    sorry, I have no experience at all with programming

    many thanks

    B

  14. hiphopsmurf
    Member
    Plugin Author

    Posted 2 years ago #

    You will not be able to access the php.ini file with the editor in wordpress. you will likely have to edit it through FTP or the file manager in your godaddy accout. I would try the file manager in godaddy first. Be sure to back up the file if you decide to edit it.

  15. mintbeat
    Member
    Posted 2 years ago #

    ok.. I will try and let you know

    many thanks

  16. mintbeat
    Member
    Posted 2 years ago #

    I found the php.ini and I've changed the name to php5.ini as per godaddy tech support instructions

    I could not find the include_path line, so i've included this line there

    include_path =
    ".:/usr/lib/php:/usr/local/lib/php:/home/content/24/9370424/html/wp-content/plugins/simple-dropbox-upload-form/inc/Dropbox/pear_includes"

    now when i try to upload I receive this msg

    Error: Forbidden. This could mean a bad OAuth request, or a file or folder already existing at the target location.

  17. mintbeat
    Member
    Posted 2 years ago #

    that is how my php5.ini looks like

    register_globals = off
    allow_url_fopen = off

    expose_php = Off
    max_input_time = 60
    variables_order = "EGPCS"
    extension_dir = ./
    upload_tmp_dir = /tmp
    precision = 12

    SMTP = relay-hosting.secureserver.net
    url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=,fieldset="

    ; Only uncomment zend optimizer lines if your application requires Zend Optimizer support

    ;[Zend]
    ;zend_optimizer.optimization_level=15
    ;zend_extension_manager.optimizer=/usr/local/Zend/lib/Optimizer-3.3.3
    ;zend_extension_manager.optimizer_ts=/usr/local/Zend/lib/Optimizer_TS-3.3.3
    ;zend_extension=/usr/local/Zend/lib/Optimizer-3.3.3/ZendExtensionManager.so
    ;zend_extension_ts=/usr/local/Zend/lib/Optimizer_TS-3.3.3/ZendExtensionManager_TS.so

    ; -- Be very careful to not to disable a function which might be needed!
    ; -- Uncomment the following lines to increase the security of your PHP site.

    ;disable_functions = "highlight_file,ini_alter,ini_restore,openlog,passthru,
    ; phpinfo, exec, system, dl, fsockopen, set_time_limit,
    ; popen, proc_open, proc_nice,shell_exec,show_source,symlink"

  18. hiphopsmurf
    Member
    Plugin Author

    Posted 2 years ago #

    Try to enable allow_url_fopen by setting it to allow_url_fopen = On

  19. hiphopsmurf
    Member
    Plugin Author

    Posted 2 years ago #

    Also disable the plugin and re-enable it so you know your starting with a clean slate. You will have to authorize with dropbox again.

  20. mintbeat
    Member
    Posted 2 years ago #

    did all as you've said

    now I'm getting this msg

    Warning: include(HTTP/OAuth/Consumer.php) [function.include]: failed to open stream: No such file or directory in /home/content/24/9370424/html/wp-content/plugins/simple-dropbox-upload-form/inc/Dropbox/OAuth/PEAR.php on line 47

    Warning: include() [function.include]: Failed opening 'HTTP/OAuth/Consumer.php' for inclusion (include_path='.:/usr/local/php5/lib/php') in /home/content/24/9370424/html/wp-content/plugins/simple-dropbox-upload-form/inc/Dropbox/OAuth/PEAR.php on line 47
    Error: The HTTP_OAuth_Consumer class could not be found! Did you install the pear HTTP_OAUTH class?
    Fatal error: Call to a member function putFile() on a non-object in /home/content/24/9370424/html/wp-content/plugins/simple-dropbox-upload-form/wp-dropbox.php on line 211

  21. hiphopsmurf
    Member
    Plugin Author

    Posted 2 years ago #

    according to godaddy they aren't going to support it if your on a shared hosting plan. Since I don't have access to a godaddy host I can not confirm this. Oauth is used by many services like facebook, twitter and the like so my guess is that godaddy uses that to upsell you to a VPS or Dedicated server. Godaddy Support

  22. mintbeat
    Member
    Posted 2 years ago #

    this is how the php5.ini looks now

    register_globals = off
    allow_url_fopen = On
    
    expose_php = Off
    max_input_time = 60
    variables_order = "EGPCS"
    extension_dir = ./
    upload_tmp_dir = /tmp
    precision = 12
    include_path = ".:/usr/lib/php:/usr/local/lib/php:/home/content/24/9370424/html/wp-content/plugins/simple-dropbox-upload-form/inc/Dropbox/pear_includes"
    SMTP = relay-hosting.secureserver.net
    url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=,fieldset="
    
    ; Only uncomment zend optimizer lines if your application requires Zend Optimizer support
    
    ;[Zend]
    ;zend_optimizer.optimization_level=15
    ;zend_extension_manager.optimizer=/usr/local/Zend/lib/Optimizer-3.3.3
    ;zend_extension_manager.optimizer_ts=/usr/local/Zend/lib/Optimizer_TS-3.3.3
    ;zend_extension=/usr/local/Zend/lib/Optimizer-3.3.3/ZendExtensionManager.so
    ;zend_extension_ts=/usr/local/Zend/lib/Optimizer_TS-3.3.3/ZendExtensionManager_TS.so
    
    ; -- Be very careful to not to disable a function which might be needed!
    ; -- Uncomment the following lines to increase the security of your PHP site.
    
    ;disable_functions = "highlight_file,ini_alter,ini_restore,openlog,passthru,
    ;		      phpinfo, exec, system, dl, fsockopen, set_time_limit,
    ;                     popen, proc_open, proc_nice,shell_exec,show_source,symlink"
  23. sanjos
    Member
    Posted 1 year ago #

    Hi,
    I also getting this problem with this plugin.Our server is immotionhost.

    Warning: include(HTTP/OAuth/Consumer.php) [function.include]: failed to open stream: No such file or directory in /home/myserver/public_html/site/wp-content/plugins/simple-dropbox-upload-form/inc/Dropbox/OAuth/PEAR.php on line 47

    Warning: include(HTTP/OAuth/Consumer.php) [function.include]: failed to open stream: No such file or directory in /home/myserver/public_html/site/wp-content/plugins/simple-dropbox-upload-form/inc/Dropbox/OAuth/PEAR.php on line 47

    Warning: include() [function.include]: Failed opening 'HTTP/OAuth/Consumer.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php:/home/myserver/php') in /home/myserver/public_html/site/wp-content/plugins/simple-dropbox-upload-form/inc/Dropbox/OAuth/PEAR.php on line 47
    Error: The HTTP_OAuth_Consumer class could not be found! Did you install the pear HTTP_OAUTH class?
    Fatal error: Call to a member function putFile() on a non-object in /home/myserver/public_html/site/wp-content/plugins/simple-dropbox-upload-form/wp-dropbox.php on line 210

  24. fhstudio
    Member
    Posted 1 year ago #

    When I try to authorize the plugin, I get this message:

    Step 1: Pre-authorization acquired!

    Fatal error: Cannot use object of type WP_Error as array in C:\xampp\htdocs\wordpress\wp-content\plugins\simple-dropbox-upload-form\inc\Dropbox\OAuth\Wordpress.php on line 80

    I also notice when I save my settings the pluin adds "\" to my first 3 directories. So instead of "C:xampp\" it saves as "C:\\xampp\\" Could this be causing the problem?

  25. hiphopsmurf
    Member
    Plugin Author

    Posted 1 year ago #

    I honestly couldn't tell you where to start since I have not tested it in a windows environment. The error you are getting is related to the built in oAuth feature of wordpress. One option you might want to try would be to open \inc\wpsdb_auth.php and find $oauth = new Dropbox_OAuth_Wordpress($consumerKey, $consumerSecret); around line 71 and change it to $oauth = new Dropbox_OAuth_Curl($consumerKey, $consumerSecret); and let me know if you get any error.

  26. fhstudio
    Member
    Posted 1 year ago #

    Ok so this is a development machine runnin on a local server
    . Is it possible I will have to wait until I host it? I am going to be using Hostgator. And after I changed line 71. I got this error

    Fatal error: Uncaught exception 'Dropbox_Exception' with message 'The PHP curl functions not available!' in C:\xampp\htdocs\wordpress\wp-content\plugins\simple-dropbox-upload-form\inc\Dropbox\OAuth\Curl.php:48 Stack trace: #0 C:\xampp\htdocs\wordpress\wp-content\plugins\simple-dropbox-upload-form\inc\wpsdb_auth.php(71): Dropbox_OAuth_Curl->__construct('mh8bfs0l5u8dpnm', 'cnli9k1oeyiwo6k') #1 [internal function]: wpsdbAuth->choice('') #2 C:\xampp\htdocs\wordpress\wp-includes\plugin.php(403): call_user_func_array(Array, Array) #3 C:\xampp\htdocs\wordpress\wp-admin\admin-ajax.php(66): do_action('wp_ajax_choice') #4 {main} thrown in C:\xampp\htdocs\wordpress\wp-content\plugins\simple-dropbox-upload-form\inc\Dropbox\OAuth\Curl.php on line 48

  27. fhstudio
    Member
    Posted 1 year ago #

    if u have a team viewer account i will give u access to my files?

  28. hiphopsmurf
    Member
    Plugin Author

    Posted 1 year ago #

    I do have team viewer but that will not help in this instance. The last error you got was because you don't have CURL installed or enabled in your configuration. If you revert the previous file back to its original state, It should work when you upload your files to hostgator. Once you revert the file, disable the plugin so that it removes any configuration settings it may have set since I am assuming you are moving to a linux box that will not support the settings saved by this plugin in a windows environment. This will likely be the case for most plugins of the plugins you are settings if that plugin has saved the file path in windows format.

  29. fhstudio
    Member
    Posted 1 year ago #

    Got it. I kinda figured that. I will look into installing CURL for the time being. I appreciate your help and hard work to making Dropbox efficient.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic