Jump to content

Upgrading from ver4.0.2 to ver 5.0.5


jon

Recommended Posts

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 reference
TYPE: Notice
FILE: /var/www/html/lib/pear/MDB2/Driver/Datatype/Common.php
LINE: 1109
DEBUG 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 statically
TYPE: Deprecated
FILE: /var/www/html/lib/pear/MDB2/Driver/Datatype/Common.php
LINE: 1110
DEBUG 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 reference
TYPE: Notice
FILE: /var/www/html/lib/pear/MDB2/Driver/Datatype/Common.php
LINE: 1213
DEBUG 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 statically
TYPE: Deprecated
FILE: /var/www/html/lib/pear/MDB2/Driver/Datatype/Common.php
LINE: 1214
DEBUG INFO:

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); 
1219 return "'".$value."'";

 

 



MESSAGE: Only variables should be assigned by reference
TYPE: Notice
FILE: /var/www/html/lib/pear/MDB2/Driver/Datatype/Common.php
LINE: 1109
DEBUG 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 statically
TYPE: Deprecated
FILE: /var/www/html/lib/pear/MDB2/Driver/Datatype/Common.php
LINE: 1110
DEBUG 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 reference
TYPE: Notice
FILE: /var/www/html/lib/pear/MDB2/Driver/Manager/mysqli.php
LINE: 1026
DEBUG 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 statically
TYPE: Deprecated
FILE: /var/www/html/lib/pear/MDB2/Driver/Manager/mysqli.php
LINE: 1027
DEBUG 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 statically
TYPE: Deprecated
FILE: /var/www/html/lib/pear/MDB2.php
LINE: 2632
DEBUG 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 statically
TYPE: Deprecated
FILE: /var/www/html/lib/pear/MDB2.php
LINE: 3365
DEBUG 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 statically
TYPE: Deprecated
FILE: /var/www/html/lib/pear/MDB2.php
LINE: 3602
DEBUG 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 statically
TYPE: Deprecated
FILE: /var/www/html/lib/pear/MDB2/Driver/Manager/mysqli.php
LINE: 1033
DEBUG INFO:

1028 return $db; 
1029 } 
1030
1031 $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 statically
TYPE: Deprecated
FILE: /var/www/html/lib/OA/Upgrade/DB_UpgradeAuditor.php
LINE: 319
DEBUG INFO:

314 } 
315
316 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 statically
TYPE: Deprecated
FILE: /var/www/html/lib/OA/Upgrade/UpgradeLogger.php
LINE: 74
DEBUG 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 statically
TYPE: Deprecated
FILE: /var/www/html/lib/OA/Admin/Template.php
LINE: 106
DEBUG INFO:

101 $this->templateName = $templateName; 
102
103 $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 statically
TYPE: Deprecated
FILE: /var/www/html/lib/max/Dal/Common.php
LINE: 135
DEBUG INFO:

130 return 'MAX_Dal_Admin_'.ucfirst($table); 
131 } 
132
133 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 statically
TYPE: Deprecated
FILE: /var/www/html/lib/pear/PEAR.php
LINE: 866
DEBUG 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 reference
TYPE: Notice
FILE: /var/www/html/lib/max/Dal/Common.php
LINE: 146
DEBUG 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 statically
TYPE: Deprecated
FILE: /var/www/html/lib/pear/DB/QueryTool/Query.php
LINE: 295
DEBUG 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 }

 

 


Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...