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

PraetorianFX’s picture

Me too...

My analytics is "conflict with FileField module".
My D6 use FileField version = "6.x-3.1".

Somebody help ??

dungiis’s picture

I have the same problem while uploading image from CCK after installing Mobile Tool module

twom’s picture

I 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

twom’s picture

Status: Active » Needs review

I 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...)

grahamba’s picture

Hi, 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.

twom’s picture

Assigned: Unassigned » twom

Hi,

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

grahamba’s picture

Hi 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

schedal’s picture

Also 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.

grahamba’s picture

Just 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.

twom’s picture

Status: Needs review » Fixed

Hi,

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!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.