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

Bad URL generated in the Image picker popup #29

Open
tobiaghiraldini opened this issue Jul 22, 2017 · 5 comments
Open

Bad URL generated in the Image picker popup #29

tobiaghiraldini opened this issue Jul 22, 2017 · 5 comments

Comments

@tobiaghiraldini
Copy link

tobiaghiraldini commented Jul 22, 2017

The image picker, after choosing the image from the filer media library, generates a bad url in the form of 0<!-- fn5oKSUxu1GBDpdmY1wB -->4/ and the image is not displayed nor added to the HTMLField content.
schermata 2017-07-22 alle 15 16 38
schermata 2017-07-22 alle 15 16 23

As a temporary, yet very uncomfortable, workaround it's possible to look into the image properties, copy the canonical_url, and paste it in place of the wrong generated url.

I wonder if I'm missing some important info here...

I believe everything is correctly setup:
settings.py

FILER_CANONICAL_URL = 'sharing/'
CKEDITOR_SETTINGS = {
    'skin': 'moono',
    'toolbar_HTMLField': [
        ['Bold', 'Italic', 'Underline', 'Blockquote', '-', 'Subscript', 'Superscript', '-', 'RemoveFormat'],
        ['Undo', 'Redo'],
        ['ShowBlocks'],
        ['Format', 'Styles'],
        ['FilerImage', 'HorizontalRule', 'Table']
    ],
    'extraPlugins': 'filerimage',
    'removePlugins': 'image'
}

urls.py

urlpatterns = [
    url(r'^filer/', include('filer.urls')),
    url(r'^filebrowser_filer/', include('ckeditor_filebrowser_filer.urls')),
]

Any clue?

@yakky
Copy link
Member

yakky commented Jul 28, 2017

@tobiaghiraldini what are the Django and django-filer version?

@tobiaghiraldini
Copy link
Author

tobiaghiraldini commented Aug 7, 2017

Hi @yakky , sorry for delay.
Here are the versions I'm using:
Django 1.8.18.1
django-filer 1.2.7.1
Both requirements versions are the ones installed from the Divio add-on system, when installing Django-CMS.
Hopefully with your help we'll find a solution to this.
Thanks

@yakky
Copy link
Member

yakky commented Aug 12, 2017

@tobiaghiraldini can't reproduce this on a standard project with same requirements off divio cloud.
Is your project a plain divio cloud one, which boilerplate are you using?

@oesah
Copy link

oesah commented Sep 10, 2017

same issue here.. Mine says <html><head></head><body>0</body></html>631/

Any solutions? This is in production for my client, so it's important to me.

@yakky
Copy link
Member

yakky commented Jan 3, 2018

@oesah on divio cloud or on a normal django project?

@yakky yakky added the type: bug label Jan 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants