-
Notifications
You must be signed in to change notification settings - Fork 35
Can not add Latest Blog Entries plugin, crashes on "save" and is created empty #49
Comments
@neaai I too have run into this issue. The way the authors have chosen to implement this plugin, it will fail with stock installs with SQLite or MySQL. However, for MySQL, you can fix this issue by installing Time Zone Support into the database server. See here for a blog post I've found useful in addressing this: http://www.larryullman.com/2011/05/27/utc-and-time-zone-support-in-mysql/ Once you've installed TZ support in MySQL, it works like a champ. I don't know if it is possible to fix SQLite to work with this plugin, sorry. |
@mkoistinen Thank you and regards. |
More on this issue, The database used in the tests was sqlite, unchanged from what the cms installer put there initially. |
The troublemaker is line 136 in models.py |
I have tried this several times and in different installations.
How I replicate this everytime with the same results is like this:
I tried this also (but I don't know if this is related to the above):
I got the following error lines:
Traceback (most recent call last):
File "", line 1, in
File "/usr/local/marvian/lessons/zarfi/env_zarfi/local/lib/python2.7/site-packages/django/db/models/query.py", line 71, in repr
data = list(self[:REPR_OUTPUT_SIZE + 1])
File "/usr/local/marvian/lessons/zarfi/env_zarfi/local/lib/python2.7/site-packages/django/db/models/query.py", line 96, in iter
self._fetch_all()
File "/usr/local/marvian/lessons/zarfi/env_zarfi/local/lib/python2.7/site-packages/django/db/models/query.py", line 854, in _fetch_all
self._result_cache = list(self.iterator())
File "/usr/local/marvian/lessons/zarfi/env_zarfi/local/lib/python2.7/site-packages/django/db/models/query.py", line 220, in iterator
for row in compiler.results_iter():
File "/usr/local/marvian/lessons/zarfi/env_zarfi/local/lib/python2.7/site-packages/django/db/models/sql/compiler.py", line 709, in results_iter
for rows in self.execute_sql(MULTI):
File "/usr/local/marvian/lessons/zarfi/env_zarfi/local/lib/python2.7/site-packages/django/db/models/sql/compiler.py", line 782, in execute_sql
cursor.execute(sql, params)
File "/usr/local/marvian/lessons/zarfi/env_zarfi/local/lib/python2.7/site-packages/django/db/backends/util.py", line 69, in execute
return super(CursorDebugWrapper, self).execute(sql, params)
File "/usr/local/marvian/lessons/zarfi/env_zarfi/local/lib/python2.7/site-packages/django/db/backends/util.py", line 53, in execute
return self.cursor.execute(sql, params)
File "/usr/local/marvian/lessons/zarfi/env_zarfi/local/lib/python2.7/site-packages/django/db/utils.py", line 99, in exit
six.reraise(dj_exc_type, dj_exc_value, traceback)
File "/usr/local/marvian/lessons/zarfi/env_zarfi/local/lib/python2.7/site-packages/django/db/backends/util.py", line 53, in execute
return self.cursor.execute(sql, params)
File "/usr/local/marvian/lessons/zarfi/env_zarfi/local/lib/python2.7/site-packages/django/db/backends/sqlite3/base.py", line 450, in execute
return Database.Cursor.execute(self, query, params)
OperationalError: no such table: aldryn_blog_latestentriesplugin
I hope this helps.
Regards.
The text was updated successfully, but these errors were encountered: