Advertisement
fruffl

WP Error Solver

Dec 8th, 2012
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.29 KB | None | 0 0
  1. /** validate plugin settings... */
  2.                 // load struct
  3.                 $this->__Struct = new $this->__pluginBaseNameStruct;
  4.                
  5.                 // load and validate current settings from db
  6.                 foreach($this->__Struct as $key => $value)
  7.                 {
  8.                     $this->__WordpressDbOptions[$key] = $this->getWordpressSetting($key);
  9.                    
  10.                     try
  11.                     {
  12.                         // struct-setter-test
  13.                         $this->__Struct->setValue($key, $this->__WordpressDbOptions[$key]);
  14.                     }
  15.                     catch(Exception $E)
  16.                     {
  17.                         // reset to inittial
  18.                         if($E->hasCatched('tri4m_ArgumentComparisonException'))
  19.                         {
  20.                             $this->resetWordpressSetting($key);
  21.                             $this->__WordpressDbOptions[$key] = $this->getWordpressSetting($key);
  22.                             $this->__Struct->setValue($key, $this->__WordpressDbOptions[$key]);
  23.                            
  24.                             $this->e($E
  25.                                 ->solveAddress()
  26.                                 ->setSolvedReason('Reset value to initial-value "'.$this->__WordpressDbOptions[$key].'".')
  27.                                 ->toMessage()
  28.                             );
  29.                         };
  30.                     }
  31.                 }
  32. /** output options page:
  33.  
  34. tri4mQtLoader
  35. ERRORS  510:500:521:500
  36. ADDRESS 000000007f4ff5a1000000005ba1d7eb:000000007f4ff5a0000000005ba1d7eb:000000007f4ff5a7000000005ba1d7eb:000000007f4ff5a6000000005ba1d7eb
  37. SOLVED  Problem was solved with: Reset value to initial-value "deck".
  38. REVIEW  
  39.     OUTER   000000007f4ff5a6000000005ba1d7eb: SOLVED    tri4m_CoreStructure_MethodCallException (ERROR 510): 'tri4mQtLoader_Struct'::'transition': Unable to set value 'deckdfbdfb'. Problem was solved with: Reset value to initial-value "deck".
  40.     INNER   000000007f4ff5a7000000005ba1d7eb: SOLVED    tri4m_ArgumentOutOfRangeException (ERROR 500): Argument $'__value' at offset 1[0b1|0x1|0o1] for 'A_tri4m_CoreStructure::tStructure_set'() is out of range. Problem was solved with: Unknown Solution.
  41.     INNER   000000007f4ff5a0000000005ba1d7eb: SOLVED    tri4m_CoreStructure_MethodCallException (ERROR 521): 'tri4mQtLoader_Struct'::'transition': Value 'deckdfbdfb' is not acceptable. Problem was solved with: Unknown Solution.
  42.     INNER   000000007f4ff5a1000000005ba1d7eb: SOLVED    tri4m_ArgumentNotWhitelistedException (ERROR 500): Argument $'__value' at offset 1[0b1|0x1|0o1] for 'A_tri4m_CoreStructure::tStructure_iStructure_isAcceptable'() is not whitelisted. Problem was solved with: Unknown Solution.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement