dotMobimobiThinkingmobiForgemobiReadyDeviceAtlasgoMobi

Posted by meier 2 years 14 weeks ago

pic
 meier
mobiForge Enthusiast
Posts: 10
Joined: 2 years ago
[offline]

Hello Mobile Pack Developers,

when I installed the mobile pack 1.1.3 (on WP 2.8.5), it complains about not writable directories even when they had rights of 777.
I was able to fix it in the following way:
The documentation of the php function is_writable mention in the comments that this function should get the name with a trailing slash when it is a directory.
It is important when there is safe_mode restriction in effect.

So I added a DIRECTORY_SEPARATOR at the end of the path construction on several occurences like this:
wpmp_transcoder.php:
is_writable($dir = $dir = dirname(__FILE__) . DIRECTORY_SEPARATOR . 'c' . DIRECTORY_SEPARATOR)

The same in this file:
wordpress-mobile-pack.php
function wordpress_mobile_pack_readiness_audit(), for $cache_dir and $theme_dir
and in function
wordpress_mobile_pack_directory_copy_themes()

After the fixes I was able to install the mobile pack.

Please include this for your next release

Regards

Karsten Meier