[1.7.0] Keys page error

Official announcements concerning bugs and fixes in the WoWRoster package
Posting is restricted to Forum Moderators

[1.7.0] Keys page error

Postby zanix » Thu Sep 14, 2006 12:36 pm

Getting an error similar to this?
Code: Select all
Warning: Invalid argument supplied for foreach() in /membersinst.php on line 184

This happens when you have multiple locales in one roster and when you are an Alliance guild
(IE: enUS and deDE)

The keys page expects a faction name to match the locale
deDE -> Allianz | Horde
enUS -> Alliance | Horde

As you can see, the problem comes from an alliance roster because the faction names do not match



Ok, now for the fix
Open membersinst.php
Find
Code: Select all
$items $inst_keys[$roster_conf['roster_lang']][$faction]; 

Replace with
Code: Select all
$items $inst_keys[$roster_conf['roster_lang']][ substr($faction,0,1) ]; 



Open localization/enUS.php
Find
Code: Select all
$inst_keys['enUS']['Alliance'] = array( 

Replace with
Code: Select all
$inst_keys['enUS']['A'] = array( 


Find
Code: Select all
$inst_keys['enUS']['Horde'] = array( 

Replace with
Code: Select all
$inst_keys['enUS']['H'] = array( 



Open localization/deDE.php
Find
Code: Select all
$inst_keys['deDE']['Allianz'] = array( 

Replace with
Code: Select all
$inst_keys['deDE']['A'] = array( 


Find
Code: Select all
$inst_keys['deDE']['Horde'] = array( 

Replace with
Code: Select all
$inst_keys['deDE']['H'] = array( 





If editing files isn't your thing, attatched are already edited files
Attachments
170_keys_fix.zip
[1.7.0] Instance Keys page fix for alliance multi locale rosters
(29.12 KiB) Downloaded 463 times
Last edited by zanix on Thu Sep 14, 2006 12:40 pm, edited 1 time in total.
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

Return to Official Bugs & Updates

Who is online

Users browsing this forum: No registered users and 0 guests

cron