feincms / feincms-elephantblog

A blog for FeinCMS
feinheit.ch/labs/
BSD 3-Clause "New" or "Revised" License
43 stars 38 forks source link

admin: entry save form has weird content in the action parameter, prevents saving #45

Closed weisjohn closed 9 years ago

weisjohn commented 9 years ago

Very odd issue that I'm having trouble tracking down. In my app's admin, I can create new entries, but when I try to save (edit and submit) them, I run into an issue. For some reason, the action field on the form is filled with some object data:

<form enctype="multipart/form-data" action="{'available_templates': (), 'TINYMCE_JS_URL': '/media/tinymce/jscripts/tiny_mce/tiny_mce.js', 'TINYMCE_CONTENT_CSS_URL': None, 'FEINCMS_FRONTEND_EDITING': True, 'FEINCMS_JQUERY_NO_CONFLICT': False, 'content_types': [(<django.utils.functional.__proxy__ object at 0x1088fed50>, 'richtextcontent'), (u'Entry Photo', 'entryphotocontent'), (u'File', 'entryfilecontent'), (<django.utils.functional.__proxy__ object at 0x1089dde90>, 'mediafilecontent')], 'FEINCMS_CONTENT_FIELDSET_NAME': 'FEINCMS_CONTENT', 'has_parent_attribute': False, 'model': <class 'elephantblog.models.Entry'>, 'TINYMCE_LINK_LIST_URL': None}" method="post" id="entry_form"><div style='display:none'>

Do you know what could be causing this? I'm having a huge problem understanding how to track this down. If I manually (with WebInspector) remove the contents of the action, then everything works perfectly again.

weisjohn commented 9 years ago

Another side-effect is that the TinyMCE editor doesn't load properly.

This seems to be to either be some sort of registration or configuration issue.

sbaechler commented 9 years ago

Which version of Django, FeinCMS and Elephantblog are you using?

weisjohn commented 9 years ago

@sbaechler sorry for the massively long delay in responding. I'm using Django 1.4.5, FeinCMS 1.5.0.pre1, elephantblog 0.1.0.

I know, I know, they're super old versions, but this is a legacy app that I'm maintaining, not writing. Thanks in advance for any help you can provide.

sbaechler commented 9 years ago

These are really old versions. Django 1.4 is a LTS version and is still supported. The current patch release is 1.4.19. FeinCMS is currently at 1.10.1. Try updating FeinCMS step by step. You should be able to safely update to FeinCMS 1.5.6 or newer and Elephantblog 1.0.1. Elephantblog is tested with different Django and FeinCMS configurations: https://github.com/feincms/feincms-elephantblog/blob/master/tests/tox.ini.

sbaechler commented 9 years ago

closing due to inactivity