Posted by gtmb 2 years 44 weeks ago
Having problems when installing the WordPress Mobile Pack 1.1.1.
Wordpress plugin says:
"Not be able to cache images"
"Not able to install theme files"
"please ensure that the web server has write- and execute-access to that directory."
Still i've set these directories with write, execute permissions (777 using cute ftp)
please help!
// gustav




Posted by gtmb 2 years ago
by the way my webhost has safe mode on which cannot be changed. is this the problem and how can I work around it?
Posted by James Pearce 2 years ago
Hi there,
In actual fact WordPress seems often to check the *ownership* of the files, as well as the permissions. So you may need to somehow chown the themes folder.
If you have FTP access to the server, you could simply upload the themes from the ZIP file into place yourself (that's all the installation is doing, after all). Deactivate and reactivate and the nagging red error will go away.
Does that make any sense?
Let me know how you get on.
Thanks
James
Posted by jdodyc 2 years ago
I'm having the same problem on upgrade, so I did like you said and uploaded the files manually and set ALL permissions to 777, but I'm still getting this error:
Critical WordPress Mobile Pack Issue
Could not install theme files to /public_html/wp-content/themes/mobile_pack_green. Please ensure that the web server has write- and execute-access to that directory.
(Deactivate and re-activate the WordPress Mobile Pack once resolved.)
Posted by James Pearce 2 years ago
Hmm - this is strange, since the code in the plugin does nothing more than check that the folder is writeable (and executable so it can be listed to check the files are inside)
Bear in mind that this message appears continually until the pack is deactivated and reactivated (which is when it does the check)
If you are sure that the v1.1.1 themes are all there and in the right place, you could also simply disable the check. Comment out lines 133 and 134 in wordpress-mobile-pack.php
Commenting is done in PHP by prepending lines with //
I know this is not satisfactory, but I've not been able to reproduce, and this is a last resort to get you going for now.
What are the permissions on the mobile_pack_green folder itself? Are they different to the themes parent?
Thanks
James
Posted by RESQBug 2 years ago
Greetings James:
What I'm finding with v1.1.1 of your plug-in is:
On a new "clean' installation of WP 2.8.2 it up upgrades or installs perfectly.
However, on "older" installations (2.8.0 upgraded to 2.8.1, etc) the error messages "Not be able to cache images", "Not able to install theme files" and "please ensure that the web server has write- and execute-access to that directory." Happens like clock work.
Hope this helps.
Cheers.
Allan
Posted by James Pearce 2 years ago
Hi guys,
I appreciate that the permissions thing is a real pain... and I can see that safe-mode doesn't help either.
I also realise that changing ownership is difficult unless you have shell access.
The plugin is over-cautious at install time because we were having trouble with people who thought things were OK, but in actual fact they weren't (and then WordPress failed spectacularly).
If you have 777 on those folders (and all the ones beneath), in actual fact, things may all be well. Perhaps I need to relax the error reporting for those cases where it's not perfect but things may still work.
James
Posted by Soren.Bang 2 years ago
FYI - this is still a problem in the new 1.1.2 version
Running a new WP installation on our own Apache under windows.
Posted by mbaiti 2 years ago
I have the same Problem. WP 2.8.4 on a Windows Apache Server
it's an conflict with the ownership rights on windows.
linux and windows is different in ownership.
i uncomment line 111 to 121 in the "wordpress-mobile-pack.php" then it works.
but one update -> overwrite this file -> crash
have u an solution for this problem?
PS: My other blog running under linux -> the plugin works great
thanks
mbaiti
Posted by jabba_29 2 years ago
Are there any updates on this issue. I made a clean install and have the same problem.
Changes permissions for the mentioned directories to 777 even, and still problem persists.
Posted by Soren.Bang 2 years ago
Just updated to 1.1.3 and it's still a problem on Windows.
Can a 'Ticket' on http://www.assembla.com/spaces/wordpress-mobile-pack/tickets be created for this error?
Posted by meier 2 years ago
Hello Wordpress Fans,
I got this problem also, and solved it. php-functions like is_writable() seem to behave a little diferent in safe mode. See my post check-writeable-dirs-install-fails-path-delimiter-needs-added
(I still needed to copy the theme files manually. the software created subdirs, but was not able to copy files into them. It not really clear to me why now.)
Hope this helps
Karsten Meier
-- Karsten Meier Handylearn Projects creates mobile software. www.handylearn-projects.de--
Handylearn Projects creates mobile software.
www.handylearn-projects.de
Posted by philstrahl 2 years ago
hey everybody!
i am running the current wordpress 2.8.6 and just as the posters above have the same problems installing the mobi pack, same issues with permission, also with setting any file to 777.
meier above me posted a fix as it seems but since i am no php-surgeon i feel not cunning enough to incorporate the changes on the right spots, so i was hoping the release got the fix in the meantime?
since i run my blog in a subfolder on the server ("/blog") i am guessing that this can be a part of the problem?
help is much appreciated! (i hope somebody still reads this old thread though....)
phil
Posted by katiekellert 2 years ago
Hi guys,
This seems like it could be a fantastic plugin, but I'm having the same problem.
I'm running WP 2.9.1 and WPMP 1.2.0, all the relevant folders are set to 777 and the ownership is correct, running on a Unix host.
I've managed to fix the cache is_writable error using Karsten Meier's fix (check-writeable-dirs-install-fails-path-delimiter-needs-added), but the /themes folder still generates the following error and I'm stumped:
That portion of my readiness audit code in wordpress-mobile-pack.php reads as follows:
$theme_dir = str_replace('/', DIRECTORY_SEPARATOR, get_theme_root()); $theme_does = ''; if (!file_exists($theme_dir)) { $theme_does = __("That directory does not exist.", 'wpmp'); } elseif (!is_writable($theme_dir)) { $theme_does = __("That directory is not writable.", 'wpmp'); } elseif (!is_executable($theme_dir) && DIRECTORY_SEPARATOR=='/') { $theme_does = __("That directory is not executable.", 'wpmp'); } if($theme_does!='') { $ready = false; $why_not[] = sprintf(__('<strong>Not able to install theme files</strong> to %s.', 'wpmp'), $theme_dir) . ' ' . $theme_does . ' ' . __('Please ensure that the web server has write- and execute-access to it.', 'wpmp'); }Thoughts?
Posted by cheshirestu 2 years ago
Hi
Same problem - tried alsorts, currently in wP 2.8.4. From reading this thread it seems to be a common enough issue.
Are there any updates?
Thanks
Stu
Posted by mmedia 1 year ago
hi, same problem.
Error reportings doesn´t motter because i can upload themes plugin manually to /wp-content/themes/
But...
I try to get in admin panel and WP tell me that:
Example: http://www.mydomain.com/wp-admin/themes.php?page=wpmp_switcher_admin
"Not enough permissions to access this page"
¿?
¿How can I fix that though shell access?
Thanks!
Posted by anselmo 1 year ago
It's a not documented change in PHP5:
"In php5, as opposed to php4, you can no longer rely on is_executable to check the executable bit on a directory in 'nix. You can still use the first note's method to check if a directory is traversable:
@file_exists("adirectory/.");"
Posted by toomanyairmiles 45 weeks ago
I'm experiencing the same problem with wordpress 3.1 and mobile pack 1.2.4
Both the directories have been made 777 so I'm guessing the problem is the directory owner - what does it need to be?
Posted by toomanyairmiles 45 weeks ago
I've spoken to my servers support people (safe mode is off) the owner of the files is correct and the directories are 777. Anyone have any thoughts?
Posted by xiaopy12 1 week ago
Christian Louboutin Sale dryhey