All the steps of the installation went smoothly, but after setting up the Dropbox Account Settings, the send file tab was not created. It said the settings were saved, but nothing changed. I tried to manually type the link to the dropbox path /user/1/dropbox but is said "Access denied".

Any ideas?

Comments

ckaufman’s picture

Addition: All user permissions are checked as well

deviantintegral’s picture

Did you configure both the permissions at admin/user/permissions and at user/1/edit? There are both site-wide permissions and per-user permissions, so users can control who can send them files.

ckaufman’s picture

The permissions are configured in both the User Admin and User Edit screens for all Anonymous, Authenticated, and Admin users. I tried combinations just to make sure it wasn't something with the permissions and tried with both an Admin and Authenticated User account.

Is it something with the SSL cert? I assume that being able to see the Dropbox settings under the User Edit tab shows that the SSL is correct, but maybe not. I just used the built in SSL url, simply typing https instead of http and logging into drupal made everything run correctly until this point. After wrestling with the DrupalUpdater.php file and trying to point it to the Equifax file, I tried this and it worked, but could this be effecting any further install operations?

KrisBulman’s picture

Same problem here, my SSL cert is working fine and i'm hitting the site with https. permissions in both places are set properly, but am getting a "you are not authorized to access this page" error when attempting to reach "user/1/dropbox" or "user/3/dropbox" etc. The Send file link also does not show up.

When editing the profile and adding the dropbox settings, the page submits, but i'm not exactly sure the dropbox information is sticking.

KrisBulman’s picture

ckaufman : have you found the problem?

KrisBulman’s picture

I disabled SSL checking to see if that had any results, but it didn't. The form doesn't seem to be retaining any of the values submitted, it asks for email / password / roles / max files. Tried entering bogus information, and got same results.. empty form in profile.

KrisBulman’s picture

Priority: Normal » Critical
KrisBulman’s picture

If I enter just an email address and allowed role in the form on the user/edit page, here's the error that's returned:

stdClass Object ( [uid] => 1 [name] => admin [pass] => c2442202e7f1ccb35ae1b5ce91f977d1 [mail] => my_email@mydomain.com [mode] => 0 [sort] => 0 [threshold] => 0 [theme] => [signature] => [signature_format] => 0 [created] => 1227768232 [access] => 1142022867 [login] => 1142022067 [status] => 1 [timezone] => -14400 [language] => [picture] => [init] => [data] => a:2:{s:13:"form_build_id";s:37:"form-9aa7722be24a5ed2fd73ba72cf0a2549";s:7:"dropbox";a:4:{s:4:"mail";N;s:4:"pass";N;s:5:"roles";N;s:5:"flood";N;}} [form_build_id] => form-9aa7722be24a5ed2fd73ba71cf0a2348 [roles] => Array ( [2] => authenticated user ) )
deviantintegral’s picture

Unfortunately that output doesn't really help - I apparently left it in by accident in the last release. See #524656: Remove print_r() call when password field is left blank.

I'm going to see if I can replicate this problem on a bare Drupal installation.

deviantintegral’s picture

Category: support » bug
Status: Active » Needs review
StatusFileSize
new2.79 KB

There were a few issues in the user edit form which were causing problems. I've attached a patch which:

  • Properly saves Dropbox settings for users who haven't previously used Dropbox. If you created your account before the switch to password authentication, things would have worked properly.
  • Checks a few #default_value FAPI items with is_set() to prevent warnings.
  • Cleans up the default user data storage by setting the wrapper Dropbox array to NULL when updating a user.

Please test this and let me know if it works. You will know it is working properly if the {dropbox_users} table is properly updated. Thanks!

KrisBulman’s picture

ok, applied patch:

the Send File tab showed up, the user/pass saved
attempted to send file, got this:

Fatal error: Uncaught exception 'Exception' with message 'DropboxUploader requires the cURL extension.' in /sites/mydomain.com/modules/dropbox/DropboxUploader.php:48 Stack trace: #0 /sites/mydomain.com/modules/dropbox/dropbox.module(369): DropboxUploader->__construct('myemail@mydomain.com', 'mypassword') #1 /sites/mydomain.com/modules/dropbox/dropbox.module(308): dropbox_file_put(Object(stdClass), Object(stdClass), '/MySitename/mu...') #2 /includes/form.inc(769): dropbox_send_form_submit(Array, Array) #3 /includes/form.inc(409): form_execute_handlers('submit', Array, Array) #4 /includes/form.inc(119): drupal_process_form('dropbox_send_fo...', Array, Array) #5 /sites/mydomain.com/modules/dropbox/dropbox.module(228): drupal_get_form('dropbox_send_fo...', Object(stdClass)) #6 [internal function]: _dropbox_sen in /sites/mydomain.com/modules/dropbox/DropboxUploader.php on line 48
deviantintegral’s picture

Status: Needs review » Reviewed & tested by the community

Great!

You need to do as the error message says - install the cURL extension for PHP. It's required for the module to work properly. Contact your hosting provider if you're not sure how to do it.

KrisBulman’s picture

Status: Reviewed & tested by the community » Needs review

so after reading that error again, i installed php5-curl with apt, and restarted apache..

tried again, and file sent!

thanks!

KrisBulman’s picture

Status: Needs review » Reviewed & tested by the community
deviantintegral’s picture

Status: Reviewed & tested by the community » Fixed

Thanks for the testing - committed to HEAD.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.