Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lg is not defined #112

Closed
palvaneh opened this issue Aug 21, 2016 · 9 comments
Closed

lg is not defined #112

palvaneh opened this issue Aug 21, 2016 · 9 comments
Labels
bug Behaviors that do not meet expectation. done Issue is fixed. Will be closed in 7 days.

Comments

@palvaneh
Copy link

click on images causes:
laravel-filemanager:528 Uncaught ReferenceError: lg is not defined

@streamtw
Copy link
Member

Please post your screenshots here, thanks.

@palvaneh
Copy link
Author

script.blade.php line 389: $.prompt(lg.fck_select_integration);

@BinWang01
Copy link

Are you using the standalone button? I have encountered this error in that situation. In my scenario, after I initialized the button with $('#lfm').filemanager('image'); the error disappeared.

Here's what I had in my view:
Browse

<script src="/vendor/laravel-filemanager/js/lfm.js"></script>

$('#lfm').filemanager('image');

@creaz35
Copy link

creaz35 commented Sep 4, 2016

Hello,
I have exactly the same issue, i cannot view the file.

ReferenceError: lg is not defined when i click on the file name.

Tested on Firefox and Chrome.

@creaz35
Copy link

creaz35 commented Sep 4, 2016

How to fix it ?

@palvaneh
Copy link
Author

palvaneh commented Sep 4, 2016

I don't know how to fix problem, I decided to use laravel built in file manager :(

@streamtw
Copy link
Member

streamtw commented Sep 10, 2016

@bbryan0904 Did you integrate the standalone button successfully?
I have remove that script, since the situation seems to happen when integrating with FckEditor(depreciated version of CKEditor).
I want to know exactly how the error happened.

@streamtw streamtw added bug Behaviors that do not meet expectation. done Issue is fixed. Will be closed in 7 days. help wanted and removed help wanted labels Sep 10, 2016
@streamtw
Copy link
Member

streamtw commented Sep 12, 2016

Updated : I figured this out!
This error happens when no WYSIWYG editor is found.
For example, open a new tap and type in the route of file manager will then show the error.
It will be solved in v1.6.2 .

@streamtw
Copy link
Member

v1.6.2 were release today.
Close issue for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Behaviors that do not meet expectation. done Issue is fixed. Will be closed in 7 days.
Projects
None yet
Development

No branches or pull requests

4 participants