-
Notifications
You must be signed in to change notification settings - Fork 191
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
NoneType object has no attribute split #69
Comments
Okay, do you know which file has that problem? Do you have a complete stacktrace? If so, could you please paste it here? Also, Rosetta 0.7.1 was released, could you please try to upgrade and see if the problem disappears? |
Ok I just updated to 0.7.1 One other thing I noticed: Clicking the paginators kind of worked now but after about 4 clicks I would end up on the home page again. After just clicking "Save and translate next block" for 4 or 5 times, I finally got this error again:
Once the error appeared, it stays there. I restarted apache and tried again. This time it took 25 clicks before it happened. So I put a try except block around the line (57) and put a breakpoint into the except block. Then I restarted the apache server and clicked until the error happend. But this time it was a different error:
This is really weird, at this code rosetta doesn't seem to be involved. I tried again, this time the breakpoint was hit. settings.LANGUAGES_BIDI is ('he', 'ar', 'fa') I have no idea what these three languages are... my site uses 'en' and 'zh'. |
From further digging it seems that his has to do something with the cache storage value getting lost. I also found the note about Storages and DJango 1.4 in the README... I will try if setting |
Thanks for the feedback. Yes, please try either the Cache or the Session storage. Also, what is the value of CACHES in your settings? |
@mbi I don't think I have any, what should it be? |
Yes, that's most likely the problem: if you use the CacheBackend you should use a proper cache backend, e.g. Redis or Memcached. By default Django uses the LocMemem cache backend, which is tied to each server process (and is cycled when the server process is recycled). Which would explain why everything works for a while and then suddenly breaks. |
Yea I just changed it to database backend and now it is significantly slower but seems to work. Thanks a lot! |
Cheers! (You should install memcached if you get a chance) |
Hi all,
I'm using Django 1.4 and rosetta 0.6.8.
Somehow when I translate a few entries and click at the save button a few times, or even when I just click at the paginator links, after a few clicks I end up with this error message.
The problem can be resolved by restarting Apache.
Does anyone know what could be causing this?
The text was updated successfully, but these errors were encountered: