Closed (fixed)
Project:
Mobile Tools
Version:
6.x-1.8
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
6 Aug 2009 at 23:21 UTC
Updated:
4 Feb 2010 at 03:00 UTC
When I enable this module, I can not attach files to nodes. I get the following error after trying to post the file to the form.
Validation error, please try again. If this error persists, please contact the site administrator
When I disable this module, I can again upload files.
Is this a known issue? Anyone else have this trouble?
Comments
Comment #1
PraetorianFX commentedMe too...
My analytics is "conflict with FileField module".
My D6 use FileField version = "6.x-3.1".
Somebody help ??
Comment #2
dungiis commentedI have the same problem while uploading image from CCK after installing Mobile Tool module
Comment #3
twom commentedI have problems with inducing this error in my installation. I hope after the refactoring I am doing this will be fixed.
If you have a clue or can help me to debug this error, let me know!
Tom
Comment #4
twom commentedI fixed some errors in the dev version that fixes problems when ajax calls where being used.
Can you try it (make sure you have the latest version of the packaged dev...)
Comment #5
grahamba commentedHi, I too have this problem. Normal file attachments fail with the validation error and filefield attachments fail with an http error 0. I've tried the latest dev version of mobile tools and no improvement. As soon as I disable mobile tools attachments work properly. Mobile tools itself functions as expected.
Comment #6
twom commentedHi,
I just committed a new dev version (wait till it's packaged, or get the new mobile_tools.module file manually out cvs).
I disabled cache clearing on each page request... This could probably cause this problem... Can you test i?
Thx,
Tom
Comment #7
grahamba commentedHi Tom,
I grabbed the new file from cvs and in my initial testing that change seems to have solved my upload problems. I'll do some more extensive testing later but so far so good. Thanks!
Graham
Comment #8
schedal commentedAlso getting this problem, my belief is that it has to do with the fact that mobile-tools deletes the cache with EVERY page refresh... which is an even bigger problem as this makes the solution unusable for any high-traffic websites... but i think this is why the file upload will not work.
Comment #9
grahamba commentedJust a quick followup to say that the cache adjustments have solved the upload problem for me. Am I correct in that the change was to NOT delete the cache with every page request. This seems like a good thing. So when is mobile tools deleting the page cache? My mobile site has its own unique urls and a theme switch. The mobile version receives minimal traffic compared to the regular site where I definitely need page caching enabled due to traffic.
Comment #10
twom commentedHi,
I am glad the caching solved the issue. In fact the cleaning of the cache was a hack to allow theme switching if only 1 url is being used. When only 1 url is used and caching is enabled, the module cannot switch the theme, because the html is fetched from the cache.
When you have different url's for both mobile and desktop sites, this is no problem.
So the module does only clear cache if your mobile and desktop site are on the same url, and you do theme switching based on the mobile device.
No extra configuration is needed for this, just get the latest version!