Armory bug
Armory bug
There is a bug on armory when you are checking Raid ID details or someone's talents you can see following msg:
[phpBB Debug] PHP Notice: in file /var/www/armory/includes/classes/class.character.php on line 2968: Undefined index: playerBytes
[phpBB Debug] PHP Notice: in file /var/www/armory/includes/classes/class.character.php on line 2969: Undefined index: playerBytes2
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Solution:
// @define('DEBUG', true);
// @define('DEBUG_EXTRA', true);
or
// Report all errors, except notices
error_reporting(E_ALL ^ E_NOTICE);
[phpBB Debug] PHP Notice: in file /var/www/armory/includes/classes/class.character.php on line 2968: Undefined index: playerBytes
[phpBB Debug] PHP Notice: in file /var/www/armory/includes/classes/class.character.php on line 2969: Undefined index: playerBytes2
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Solution:
// @define('DEBUG', true);
// @define('DEBUG_EXTRA', true);
or
// Report all errors, except notices
error_reporting(E_ALL ^ E_NOTICE);
Arnis - Marksmanship Hunter PVE/PVP
Predatoor - Death Knight Hybrid Tank/Blood Dps PVE
Restoration - Shaman Resto/Ele PVE
Arniscat - Druid Feral Tank/Restoration PVE
Arnisrocks - Paladin Protection/Retribution PVE
Arnislock - Warlock Demonology PVE
Stanimalo - Rogue Combat PVE
Mazdean - Priest Shadow/Holy PVE
Pecaros - Warrior Protection/Fury PVE
Arniskhanna - Mage Arcane PVE
Predatoor - Death Knight Hybrid Tank/Blood Dps PVE
Restoration - Shaman Resto/Ele PVE
Arniscat - Druid Feral Tank/Restoration PVE
Arnisrocks - Paladin Protection/Retribution PVE
Arnislock - Warlock Demonology PVE
Stanimalo - Rogue Combat PVE
Mazdean - Priest Shadow/Holy PVE
Pecaros - Warrior Protection/Fury PVE
Arniskhanna - Mage Arcane PVE
The Demonic Lord!
If you're going through hell, keep going.
Re: Armory bug
or just make them pre-defined as a value counted as null :p
ur second solution may give hidden issues in the future, if vulnerables appear, staff will have less chance to even know about it ^^
ur second solution may give hidden issues in the future, if vulnerables appear, staff will have less chance to even know about it ^^
Re: Armory bug
Yes this can work aswell:Naxp wrote:or just make them pre-defined as a value counted as null :p
ur second solution may give hidden issues in the future, if vulnerables appear, staff will have less chance to even know about it ^^
error_reporting(0);
But might casue some problems like geting blank pages after posting something
Arnis - Marksmanship Hunter PVE/PVP
Predatoor - Death Knight Hybrid Tank/Blood Dps PVE
Restoration - Shaman Resto/Ele PVE
Arniscat - Druid Feral Tank/Restoration PVE
Arnisrocks - Paladin Protection/Retribution PVE
Arnislock - Warlock Demonology PVE
Stanimalo - Rogue Combat PVE
Mazdean - Priest Shadow/Holy PVE
Pecaros - Warrior Protection/Fury PVE
Arniskhanna - Mage Arcane PVE
Predatoor - Death Knight Hybrid Tank/Blood Dps PVE
Restoration - Shaman Resto/Ele PVE
Arniscat - Druid Feral Tank/Restoration PVE
Arnisrocks - Paladin Protection/Retribution PVE
Arnislock - Warlock Demonology PVE
Stanimalo - Rogue Combat PVE
Mazdean - Priest Shadow/Holy PVE
Pecaros - Warrior Protection/Fury PVE
Arniskhanna - Mage Arcane PVE
The Demonic Lord!
If you're going through hell, keep going.
Re: Armory bug
hmm still only good for temponarly use.. such as previews..arnis5 wrote:Yes this can work aswell:Naxp wrote:or just make them pre-defined as a value counted as null :p
ur second solution may give hidden issues in the future, if vulnerables appear, staff will have less chance to even know about it ^^
error_reporting(0);
But might casue some problems like geting blank pages after posting something
this index undefined is caused by an variable who comes inside without being predefined
I'm not sure about Etros code, but those two below is the most common solutions.
Sol.1
[hide]
Code: Select all
//Predefining the variable @start of section using a NULL expression such as empty or simply Null if SQL
$playerBytes = ""
Sol.2
[hide]
Code: Select all
//Going from behind, thats how we like it
if (isset($_POST['buttonProceed'])) {
//Section code goes here
}
Re: Armory bug
Hmm?Naxp wrote:I'm not sure about Etros code, but those two below is the most common solutions.
"With life, no matter what you do, you are all in. This is going to kill you. Might as well play the most magnificent game you can while you're waiting, because... Do you have anything better to do? Really?"
Re: Armory bug
I have notified Nuko about it, but it's probably best to post these errors at the armory thread since he's subscribed to it, so he'll get an email notification about it when you post it there.
http://www.truewow.org/forum/viewtopic. ... 23#p187323
http://www.truewow.org/forum/viewtopic. ... 23#p187323
Re: Armory bug
Sorry, meant NokEtro wrote:Hmm?Naxp wrote:I'm not sure about Etros code, but those two below is the most common solutions.
Re: Armory bug
A very belated LOL at Etros piccy
I like how it so naturally draws ones attention to the subject at hand.
Anyway, should be fixed, the error was originating from trying to extract the playerBytes and playerBytes2 fields from an SQL query result but the fields no longer exist due to a recent update. I've updated the field names so all should be fine.
The undefined index error comes from attempting to read a value from an associative array (ie the query result) by something like
but since the playerBytes field no-longer exists, the $queryRow array no longer has an element with index "playerBytes" assigned to it when the query result is returned. Hence PHP gets rather offended and feels the need to complain via a strongly worded warning output.
I like how it so naturally draws ones attention to the subject at hand.
Anyway, should be fixed, the error was originating from trying to extract the playerBytes and playerBytes2 fields from an SQL query result but the fields no longer exist due to a recent update. I've updated the field names so all should be fine.
The undefined index error comes from attempting to read a value from an associative array (ie the query result) by something like
Code: Select all
$this->playerBytes = $queryRow['playerBytes'];
Nuko - In the event of malfunction, please insert tea.
"In the beginning the Universe was created. This has made a lot of people very angry and been widely regarded as a bad move."
"In the beginning the Universe was created. This has made a lot of people very angry and been widely regarded as a bad move."
Re: Armory bug
Ahh, clean & simple ^^Nuko wrote:A very belated LOL at Etros piccy
I like how it so naturally draws ones attention to the subject at hand.
Anyway, should be fixed, the error was originating from trying to extract the playerBytes and playerBytes2 fields from an SQL query result but the fields no longer exist due to a recent update. I've updated the field names so all should be fine.
The undefined index error comes from attempting to read a value from an associative array (ie the query result) by something likebut since the playerBytes field no-longer exists, the $queryRow array no longer has an element with index "playerBytes" assigned to it when the query result is returned. Hence PHP gets rather offended and feels the need to complain via a strongly worded warning output.Code: Select all
$this->playerBytes = $queryRow['playerBytes'];
Who is online
Users browsing this forum: No registered users and 2 guests