I had a slightly different problem with Tidal Loop and some other items. I think it's the same problem that Silvereye had in his post
http://www.wowroster.net/Forums/viewtopic/t=1722.html
The Tidal Loop showed up in the graphical character inventory slots, but did not show up under the "Gear Used" table, and it's FR value was not summed into the character's FR total.
Debugging the SQL, it appears that the Tidal Loop was returned with the SQL query, but had FR1,FR2,FR3 values of 0.
Finally, I found that there were line feed characters ('\n') in the SQL statement where it was searching for the string LOCATE('".$Fire_Resistance."\n'. The extra line feed character was causing the SQL to fail when searching for the string "Fire Resistance\n", and thus the FR1 and FR2 defaulted to 0. I imaging the author put these line feed characters in to make the debug output look readable, but on my server, it caused the query fail.
The fix was to remove the '\n' character in both SQL statements in maxres.php (a total of 8 occurrances).
Original
- Code: Select all
"CONVERT(replace(SUBSTRING(item_tooltip,LOCATE('".$Fire_Resistance."\n', item_tooltip,LOCATE('".$tooltip_soulbound."', item_tooltip))-3,2),'+','') ,SIGNED INTEGER) as FR1, ".
"CONVERT(Ifnull(replace(SUBSTRING(item_tooltip,Nullif(LOCATE('".$Fire_Resistance."\n', item_tooltip,LOCATE('".$Fire_Resistance."\n', item_tooltip, LOCATE('".$tooltip_soulbound."', item_tooltip))+1),0)-3,2),'+',''),0),SIGNED INTEGER) + CONVERT(Ifnull(replace(SUBSTRING(item_tooltip,Nullif(LOCATE('".$Fire_Resistance." +', item_tooltip,LOCATE('".$Fire_Resistance." +', item_tooltip, LOCATE('".$tooltip_soulbound."', item_tooltip))-1),0)+LENGTH('".$Fire_Resistance." +'),2),'+',''),0),SIGNED INTEGER) as FR2, ".
"CONVERT(replace(SUBSTRING(item_tooltip,LOCATE('".$Fire_Resistance."\n', item_tooltip,LOCATE('".$tooltip_soulbound."', item_tooltip))-3,2),'+','') ,SIGNED INTEGER) + ".
"CONVERT(Ifnull(replace(SUBSTRING(item_tooltip,Nullif(LOCATE('".$Fire_Resistance."\n', item_tooltip,LOCATE('".$Fire_Resistance."\n', item_tooltip, LOCATE('".$tooltip_soulbound."', item_tooltip))+1) ,0)-3,2),'+',''),0) ,SIGNED INTEGER) + CONVERT(Ifnull(replace(SUBSTRING(item_tooltip,Nullif(LOCATE('".$Fire_Resistance." +', item_tooltip,LOCATE('".$Fire_Resistance." +', item_tooltip, LOCATE('".$tooltip_soulbound."', item_tooltip))-1),0)+LENGTH('".$Fire_Resistance." +'),2),'+',''),0),SIGNED INTEGER) as FR3 ".
Patched
- Code: Select all
"CONVERT(replace(SUBSTRING(item_tooltip,LOCATE('".$Fire_Resistance."', item_tooltip,LOCATE('".$tooltip_soulbound."', item_tooltip))-3,2),'+','') ,SIGNED INTEGER) as FR1, ".
"CONVERT(Ifnull(replace(SUBSTRING(item_tooltip,Nullif(LOCATE('".$Fire_Resistance."', item_tooltip,LOCATE('".$Fire_Resistance."', item_tooltip, LOCATE('".$tooltip_soulbound."', item_tooltip))+1),0)-3,2),'+',''),0),SIGNED INTEGER) + CONVERT(Ifnull(replace(SUBSTRING(item_tooltip,Nullif(LOCATE('".$Fire_Resistance." +', item_tooltip,LOCATE('".$Fire_Resistance." +', item_tooltip, LOCATE('".$tooltip_soulbound."', item_tooltip))-1),0)+LENGTH('".$Fire_Resistance." +'),2),'+',''),0),SIGNED INTEGER) as FR2, ".
"CONVERT(replace(SUBSTRING(item_tooltip,LOCATE('".$Fire_Resistance."', item_tooltip,LOCATE('".$tooltip_soulbound."', item_tooltip))-3,2),'+','') ,SIGNED INTEGER) + ".
"CONVERT(Ifnull(replace(SUBSTRING(item_tooltip,Nullif(LOCATE('".$Fire_Resistance."', item_tooltip,LOCATE('".$Fire_Resistance."', item_tooltip, LOCATE('".$tooltip_soulbound."', item_tooltip))+1) ,0)-3,2),'+',''),0) ,SIGNED INTEGER) + CONVERT(Ifnull(replace(SUBSTRING(item_tooltip,Nullif(LOCATE('".$Fire_Resistance." +', item_tooltip,LOCATE('".$Fire_Resistance." +', item_tooltip, LOCATE('".$tooltip_soulbound."', item_tooltip))-1),0)+LENGTH('".$Fire_Resistance." +'),2),'+',''),0),SIGNED INTEGER) as FR3 ".
Edit: After creating a forums account to make this post, I was then able to see Exerladan's attachment in the other thread, which apparently already addresses the issue. Sorry for the repost.