[3.2][RC] Dropbox Upload for Auto db Backup

A place for Extension Authors to post and receive feedback on Extensions still in development. No Extensions within this forum should be used within a live environment!
Anti-Spam Guide
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: Extensions Development rules

IMPORTANT FOR NEEDED EVENTS!!!
If you need an event for your extension please read this for the steps to follow to request the event(s)
User avatar
david63
Jr. Extension Validator
Posts: 12841
Joined: Thu Dec 19, 2002 8:08 am
Location: Lancashire, UK
Name: David Wood
Contact:

Re: [3.2][RC] Dropbox Upload for Auto db Backup

Post by david63 » Fri May 05, 2017 4:34 pm

Have you re-uploaded the vendor folder for this extension?
David
Remember: You only know what you know and - you don't know what you don't know!
My CDB Contributions | How to install an extension
I will not be accepting translations for any of my extensions in Github - please post any translations in the appropriate topic.
No support requests via PM or email or as they will be ignored

User avatar
WelshPaul
Registered User
Posts: 194
Joined: Tue Aug 19, 2014 2:09 pm

Re: [3.2][RC] Dropbox Upload for Auto db Backup

Post by WelshPaul » Fri May 05, 2017 4:51 pm

david63 wrote:
Fri May 05, 2017 4:34 pm
Have you re-uploaded the vendor folder for this extension?
Yes, multiple times.

I have deleted the entire extension from both servers and re-downloaded it from the link contained in the first post, re-uploaded and enabled but still nothing.

I have even deleted the dropbox app and created another, re-entering the new key, secret and access token but again, nothing. I'm stumped! Maybe i'm missing a dependancy server side? :?

User avatar
david63
Jr. Extension Validator
Posts: 12841
Joined: Thu Dec 19, 2002 8:08 am
Location: Lancashire, UK
Name: David Wood
Contact:

Re: [3.2][RC] Dropbox Upload for Auto db Backup

Post by david63 » Sat May 06, 2017 3:20 pm

After spending a large part of today looking into this I have been unable to re-create that error. My only thought is that it is something to do with your server set-up, but what it might be I have not got a clue.
David
Remember: You only know what you know and - you don't know what you don't know!
My CDB Contributions | How to install an extension
I will not be accepting translations for any of my extensions in Github - please post any translations in the appropriate topic.
No support requests via PM or email or as they will be ignored

Hartenheer
Registered User
Posts: 526
Joined: Fri Jan 23, 2015 12:23 pm
Name: Willem Hartman
Contact:

Re: [3.2][RC] Dropbox Upload for Auto db Backup

Post by Hartenheer » Thu Aug 10, 2017 2:35 pm

On the forum it is not possible, then we will go on here
Sorry, right extension now, get 404 code

If you download you will get the wrong url

Weergave naam:
Dropbox upload for autobackup
Schone naam:
david63/dropboxupload
Beschrijving:
Extends autobackup to allow the copying of the backup file to your Dropbox account
Versie:
2.1.0-rc1
Publicatiedatum:
2017-01-05
Licentie:
GPL-2.0
Benodigdheden
phpBB-versie:
>=3.2.0
PHP-versie:
>=5.4.0
Auteursinformatie

Naam:
David Wood
Rol:
Developer

Naam:
Kunal Varma
Homepage:
https://github.com/kunalvarma05/dropbox-php-sdk
Rol:
Creator - Dropbox stk


Image
Yours sincerely,

Image
If my English is bad, It is the fault of google :mrgreen: {NL}

User avatar
david63
Jr. Extension Validator
Posts: 12841
Joined: Thu Dec 19, 2002 8:08 am
Location: Lancashire, UK
Name: David Wood
Contact:

Re: [3.2][RC] Dropbox Upload for Auto db Backup

Post by david63 » Thu Aug 10, 2017 3:11 pm

Hartenheer wrote:
Thu Aug 10, 2017 2:35 pm
now, get 404 code
You can ignore that - it is a minor bug in that version and does not affect the running of this extension.
Hartenheer wrote:
Thu Aug 10, 2017 2:35 pm
If you download you will get the wrong url
Download what from where?
David
Remember: You only know what you know and - you don't know what you don't know!
My CDB Contributions | How to install an extension
I will not be accepting translations for any of my extensions in Github - please post any translations in the appropriate topic.
No support requests via PM or email or as they will be ignored

Hartenheer
Registered User
Posts: 526
Joined: Fri Jan 23, 2015 12:23 pm
Name: Willem Hartman
Contact:

Re: [3.2][RC] Dropbox Upload for Auto db Backup

Post by Hartenheer » Thu Aug 10, 2017 3:24 pm

I hope it's going to work.
Will you let it know.

Here is the download I used earlier

Image
Yours sincerely,

Image
If my English is bad, It is the fault of google :mrgreen: {NL}

janus_zonstraal
Registered User
Posts: 1655
Joined: Sat Aug 30, 2014 1:30 pm

Re: [3.2][RC] Dropbox Upload for Auto db Backup

Post by janus_zonstraal » Sat Aug 12, 2017 10:02 am

David63 I take a look in the errorlogs from Hartenheer and see the following error(s)

Code: Select all

PHP Fatal error:  Class 'Kunnu\Dropbox\DropboxApp' not found in /home/willem2q/deijmuidennaar.nl/ext/david63/dropboxupload/event/listener.php on line 145
Sorry! My English is bat ;) !!!

User avatar
david63
Jr. Extension Validator
Posts: 12841
Joined: Thu Dec 19, 2002 8:08 am
Location: Lancashire, UK
Name: David Wood
Contact:

Re: [3.2][RC] Dropbox Upload for Auto db Backup

Post by david63 » Sat Aug 12, 2017 10:50 am

janus_zonstraal wrote:
Sat Aug 12, 2017 10:02 am
David63 I take a look in the errorlogs from Hartenheer and see the following error(s)

Code: Select all

PHP Fatal error:  Class 'Kunnu\Dropbox\DropboxApp' not found in /home/willem2q/deijmuidennaar.nl/ext/david63/dropboxupload/event/listener.php on line 145
That would suggest that the vendor folder is missing from the extension - the download HAS to be from the release and not from the git branch or Composer has to be run
David
Remember: You only know what you know and - you don't know what you don't know!
My CDB Contributions | How to install an extension
I will not be accepting translations for any of my extensions in Github - please post any translations in the appropriate topic.
No support requests via PM or email or as they will be ignored

User avatar
WelshPaul
Registered User
Posts: 194
Joined: Tue Aug 19, 2014 2:09 pm

Re: [3.2][RC] Dropbox Upload for Auto db Backup

Post by WelshPaul » Sun Aug 13, 2017 9:16 am

Whoa... This is the error I had?

The vendor file must be in the extension? I downloaded the git version and thought the required vendor file that you mentioned was the one in the phpBB root! That's why it never worked for me then!!

EDIT: Downloaded this version and it works now. :|

Hartenheer
Registered User
Posts: 526
Joined: Fri Jan 23, 2015 12:23 pm
Name: Willem Hartman
Contact:

Re: [3.2][RC] Dropbox Upload for Auto db Backup

Post by Hartenheer » Sun Aug 13, 2017 5:20 pm

It works great now.
With the help of Janus_zonstraal
Yours sincerely,

Image
If my English is bad, It is the fault of google :mrgreen: {NL}

User avatar
david63
Jr. Extension Validator
Posts: 12841
Joined: Thu Dec 19, 2002 8:08 am
Location: Lancashire, UK
Name: David Wood
Contact:

Re: [3.2][RC] Dropbox Upload for Auto db Backup

Post by david63 » Sun Aug 13, 2017 5:56 pm

Hartenheer wrote:
Sun Aug 13, 2017 5:20 pm
It works great now.
With the help of Janus_zonstraal
If you had used the download link in the OP it would have worked all along.
David
Remember: You only know what you know and - you don't know what you don't know!
My CDB Contributions | How to install an extension
I will not be accepting translations for any of my extensions in Github - please post any translations in the appropriate topic.
No support requests via PM or email or as they will be ignored

janus_zonstraal
Registered User
Posts: 1655
Joined: Sat Aug 30, 2014 1:30 pm

Re: [3.2][RC] Dropbox Upload for Auto db Backup

Post by janus_zonstraal » Sun Aug 13, 2017 6:07 pm

If you had used the download link in the OP it would have worked all along.
For non English speaking people it is not always so simple ;)
Sorry! My English is bat ;) !!!

User avatar
WelshPaul
Registered User
Posts: 194
Joined: Tue Aug 19, 2014 2:09 pm

Re: [3.2][RC] Dropbox Upload for Auto db Backup

Post by WelshPaul » Mon Aug 14, 2017 9:55 am

Well it worked the first time. The second database backup was successful but the dropbox backup failed, logs display the following error:
Dropbox returned the error
»» Error in call to API function "files/upload_session/finish": HTTP header "Dropbox-API-Arg": cursor.offset: expected integer, got float
EDIT:
Think I found the problem. Opened the dropbox.php file and replaced:
$chunkSize = $fileSize / 2;

With:
$chunkSize = intval($fileSize / 2);

Hartenheer
Registered User
Posts: 526
Joined: Fri Jan 23, 2015 12:23 pm
Name: Willem Hartman
Contact:

Re: [3.2][RC] Dropbox Upload for Auto db Backup

Post by Hartenheer » Tue Aug 15, 2017 7:34 am

WelshPaul wrote:
Mon Aug 14, 2017 9:55 am
Well it worked the first time. The second database backup was successful but the dropbox backup failed, logs display the following error:
Dropbox returned the error
»» Error in call to API function "files/upload_session/finish": HTTP header "Dropbox-API-Arg": cursor.offset: expected integer, got float
EDIT:
Think I found the problem. Opened the dropbox.php file and replaced:
$chunkSize = $fileSize / 2;

With:
$chunkSize = intval($fileSize / 2);
After a test, the time adjusted for a backup.
1x he skipped, nothing done
Just let it go and work fine again
Yours sincerely,

Image
If my English is bad, It is the fault of google :mrgreen: {NL}

User avatar
WelshPaul
Registered User
Posts: 194
Joined: Tue Aug 19, 2014 2:09 pm

Re: [3.2][RC] Dropbox Upload for Auto db Backup

Post by WelshPaul » Tue Aug 15, 2017 2:55 pm

Hartenheer wrote:
Tue Aug 15, 2017 7:34 am
WelshPaul wrote:
Mon Aug 14, 2017 9:55 am
Well it worked the first time. The second database backup was successful but the dropbox backup failed, logs display the following error:
Dropbox returned the error
»» Error in call to API function "files/upload_session/finish": HTTP header "Dropbox-API-Arg": cursor.offset: expected integer, got float
EDIT:
Think I found the problem. Opened the dropbox.php file and replaced:
$chunkSize = $fileSize / 2;

With:
$chunkSize = intval($fileSize / 2);
After a test, the time adjusted for a backup.
1x he skipped, nothing done
Just let it go and work fine again
I'm using php 7.1.7, I always get the error unless I make the change posted above.

Post Reply

Return to “Extensions in Development”

Who is online

Users browsing this forum: Galixte de EzCom, rohde, VSE and 24 guests

cron