Deleted Dropbox repository

Deleted Dropbox repository

by Leanne de Guerrero -
Number of replies: 6

I am a complete newby to Moodle and I have managed to delete the Dropbox repository from my boss's new account !

DropBox is not on the 'manage repositories' list anymore.  How can I reinstall it.

Average of ratings: -
In reply to Leanne de Guerrero

Re: Deleted Dropbox repository

by Ken Task -
Picture of Particularly helpful Moodlers

If I am following you correctly, one could try this:

Find the same version of Moodle @ https://download.moodle.org/

As close as you can to the version of Moodle you are running cause everything core code does have a version.php file.

Download and unzip
In the unzipped folder (moodle), you should find a repository/dropbox folder/directory.
Zip only the dropbox folder.
Upload your manually created dropbox.zip file to your server code/repository/ directory.
Unzip.   Make sure that action creates a 'dropbox' directory.
Set ownerships/permissions (recursively) on the newly unzipped dropbox directory to match that of other directories at same location.

That should throw you as admin into an environment check and then present you will a screen to install dropbox.

Fingers crossed it will re-appear.

Might need to be re-enabled and re-configured after that.

'SoS', Ken

In reply to Ken Task

Re: Deleted Dropbox repository

by Leanne de Guerrero -
Ken,

Thank you soo much - it has worked !

Leanne
In reply to Leanne de Guerrero

Re: Deleted Dropbox repository

by Leanne de Guerrero -
Ken,

You wouldn't know how to fix the error 400 'No scope requested can be granted for this app.' when we try to log in to DropBox?

Thanks

Leanne
In reply to Leanne de Guerrero

Re: Deleted Dropbox repository

by Ken Task -
Picture of Particularly helpful Moodlers

Did say it might need to be re-configured! smile

https://docs.moodle.org/310/en/Dropbox_repository

Google search of issue found this:

https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-link-to-moodle-login-error-400/td-p/462864

As is true of most repositories, config has to be done at both ends ... in this case, moodle is one end and dropbox account config is the other end.

'SoS', Ken


In reply to Leanne de Guerrero

Re: Deleted Dropbox repository

by Ken Task -
Picture of Particularly helpful Moodlers

Welcome!   Do the following *now* ...

make a minimal backup of your site ... minimal is code directory archive and a database dump.

https://docs.moodle.org/310/en/Site_backup

Download the backup but keep at least one on server.

IF ... IF ... you ever do a 'boo-boo' like the repo, you have all the code folders in that backup and version will match for sure. smile

Also, it has always been advised that if you are not to use something ... hide or disable it.   Don't delete ... especially if it's core code! smile

'SoS', Ken