Language update problems

r_ekkie

Joined: 2009-11-08
Posts: 18
Posted: Mon, 2009-11-09 20:41

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

 
r_ekkie

Joined: 2009-11-08
Posts: 18
Posted: Wed, 2009-11-11 21:34

The forum index says that I have 1 reply from david968 but I can't see the reply???

Thanks
Rick

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Thu, 2009-11-12 00:48

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

 
r_ekkie

Joined: 2009-11-08
Posts: 18
Posted: Thu, 2009-11-12 07:54

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?

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Thu, 2009-11-12 11:35

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

 
r_ekkie

Joined: 2009-11-08
Posts: 18
Posted: Thu, 2009-11-12 23:06

Don't you get then any security issues? you make it writable to all.

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Thu, 2009-11-12 23:15

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

 
r_ekkie

Joined: 2009-11-08
Posts: 18
Posted: Fri, 2009-11-13 15:55

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.

 
r_ekkie

Joined: 2009-11-08
Posts: 18
Posted: Fri, 2009-11-13 15:59

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.

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Fri, 2009-11-13 17:40

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

 
r_ekkie

Joined: 2009-11-08
Posts: 18
Posted: Fri, 2009-11-13 23:18
 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Mon, 2009-11-16 16:58

Try getting rid of your open_basedir restrictions and working from there.

____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
r_ekkie

Joined: 2009-11-08
Posts: 18
Posted: Tue, 2009-11-17 16:57

The open_basedir was modified by my provider problem stays or doe I have to reinstall the whole thing?

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Tue, 2009-11-17 17:14
Quote:
Failed to install language packages for gd plugin because the following files/directories could not be modified:
modules/gd-lang-nl-15342-17828.package

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

 
r_ekkie

Joined: 2009-11-08
Posts: 18
Posted: Tue, 2009-11-17 17:52

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?

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Tue, 2009-11-17 18:02
Quote:
any more ideas?

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

 
r_ekkie

Joined: 2009-11-08
Posts: 18
Posted: Tue, 2009-11-17 18:52

that works and is needed for themes aswell. now finding the file/folder that gives the problems thanks for so far

 
r_ekkie

Joined: 2009-11-08
Posts: 18
Posted: Tue, 2009-11-17 19:12

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

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Tue, 2009-11-17 19:19

Try different browsers?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
r_ekkie

Joined: 2009-11-08
Posts: 18
Posted: Tue, 2009-11-17 19:45

IE and FF both give me English instead of dutch.

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Tue, 2009-11-17 23:34

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

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Wed, 2009-11-18 14:27

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

 
r_ekkie

Joined: 2009-11-08
Posts: 18
Posted: Wed, 2009-11-18 20:45

Locales are now installd en_US.UTF-8 UTF-8 and nl_NL.UTF-8 UTF-8.

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Wed, 2009-11-18 21:10

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

 
r_ekkie

Joined: 2009-11-08
Posts: 18
Posted: Wed, 2009-11-18 21:14

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.

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Wed, 2009-11-18 21:36

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

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Thu, 2009-11-19 17:05

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

 
r_ekkie

Joined: 2009-11-08
Posts: 18
Posted: Thu, 2009-11-19 21:28

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.

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Thu, 2009-11-19 21:45

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