jon Posted October 22, 2020 Report Share Posted October 22, 2020 Attempted upgrade from Revive v4.0.2 to v5.0.5 and ran into a some snags. Followed the upgrade instructions. Right after the database setup page, I got this. Attempted a fresh install and got the same thing. Appreciate any advice. Thanks in advance MESSAGE: Only variables should be assigned by referenceTYPE: NoticeFILE: /var/www/html/lib/pear/MDB2/Driver/Datatype/Common.phpLINE: 1109DEBUG INFO: 1104 * a DBMS specific format. 1105 * @access public 1106 */ 1107 function quote($value, $type = null, $quote = true, $escape_wildcards = false) 1108 { 1109 $db =& $this->getDBInstance(); 1110 if (PEAR::isError($db)) { 1111 return $db; 1112 } 1113 1114 if (is_null($value) MESSAGE: Non-static method PEAR::isError() should not be called staticallyTYPE: DeprecatedFILE: /var/www/html/lib/pear/MDB2/Driver/Datatype/Common.phpLINE: 1110DEBUG INFO: 1105 * @access public 1106 */ 1107 function quote($value, $type = null, $quote = true, $escape_wildcards = false) 1108 { 1109 $db =& $this->getDBInstance(); 1110 if (PEAR::isError($db)) { 1111 return $db; 1112 } 1113 1114 if (is_null($value) 1115 || ($value === '' && $db->options['portability'] & MDB2_PORTABILITY_EMPTY_TO_NULL) MESSAGE: Only variables should be assigned by referenceTYPE: NoticeFILE: /var/www/html/lib/pear/MDB2/Driver/Datatype/Common.phpLINE: 1213DEBUG INFO: 1208 { 1209 if (!$quote) { 1210 return $value; 1211 } 1212 1213 $db =& $this->getDBInstance(); 1214 if (PEAR::isError($db)) { 1215 return $db; 1216 } 1217 1218 $value = $db->escape($value, $escape_wildcards); MESSAGE: Non-static method PEAR::isError() should not be called staticallyTYPE: DeprecatedFILE: /var/www/html/lib/pear/MDB2/Driver/Datatype/Common.phpLINE: 1214DEBUG INFO: 1209 if (!$quote) { 1210 return $value; 1211 } 12121213 $db =& $this->getDBInstance(); 1214 if (PEAR::isError($db)) { 1215 return $db; 1216 } 1217 1218 $value = $db->escape($value, $escape_wildcards); 1219 return "'".$value."'"; MESSAGE: Only variables should be assigned by referenceTYPE: NoticeFILE: /var/www/html/lib/pear/MDB2/Driver/Datatype/Common.phpLINE: 1109DEBUG INFO: 1104 * a DBMS specific format. 1105 * @access public 1106 */ 1107 function quote($value, $type = null, $quote = true, $escape_wildcards = false) 1108 { 1109 $db =& $this->getDBInstance(); 1110 if (PEAR::isError($db)) { 1111 return $db; 1112 } 1113 1114 if (is_null($value) MESSAGE: Non-static method PEAR::isError() should not be called staticallyTYPE: DeprecatedFILE: /var/www/html/lib/pear/MDB2/Driver/Datatype/Common.phpLINE: 1110DEBUG INFO: 1105 * @access public 1106 */ 1107 function quote($value, $type = null, $quote = true, $escape_wildcards = false) 1108 { 1109 $db =& $this->getDBInstance(); 1110 if (PEAR::isError($db)) { 1111 return $db; 1112 } 1113 1114 if (is_null($value) 1115 || ($value === '' && $db->options['portability'] & MDB2_PORTABILITY_EMPTY_TO_NULL) MESSAGE: Only variables should be assigned by referenceTYPE: NoticeFILE: /var/www/html/lib/pear/MDB2/Driver/Manager/mysqli.phpLINE: 1026DEBUG INFO: 1021 * @param string $table 1022 * @return array 1023 */ 1024 function getTableStatus($table) 1025 { 1026 $db =& $this->getDBInstance(); 1027 if (PEAR::isError($db)) { 1028 return $db; 1029 } 1030 1031 $query = "SHOW TABLE STATUS LIKE '{$table}'"; MESSAGE: Non-static method PEAR::isError() should not be called staticallyTYPE: DeprecatedFILE: /var/www/html/lib/pear/MDB2/Driver/Manager/mysqli.phpLINE: 1027DEBUG INFO: 1022 * @return array 1023 */ 1024 function getTableStatus($table) 1025 { 1026 $db =& $this->getDBInstance(); 1027 if (PEAR::isError($db)) { 1028 return $db; 1029 } 1030 1031 $query = "SHOW TABLE STATUS LIKE '{$table}'"; 1032 $result = $db->queryAll($query, null, MDB2_FETCHMODE_ASSOC); MESSAGE: Non-static method MDB2::isResultCommon() should not be called staticallyTYPE: DeprecatedFILE: /var/www/html/lib/pear/MDB2.phpLINE: 2632DEBUG INFO: 2627 $err =& $this->customRaiseError(MDB2_ERROR_NOT_FOUND, null, null, 2628 'result class does not exist '.$class_name, __FUNCTION__); 2629 return $err; 2630 } 2631 $result = new $class_name($this, $result, $limit, $offset); 2632 if (!MDB2::isResultCommon($result)) { 2633 $err =& $this->customRaiseError(MDB2_ERROR_NOT_FOUND, null, null, 2634 'result class is not extended from MDB2_Result_Common', __FUNCTION__); 2635 return $err; 2636 } 2637 if (!empty($types)) { MESSAGE: Non-static method MDB2::isResultCommon() should not be called staticallyTYPE: DeprecatedFILE: /var/www/html/lib/pear/MDB2.phpLINE: 3365DEBUG INFO: 3360 */ 3361 function queryAll($query, $types = null, $fetchmode = MDB2_FETCHMODE_DEFAULT, 3362 $rekey = false, $force_array = false, $group = false) 3363 { 3364 $result = $this->query($query, $types); 3365 if (!MDB2::isResultCommon($result)) { 3366 return $result; 3367 } 3368 3369 $all = $result->fetchAll($fetchmode, $rekey, $force_array, $group); 3370 $result->free(); MESSAGE: Non-static method PEAR::isError() should not be called staticallyTYPE: DeprecatedFILE: /var/www/html/lib/pear/MDB2.phpLINE: 3602DEBUG INFO: 3597 function fetchAll($fetchmode = MDB2_FETCHMODE_DEFAULT, $rekey = false, 3598 $force_array = false, $group = false) 3599 { 3600 $all = array(); 3601 $row = $this->fetchRow($fetchmode); 3602 if (PEAR::isError($row)) { 3603 return $row; 3604 } elseif (!$row) { 3605 return $all; 3606 } 3607 MESSAGE: Non-static method PEAR::isError() should not be called staticallyTYPE: DeprecatedFILE: /var/www/html/lib/pear/MDB2/Driver/Manager/mysqli.phpLINE: 1033DEBUG INFO: 1028 return $db; 1029 } 10301031 $query = "SHOW TABLE STATUS LIKE '{$table}'"; 1032 $result = $db->queryAll($query, null, MDB2_FETCHMODE_ASSOC); 1033 if (PEAR::isError($result)) 1034 { 1035 return array(); 1036 } 1037 return $result; 1038 } MESSAGE: Non-static method PEAR::isError() should not be called staticallyTYPE: DeprecatedFILE: /var/www/html/lib/OA/Upgrade/DB_UpgradeAuditor.phpLINE: 319DEBUG INFO: 314 } 315316 function getTableStatus($table) 317 { 318 $result = $this->oDbh->manager->getTableStatus($this->prefix.$table); 319 if (PEAR::isError($result)) 320 { 321 return array(); 322 } 323 return $result; 324 } MESSAGE: Non-static method PEAR::isError() should not be called staticallyTYPE: DeprecatedFILE: /var/www/html/lib/OA/Upgrade/UpgradeLogger.phpLINE: 74DEBUG INFO: 69 * @param string $message 70 * @return boolean 71 */ 72 function isPearError($result, $message='omg it all went PEAR shaped!') 73 { 74 if (PEAR::isError($result)) 75 { 76 $this->logError($message.' '. $result->getUserInfo()); 77 return true; 78 } 79 return false; MESSAGE: Non-static method OX::assetPath() should not be called staticallyTYPE: DeprecatedFILE: /var/www/html/lib/OA/Admin/Template.phpLINE: 106DEBUG INFO: 101 $this->templateName = $templateName; 102103 $this->assign('phpAds_TextDirection', $GLOBALS['phpAds_TextDirection']); 104 $this->assign('phpAds_TextAlignLeft', $GLOBALS['phpAds_TextAlignLeft']); 105 $this->assign('phpAds_TextAlignRight', $GLOBALS['phpAds_TextAlignRight']); 106 $this->assign('assetPath', OX::assetPath()); 107 $this->assign("adminWebPath", MAX::constructURL(MAX_URL_ADMIN, '')); 108 $this->assign("oaTemplateDir", MAX_PATH.'/lib/templates/admin/'); 109 110 //for pluggable page elements 111 //- plugins may need to refrence their JS in OXP page templates MESSAGE: Non-static method OA_Dal::getTablePrefix() should not be called staticallyTYPE: DeprecatedFILE: /var/www/html/lib/max/Dal/Common.phpLINE: 135DEBUG INFO: 130 return 'MAX_Dal_Admin_'.ucfirst($table); 131 } 132133 function getTablePrefix() 134 { 135 return OA_Dal::getTablePrefix(); 136 } 137 138 /** 139 * A private method to manage creation of the utilised OA_DB class. 140 * MESSAGE: Non-static method PEAR::getStaticProperty() should not be called staticallyTYPE: DeprecatedFILE: /var/www/html/lib/pear/PEAR.phpLINE: 866DEBUG INFO: 861 } 862 $this->message = $message; 863 $this->code = $code; 864 $this->mode = $mode; 865 $this->userinfo = $userinfo; 866 if (!PEAR::getStaticProperty('PEAR_Error', 'skiptrace')) { 867 $this->backtrace = debug_backtrace(); 868 if (isset($this->backtrace[0]) && isset($this->backtrace[0]['object'])) { 869 unset($this->backtrace[0]['object']); 870 } 871 } MESSAGE: Only variable references should be returned by referenceTYPE: NoticeFILE: /var/www/html/lib/max/Dal/Common.phpLINE: 146DEBUG INFO: 141 * @access private 142 * @return mixed An instance of the OA_DB class. 143 */ 144 function &_getDbConnection() 145 { 146 return OA_DB::singleton(); 147 } 148 149 /** 150 * A private method for instantiating the DB_QueryTool class. 151 * MESSAGE: Non-static method DB::isError() should not be called staticallyTYPE: DeprecatedFILE: /var/www/html/lib/pear/DB/QueryTool/Query.phpLINE: 295DEBUG INFO: 290 if (is_object($dsn)) { 291 $res = $this->db =& $dsn; 292 } else { 293 $res = $this->db = DB::connect($dsn, $options); 294 } 295 if (DB::isError($res)) { 296 // FIXXME what shall we do here? 297 $this->_errorLog($res->getUserInfo()); 298 } else { 299 $this->db->setFetchMode(DB_FETCHMODE_ASSOC); 300 } Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.