Skip to content
This repository has been archived by the owner on Jun 27, 2019. It is now read-only.

Can't conect to Drop-ins App #7

Open
Vatarus opened this issue Jul 26, 2015 · 4 comments
Open

Can't conect to Drop-ins App #7

Vatarus opened this issue Jul 26, 2015 · 4 comments

Comments

@Vatarus
Copy link

Vatarus commented Jul 26, 2015

Hello

1- installed the Dropbox module.
2- made Drop-ins App.

dropbox2

3- inserted API keyt in the module settings.
4- started module in the space and got a problem.

dropbox

5- The logs are no errors.

@daglex
Copy link

daglex commented Jul 26, 2015

similar problems

@timvango
Copy link

Same problem

@alexnavratil
Copy link

Hey HumHub Community, I was faced with this problem too and I tried to figure out what's wrong. There's this variable "warning_on_posting_modal_confirm" in JavaScript which contains a an apostrophe. This apostrophe must be escaped.

Solution:
Open the following file: /var/www/humhub/protected/modules/dropbox/widgets/DropboxFileListerWidget.php
and change Line 59 from
Yii::app()->clientScript->setJavascriptVariable('warning_on_posting_modal_confirm', Yii::t('DropboxModule.widgets_DropboxFileListerWidget', "Yes, I'm sure"));

to

Yii::app()->clientScript->setJavascriptVariable('warning_on_posting_modal_confirm', Yii::t('DropboxModule.widgets_DropboxFileListerWidget', "Yes, I'm sure"));

Now refresh your browser and it should work.

@coldfuzion
Copy link

This did fix it, thank you - possible merge request?

alexnavratil added a commit to alexnavratil/humhub-modules-dropbox that referenced this issue Sep 19, 2015
escaped an apostrophe which fixed the following issue:
humhub-contrib#7 (comment)
41552013
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants