I've Just installed Gallery2 but i keeps comming with errors when I try to install a language (tried Dutch and Enlish (UK)) and everytime the following errors:
Failed to install language packages for core plugin because the following files/directories could not be modified:
modules/core-lang-nl-18153-18173.package
Failed to install language packages for gd plugin because the following files/directories could not be modified:
modules/gd-lang-nl-15342-17828.package
Failed to install language packages for imagemagick plugin because the following files/directories could not be modified:
modules/imagemagick-lang-nl-17028-18173.package
Failed to install language packages for netpbm plugin because the following files/directories could not be modified:
modules/netpbm-lang-nl-17028-18174.package
Failed to install language packages for rewrite plugin because the following files/directories could not be modified:
modules/rewrite-lang-nl-15945-18174.package
Failed to install language packages for matrix plugin because the following files/directories could not be modified:
themes/matrix-lang-nl-15342-18175.package
Failed to install language packages for core plugin because the following files/directories could not be modified:
modules/core-lang-nl-18153-18173.package
Failed to install language packages for gd plugin because the following files/directories could not be modified:
modules/gd-lang-nl-15342-17828.package
Failed to install language packages for imagemagick plugin because the following files/directories could not be modified:
modules/imagemagick-lang-nl-17028-18173.package
Failed to install language packages for netpbm plugin because the following files/directories could not be modified:
modules/netpbm-lang-nl-17028-18174.package
Failed to install language packages for rewrite plugin because the following files/directories could not be modified:
modules/rewrite-lang-nl-15945-18174.package
Failed to install language packages for matrix plugin because the following files/directories could not be modified:
themes/matrix-lang-nl-15342-18175.package
I did CHMOD 777 the modules/*/po and themes/*/po folders and I can install plugins.
what is wrong?
THanks Rick
Posts: 18
The forum index says that I have 1 reply from david968 but I can't see the reply???
Thanks
Rick
Posts: 16503
It was probably spam and he was banned. That's the only reason a post would go missing on these forums.
As for what's wrong. I can only think there are still directories/files that cannot be changed. That's the only reason Gallery would report that the files/directories could not be modified. Double/triple check permissions.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 18
it's only the folders modules/*/po and themes/*/po that should be 777 or should I also do something with the files in there?
Posts: 16503
Try modules/* and all sub-directories. And if there are existing files, they will need to be chmodded too, to 666
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 18
Don't you get then any security issues? you make it writable to all.
Posts: 16503
It depends on how your server is setup.
The other thing you can do is grab the HUGE download with everything, all plugins, all language files, etc and upload that:
http://codex.gallery2.org/Gallery2:Download#Packages
Previously, did you chmod all the files/directories below the po directories or did you just chmod the po directories? Also, if those po directories don't exist, you can't chmod them and the /modules/* directories would need to be writable by the webserver.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 18
I did what was told when I wanted to install the languages:
cd webserverfolder\gallery2
CHMOD -R 777 modules/*/po
CHMOD -R 777 themes/*/po
never was spoken about more files or subfolders zo no I didn't do that but I try first the full version. thinking of security I think it's not good to chmod all the files and folders 777 and 666.
Posts: 18
Today I uploaded the full version to the site and installed all the modules that were availeble during installation. after that I dit
cd /webserverfolder/gallery2
CHMOD -R 777 modules/*/po
CHMOD -R 777 themes/*/po
And ik could update the plugin list. After that in the language settings I saw all the installed languaged. sellected Nederlands (dutch) then upgrade and the error still stays nobody that knows the solution?
also why I select Nederlands as default language nothing changes.
Posts: 16503
Post a link to phpinfo and show who PHP is running as. This link explains how:
http://codex.gallery2.org/Gallery2:Security#Learn_the_Basics_about_your_Webserver
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 18
here is the link: http://www.magic-solutions.nl/info.php
Posts: 16503
Try getting rid of your open_basedir restrictions and working from there.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 18
The open_basedir was modified by my provider problem stays or doe I have to reinstall the whole thing?
Posts: 16503
It's trying to write directly to your /modules directory. chmod 777 your modules directory and it will work
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 18
Modules directory is already 777 since the beginning that was what I hoped to solve the error but isn't the solution.
any more ideas?
Posts: 16503
My last one, which I suggested before:
chmod -R 777 modules/*
If it works, then you can start narrowing down what you need to tighten up. If it doesn't work, then you can change permissions back.
find . -type f | xargs chmod 644
find . -type d | xargs chmod 755
If it doesn't work, then ask you host why a php script can't write to a directory after it's been set to 777 as it sounds like they have something odd setup.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 18
that works and is needed for themes aswell. now finding the file/folder that gives the problems thanks for so far
Posts: 18
Ok id did the :
find . -type f | xargs chmod 644
find . -type d | xargs chmod 755
and chmod 777 the po folders, the modules and the themes folder and it works. So what was wrong nooo idea.
One final question. When I change the default language the site stays in english. Doesn't mather if I'm logged on or not and on a nother pc it stays in english.
Thanks
Posts: 16503
Try different browsers?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 18
IE and FF both give me English instead of dutch.
Posts: 16503
Can you PM (click Write to author) me login details for your Gallery and I'll see if I get any more information about why that might be.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 16503
I'm wondering if you have any other locales installed on your system. I don't know if you have Debian or what, but take a look at this quick tutorial:
http://people.debian.org/~schultmc/locales.html
If you're not root on this server, talk to your host to verify that locales are installed.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 18
Locales are now installd en_US.UTF-8 UTF-8 and nl_NL.UTF-8 UTF-8.
Posts: 16503
hmm, I don't know why it's not working.
http://www.php.net/manual/en/gettext.requirements.php
I don't know what you have planned for Gallery, but you may want to take a look at G3. The mechanism in place for translations is much, much better.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 18
The most interessting functions for me are the cart and the bridge to joomla if these ar there for G3 then it's worth trying.
Posts: 16503
There's something of a cart, but yeah, nothing like what's available in G2 yet. And G3 can't integrate with any other software just yet.
I wish I had more experience with trying to get translations to work. On my VPS I just needed to get locales installed. Though I don't recall if I had to reboot the server afterward or not. I don't even have a gettext program installed, just gettext support in PHP. I do recall installing all locales though and not just a couple of them.
___________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 16503
I see you got it working! What did you end up having to do to get it working?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 18
I really don't know. I didn't do anything and my host also didn't do anything maybe the server did something on it's own. but it's working. thanks for all your help.
Posts: 16503
Yeah, maybe it just took awhile or some service had to restart. Great to hear it's working!
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here