After enabling the mobileplugin module, this message is displayed on a white screen, site-wide:

The File /[...]/sites/all/modules/mobileplugin/wurfl-php-1.r0/resources/sites/tmp/wurfl does not exist!!!

My system temp file is set to "/tmp"

To regain access to my site, I must disable the module manually in the database.

Comments

teemule’s picture

Assigned: Unassigned » teemule
Status: Active » Needs work

Sorry about that trouble! (btw your site was not down as the module activates only to the number 1 user automatically)
I had the same temporary setting in my tests and it worked.. will debug this more.

A work around:
Set a temporary path in mobileplugin/wurfl-php-1.r0/resources/wurfl-config.xml and make sure the directory exists and is writable.

SMonsen’s picture

I enabled the module and this is what I get:
The File […]/sites/all/modules/mobileplugin/wurfl-php-1.r0/resources/$$TMP does not exist!!!

Any work around for that?

cyberknat’s picture

Priority: Normal » Critical

Fresh site nothing (except for one iframe from the nytimes which i am going to get rid of) on it. own server-installed mobile garland..Looked fine. Installed the Mobile Plugin- and WSOD sitewide..can't even get into administer-am just spposed to rm mods now? bummer..

update: this may be more of my fault as i forgot to chmod in and make those file changes

update (despite the chmods) WSOD

ITS DEF this mod. I move it out of the modules folder and the WSOD goes away. Put it in and it returns again.

teemule’s picture

The automatic wurfl detection will definetly be ripped in the next release.. You need to manually check the wurfl-config.xml (comment 1) and the wurfl parsing requires up to 128M in php.ini memory_limit! Check your error log.

cyberknat’s picture

The automatic wurfl detection will definetly be ripped in the next release.. You need to manually check the wurfl-config.xml (comment 1)
-did that

and the wurfl parsing requires up to 128M in php.ini memory_limit! Check your error log.

Vi'd in and bumped it up to 128M

still no change. The result is still WSOD when entering the main url or any page.

cyberknat’s picture

clarify which DIR needs chmod edits

cyberknat’s picture

RAFA3L’s picture

same problem here and I chmod 777 moduleplugin -R

The File […]/sites/all/modules/mobileplugin/wurfl-php-1.r0/resources/$$TMP does not exist!!!

teemule’s picture

You have a bad setting in your wurfl-config, which is propably caused by not having write rights to the config-file during installing the module.

Look into: mobileplugin/wurfl-php-1.r0/resources/wurfl-config.xml
Change the directory in two places: <params>dir=/your/directory/choice</params>

I suggest a location somewhere else than in the modules folder which could cause very long scan times for modules. Also the temp folder could be a problem in case of cleaning it and corrupting the wurfl cache.

After make sure your apache has write rights to your chosen directory.

RAFA3L’s picture

Sorry teemule,

It work perfect, I just did chmod to the wrong folder and now only the right file is writable. Now work perfect! Today I'll try the image resizing

cyberknat’s picture

I am sorry but I attempted yet again following all steps and still a site wide whiteout..

cyberknat’s picture

I am sorry but I attempted yet again following all steps and still a site wide whiteout..

Update: Maybe users should be warned that this mod can cause WSOD issues

RAFA3L’s picture

I think I got the WSOD before, but I up the memory_limit to 128M and work fine now

cyberknat’s picture

apache has write rights to your chosen directory.

Can you include the edits and what httpd config file needs to have them

baxterjones’s picture

Had the problem but fixed it.
what i did:
created a folder called "TMP" under sites/files/
open file "wurfl-config.xml" and edit where text "$$TMP" is and insert the dir location of the "TMP" under files...
(find the "wurfl..." file under "*/sites/all/modules/mobileplugin/wurfl-php-1.r0/resources/"
so true path e.g. /var/www/*you-site-dir*/sites/files/TMP

hope this helps someone.. i sure struggled to get this working :)
o and also when the module is being installed it takes some time.. about 1-2 minutesbefore the module pages is shown again, reason is (what i assume) to copy the cache files over to the newly created "TMP" dir.
i also notice that you have to change permissions to a file while i installed (as mentioned above) but don't worry which file it will show an error message.
Good luck
B

abdiman’s picture

RAFA3L,
Could you explain which file you've CHMOD exactly?
I am not sure WSOD here is caused by memory_limit less than 128M, as my php.ini memory is only 64M. The module can run. Even I still get error, perhaps regarding wurfl-config.

venusrising’s picture

Same issue with the WSOD. This module really needs a patch applied. Above fixes did not work. Went in to PHPMYADMIN to manually disable

albertc’s picture

teemule’s picture

Assigned: teemule » Unassigned
Status: Needs work » Closed (won't fix)

In the future versions the WURFL will be separated from this module and provided only through it's own module.

Fixing the WURFL trouble will take some understanging and access to your server:

  1. Check you have a proper cache path in wurfl-php-1.r0/resources/wurl-config.xml and if needed manually change
  2. Check your httpd has write access to the set cache path
  3. Make sure your php.ini has
    max_execution_time = 120
    memory_limit = 128M
  4. Wait for couple of minutes to generate the cache

Mobile plugin will automatically only detect for user uid=1 so your site might not be unreachable while it looks like it for you.