Unusual issue regarding locales

Installation issues with WoWRoster

Unusual issue regarding locales

Postby ouija » Thu Jun 25, 2009 11:22 am

Hi,

I just installed WoWroster 2.0.2 and discovered all the menu headers were actually titled "{ Menu header 01 }" and so on. I removed everything and have begun the installation procedure again and it looks like the problem lies with the locales. On installation Step 2, the locale selection dropdown is completely empty. I couldn't find much info on this and thought I'd post it up to see if anyone had any ideas.

My webhost is running PHP 5.2.9. and conf.php permissions are set to 666, but the file is empty anyway at this stage of the installation. All files in the localization folder have read permissions as do the php files in the roster directory.

Thanks
ouija
WR.net Apprentice
WR.net Apprentice
 
Posts: 6
Joined: Thu Jun 25, 2009 11:05 am

Re: Unusual issue regarding locales

Postby zanix » Thu Jun 25, 2009 6:36 pm

Seems like the localization folder and its files might have been munged during the upload
I would upload these files again
Read the Forum Rules, the WiKi, and Search before posting!
WoWRoster v2.1 - SigGen v0.3.3.523 - WoWRosterDF
User avatar
zanix
Admin
Admin
WoWRoster.net Dev Team
WoWRoster.net Dev Team
UA/UU Developer
UA/UU Developer
 
Posts: 5546
Joined: Mon Jul 03, 2006 8:29 am
Location: Idaho Falls, Idaho
Realm: Doomhammer (PvE) - US

Re: Unusual issue regarding locales

Postby ouija » Thu Jun 25, 2009 11:51 pm

Well I re-uploaded the whole lot but I'll give that another go.

[edit] No luck. Removed and reuploaded the whole localization folder but the dropdown list is still completely empty.
ouija
WR.net Apprentice
WR.net Apprentice
 
Posts: 6
Joined: Thu Jun 25, 2009 11:05 am

Re: Unusual issue regarding locales

Postby zanix » Fri Jun 26, 2009 1:09 am

That is odd
Is there anyway I can get you to give me your Roster URL, so I can see this myself?
Read the Forum Rules, the WiKi, and Search before posting!
WoWRoster v2.1 - SigGen v0.3.3.523 - WoWRosterDF
User avatar
zanix
Admin
Admin
WoWRoster.net Dev Team
WoWRoster.net Dev Team
UA/UU Developer
UA/UU Developer
 
Posts: 5546
Joined: Mon Jul 03, 2006 8:29 am
Location: Idaho Falls, Idaho
Realm: Doomhammer (PvE) - US

Re: Unusual issue regarding locales

Postby ouija » Fri Jun 26, 2009 1:26 am

Sure, not a problem. It's www.dcxguild.co.uk/roster

Thanks for looking into it :)
ouija
WR.net Apprentice
WR.net Apprentice
 
Posts: 6
Joined: Thu Jun 25, 2009 11:05 am

Re: Unusual issue regarding locales

Postby zanix » Fri Jun 26, 2009 3:53 am

Hmmm, I can't see anything just from the URL :frown:

Would you ok if I had ftp access to your server?
You can PM me with the details
Read the Forum Rules, the WiKi, and Search before posting!
WoWRoster v2.1 - SigGen v0.3.3.523 - WoWRosterDF
User avatar
zanix
Admin
Admin
WoWRoster.net Dev Team
WoWRoster.net Dev Team
UA/UU Developer
UA/UU Developer
 
Posts: 5546
Joined: Mon Jul 03, 2006 8:29 am
Location: Idaho Falls, Idaho
Realm: Doomhammer (PvE) - US

Re: Unusual issue regarding locales

Postby tuigii » Fri Jun 26, 2009 10:02 am

roster/localization/languages.php exists (can check that from here).
So I presume that de enUS, deDE and frFR also exists.

I presumed that ROSTER_BASE wasn't defined. But then, index.php couldn't call install.php.....
I'll bet answers can be found in the server error of the we server - ouija, did you look into iot ?

ouija, this is what you could do:

Just before line 524 (install.php) , enter this:

Code: Select all
echo ROSTER_BASE . 'localization' . DIR_SEP . $locale_desc['type'] . '.php';


So, it will look like
Code: Select all
    foreach( $LOCALES as $locale_type => $locale_desc )
    {
       echo ROSTER_BASE . 'localization' . DIR_SEP . $locale_desc['type'] . '.php';  // New line !!
       if( file_exists(ROSTER_BASE . 'localization' . DIR_SEP . $locale_desc['type'] . '.php') )
       {


At least you could see what language files are included.
User avatar
tuigii
WR.net Master
WR.net Master
 
Posts: 891
Joined: Wed Dec 27, 2006 12:57 pm
Location: Somewhere in the South Ouest of France

Re: Unusual issue regarding locales

Postby ouija » Sat Jun 27, 2009 10:16 pm

Sorry for the late response, I was not online yesterday.

Yes, the files within the localization folder are intact. I've added the echo you suggested and get the following on Step 2:

/home/dcxguild/public_html/roster/localization/enUS.php/home/dcxguild/public_html/roster/localization/deDE.php/home/dcxguild/public_html/roster/localization/frFR.php/home/dcxguild/public_html/roster/localization/esES.php

Oh, and the error log on the server is pretty much empty.
ouija
WR.net Apprentice
WR.net Apprentice
 
Posts: 6
Joined: Thu Jun 25, 2009 11:05 am

Re: Unusual issue regarding locales

Postby zanix » Sun Jun 28, 2009 2:34 am

The php script is looking for localization/enUS.php and you have localization/enus.php

Somehow, when you upload the files, the case of the file name was changed to lowercase, and since you have a linux server it failed to include the file.
I have re-uploaded the Roster files to ensure no others have this case issue.

The language options now appear in the installer.
Read the Forum Rules, the WiKi, and Search before posting!
WoWRoster v2.1 - SigGen v0.3.3.523 - WoWRosterDF
User avatar
zanix
Admin
Admin
WoWRoster.net Dev Team
WoWRoster.net Dev Team
UA/UU Developer
UA/UU Developer
 
Posts: 5546
Joined: Mon Jul 03, 2006 8:29 am
Location: Idaho Falls, Idaho
Realm: Doomhammer (PvE) - US

Re: Unusual issue regarding locales

Postby ouija » Sun Jun 28, 2009 12:18 pm

Oh my god you've got to be kidding me. My FTP client always renames to lower case for my image hosting account... I didn't even notice the case was different from the local files on my desktop.

Thanks very much for checking that out :thumleft: I really appreciate it. Still feel like a bit of a fool though lol. I began to think yesterday that it might end up being something really simple, since all the usual stuff hadn't worked. Cheers again. :)
ouija
WR.net Apprentice
WR.net Apprentice
 
Posts: 6
Joined: Thu Jun 25, 2009 11:05 am

Re: Unusual issue regarding locales

Postby zanix » Sun Jun 28, 2009 9:42 pm

Not a problem, it's usually the stupid things that get us the best.

Glad it's working for you now.
Read the Forum Rules, the WiKi, and Search before posting!
WoWRoster v2.1 - SigGen v0.3.3.523 - WoWRosterDF
User avatar
zanix
Admin
Admin
WoWRoster.net Dev Team
WoWRoster.net Dev Team
UA/UU Developer
UA/UU Developer
 
Posts: 5546
Joined: Mon Jul 03, 2006 8:29 am
Location: Idaho Falls, Idaho
Realm: Doomhammer (PvE) - US

Re: Unusual issue regarding locales

Postby ouija » Mon Jun 29, 2009 2:18 pm

Exactly. Brain goes into overdrive trying to find the most complicated solution. :roll:
ouija
WR.net Apprentice
WR.net Apprentice
 
Posts: 6
Joined: Thu Jun 25, 2009 11:05 am

Re: Unusual issue regarding locales

Postby tuigii » Mon Jun 29, 2009 5:31 pm

ouija wrote:.... complicated solution. :roll:


This one wasn't really complicated - but hard to find ^^ (althoug my next test that I was about to propose would have found this one).
Another thing is : ftp programs never translate by default the case of file names.
IF yours does, ditch it right now....
User avatar
tuigii
WR.net Master
WR.net Master
 
Posts: 891
Joined: Wed Dec 27, 2006 12:57 pm
Location: Somewhere in the South Ouest of France


Return to Installation

Who is online

Users browsing this forum: No registered users and 1 guest

cron