[SOLVED] Error "@todo TRANSLATIONS_FETCH_REQUEST_FAILED HTTP/1.0 301 Moved Permanently" when installing new languages

whitecat

Joined: 2013-01-21
Posts: 4
Posted: Mon, 2013-01-21 14:50

Hi there,

I'm currently testing Gallery 3 and stumbled across an error message when I tried to install more languages (French and Danish):

"@todo TRANSLATIONS_FETCH_REQUEST_FAILED HTTP/1.0 301 Moved Permanently"

There are different topics here which handle those TRANSLATIONS_FETCH_REQUEST_FAILED errors but none with an HTTP error 301. So I looked into the source and found the culprit in modules\gallery\helpers\l10n_client.php, line 24:

return "http://gallery.menalto.com/translations/$path";

Obviously the path has been moved to another location and whichever function opens it isn't able to handle with the HTTP response 301. I replaced above mentioned line with this one:

return "http://galleryproject.org/translations/$path";

and the language installation now worked.

Perhaps this helps other people having the same problem.

whitecat

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Tue, 2013-01-22 23:41

Fixed in the latest code - thanks! I've also added a workaround on the server side to let the old paths continue to work.
---
Problems? Check gallery3/var/logs
file a bug/feature ticket | upgrade to the latest code! | hacking G3? join us on IRC!