Jump to content

Unable To Install


praveen

Recommended Posts

Few weeks ago i tried to upgrade from Openx to Revive and that did not go through successfully.

 

Today, i thought i shall install a fresh copy of Revive and re-do all ads manually. So i first tried installaing 3.0 on a new DB and new folder. Kept getting some errors and install would not go through.

 

Then i saw 3.0.2 has been released. So i dropped all tables, deleted the old (3.0) files and uploaded a fresh copy of 3.0.2. After i entered the DB details, i got the following error. This server has OpenX running currently on a different DB and folder.

 

 

--------------------------------------------------------------------------------
 
MESSAGE: Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context
TYPE: Strict
FILE: /home/abcdefghi/public_html/manager/lib/pear/MDB2/Driver/Datatype/Common.php
LINE: 1104
DEBUG INFO: 
 
1099 * @access public 
1100 */ 
1101 function quote($value, $type = null, $quote = true, $escape_wildcards = false) 
1102
1103 $db =& $this->getDBInstance(); 
 
 
1104 if (PEAR::isError($db)) { 
 
1105 return $db; 
1106
1107
1108 if (is_null($value) 
1109 || ($value === '' && $db->options['portability'] & MDB2_PORTABILITY_EMPTY_TO_NULL)
 
 
 
 
 
MESSAGE: Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context
TYPE: Strict
FILE: /home/abcdefghi/public_html/manager/lib/pear/MDB2/Driver/Datatype/Common.php
LINE: 1208
DEBUG INFO: 
 
1203 if (!$quote) { 
1204 return $value; 
1205
1206
1207 $db =& $this->getDBInstance(); 
 
 
1208 if (PEAR::isError($db)) { 
 
1209 return $db; 
1210
1211
1212 $value = $db->escape($value, $escape_wildcards); 
1213 return "'".$value."'";
 
 
 
 
 
MESSAGE: Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context
TYPE: Strict
FILE: /home/abcdefghi/public_html/manager/lib/pear/MDB2/Driver/Datatype/Common.php
LINE: 1104
DEBUG INFO: 
 
1099 * @access public 
1100 */ 
1101 function quote($value, $type = null, $quote = true, $escape_wildcards = false) 
1102
1103 $db =& $this->getDBInstance(); 
 
 
1104 if (PEAR::isError($db)) { 
 
1105 return $db; 
1106
1107
1108 if (is_null($value) 
1109 || ($value === '' && $db->options['portability'] & MDB2_PORTABILITY_EMPTY_TO_NULL)
 
 
 
 
 
MESSAGE: Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context
TYPE: Strict
FILE: /home/abcdefghi/public_html/manager/lib/pear/MDB2/Driver/Manager/mysql.php
LINE: 940
DEBUG INFO: 
 
935 * @return array 
936 */ 
937 function getTableStatus($table) 
938
939 $db =& $this->getDBInstance(); 
 
 
940 if (PEAR::isError($db)) { 
 
941 return $db; 
942
943
944 $query = "SHOW TABLE STATUS LIKE '{$table}'"; 
945 $result = $db->queryAll($query, null, MDB2_FETCHMODE_ASSOC);
 
 
 
 
 
MESSAGE: Non-static method MDB2::isResultCommon() should not be called statically, assuming $this from incompatible context
TYPE: Strict
FILE: /home/abcdefghi/public_html/manager/lib/pear/MDB2.php
LINE: 2635
DEBUG INFO: 
 
2630 $err =& $this->raiseError(MDB2_ERROR_NOT_FOUND, null, null, 
2631 'result class does not exist '.$class_name, __FUNCTION__); 
2632 return $err; 
2633
2634 $result =& new $class_name($this, $result, $limit, $offset); 
 
 
2635 if (!MDB2::isResultCommon($result)) { 
 
2636 $err =& $this->raiseError(MDB2_ERROR_NOT_FOUND, null, null, 
2637 'result class is not extended from MDB2_Result_Common', __FUNCTION__); 
2638 return $err; 
2639
2640 if (!empty($types)) {
 
 
 
 
 
MESSAGE: Non-static method MDB2::isResultCommon() should not be called statically, assuming $this from incompatible context
TYPE: Strict
FILE: /home/abcdefghi/public_html/manager/lib/pear/MDB2.php
LINE: 3368
DEBUG INFO: 
 
3363 */ 
3364 function queryAll($query, $types = null, $fetchmode = MDB2_FETCHMODE_DEFAULT, 
3365 $rekey = false, $force_array = false, $group = false) 
3366
3367 $result = $this->query($query, $types); 
 
 
3368 if (!MDB2::isResultCommon($result)) { 
 
3369 return $result; 
3370
3371
3372 $all = $result->fetchAll($fetchmode, $rekey, $force_array, $group); 
3373 $result->free();
 
 
 
 
 
MESSAGE: Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context
TYPE: Strict
FILE: /home/abcdefghi/public_html/manager/lib/pear/MDB2.php
LINE: 3616
DEBUG INFO: 
 
3611 function fetchAll($fetchmode = MDB2_FETCHMODE_DEFAULT, $rekey = false, 
3612 $force_array = false, $group = false) 
3613
3614 $all = array(); 
3615 $row = $this->fetchRow($fetchmode); 
 
 
3616 if (PEAR::isError($row)) { 
 
3617 return $row; 
3618 } elseif (!$row) { 
3619 return $all; 
3620
3621
 
 
 
 
 
MESSAGE: Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context
TYPE: Strict
FILE: /home/abcdefghi/public_html/manager/lib/pear/MDB2/Driver/Manager/mysql.php
LINE: 946
DEBUG INFO: 
 
941 return $db; 
942
943
944 $query = "SHOW TABLE STATUS LIKE '{$table}'"; 
945 $result = $db->queryAll($query, null, MDB2_FETCHMODE_ASSOC); 
 
 
946 if (PEAR::isError($result)) 
 
947
948 return array(); 
949
950 return $result; 
951 }
 
 
 
 
 
MESSAGE: Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context
TYPE: Strict
FILE: /home/abcdefghi/public_html/manager/lib/OA/Upgrade/DB_UpgradeAuditor.php
LINE: 323
DEBUG INFO: 
 
318
319
320 function getTableStatus($table) 
321
322 $result = $this->oDbh->manager->getTableStatus($this->prefix.$table); 
 
 
323 if (PEAR::isError($result)) 
 
324
325 return array(); 
326
327 return $result; 
328 }
 
 
 
 
 
MESSAGE: Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context
TYPE: Strict
FILE: /home/abcdefghi/public_html/manager/lib/OA/Upgrade/UpgradeLogger.php
LINE: 70
DEBUG INFO: 
 
65 * @param string $message 
66 * @return boolean 
67 */ 
68 function isPearError($result, $message='omg it all went PEAR shaped!') 
69
 
 
70 if (PEAR::isError($result)) 
 
71
72 $this->logError($message.' '. $result->getUserInfo()); 
73 return true; 
74
75 return false;
 
 
 
 
 
MESSAGE: Non-static method OX::assetPath() should not be called statically, assuming $this from incompatible context
TYPE: Strict
FILE: /home/abcdefghi/public_html/manager/lib/OA/Admin/Template.php
LINE: 100
DEBUG INFO: 
 
95 $this->templateName = $templateName; 
96
97 $this->assign('phpAds_TextDirection', $GLOBALS['phpAds_TextDirection']); 
98 $this->assign('phpAds_TextAlignLeft', $GLOBALS['phpAds_TextAlignLeft']); 
99 $this->assign('phpAds_TextAlignRight', $GLOBALS['phpAds_TextAlignRight']); 
 
 
100 $this->assign('assetPath', OX::assetPath()); 
 
101 $this->assign("adminWebPath", MAX::constructURL(MAX_URL_ADMIN, '')); 
102 $this->assign("oaTemplateDir", MAX_PATH.'/lib/templates/admin/'); 
103
104 //for pluggable page elements 
105 //- plugins may need to refrence their JS in OXP page templates
 
 
 
 
 
MESSAGE: Non-static method MAX::constructURL() should not be called statically, assuming $this from incompatible context
TYPE: Strict
FILE: /home/abcdefghi/public_html/manager/lib/OA/Admin/Template.php
LINE: 101
DEBUG INFO: 
 
96
97 $this->assign('phpAds_TextDirection', $GLOBALS['phpAds_TextDirection']); 
98 $this->assign('phpAds_TextAlignLeft', $GLOBALS['phpAds_TextAlignLeft']); 
99 $this->assign('phpAds_TextAlignRight', $GLOBALS['phpAds_TextAlignRight']); 
100 $this->assign('assetPath', OX::assetPath()); 
 
 
101 $this->assign("adminWebPath", MAX::constructURL(MAX_URL_ADMIN, '')); 
 
102 $this->assign("oaTemplateDir", MAX_PATH.'/lib/templates/admin/'); 
103
104 //for pluggable page elements 
105 //- plugins may need to refrence their JS in OXP page templates 
106 $this->assign("adminPluginWebPath", MAX::constructURL(MAX_URL_ADMIN, 'plugins'));
 
 
 
 
 
MESSAGE: Non-static method MAX::constructURL() should not be called statically, assuming $this from incompatible context
TYPE: Strict
FILE: /home/abcdefghi/public_html/manager/lib/OA/Admin/Template.php
LINE: 106
DEBUG INFO: 
 
101 $this->assign("adminWebPath", MAX::constructURL(MAX_URL_ADMIN, '')); 
102 $this->assign("oaTemplateDir", MAX_PATH.'/lib/templates/admin/'); 
103
104 //for pluggable page elements 
105 //- plugins may need to refrence their JS in OXP page templates 
 
 
106 $this->assign("adminPluginWebPath", MAX::constructURL(MAX_URL_ADMIN, 'plugins')); 
 
107
108 //- plugins may need to inject their own 
109 //template based elements into normal templates 
110 $this->assign("pluginBaseDir", MAX_PATH.'/www/admin/plugins/'); 
111 $this->assign("pluginTemplateDir", '/templates/');
 
 
 
 
 
MESSAGE: Non-static method OA_Dal::getTablePrefix() should not be called statically, assuming $this from incompatible context
TYPE: Strict
FILE: /home/abcdefghi/public_html/manager/lib/max/Dal/Common.php
LINE: 137
DEBUG INFO: 
 
132 return 'MAX_Dal_Admin_'.ucfirst($table); 
133
134
135 function getTablePrefix() 
136
 
 
137 return OA_Dal::getTablePrefix(); 
 
138
139
140 /** 
141 * A private method to manage creation of the utilised OA_DB class. 
142 *
 
 
 
 
 
MESSAGE: Non-static method PEAR::getStaticProperty() should not be called statically, assuming $this from incompatible context
TYPE: Strict
FILE: /home/abcdefghi/public_html/manager/lib/pear/PEAR.php
LINE: 867
DEBUG INFO: 
 
862
863 $this->message = $message; 
864 $this->code = $code; 
865 $this->mode = $mode; 
866 $this->userinfo = $userinfo; 
 
 
867 if (!PEAR::getStaticProperty('PEAR_Error', 'skiptrace')) { 
 
868 $this->backtrace = debug_backtrace(); 
869 if (isset($this->backtrace[0]) && isset($this->backtrace[0]['object'])) { 
870 unset($this->backtrace[0]['object']); 
871
872 }
 
 
 
 
 
MESSAGE: Only variable references should be returned by reference
TYPE: Notice
FILE: /home/abcdefghi/public_html/manager/lib/max/Dal/Common.php
LINE: 148
DEBUG INFO: 
 
143 * @access private 
144 * @return mixed An instance of the OA_DB class. 
145 */ 
146 function &_getDbConnection() 
147
 
 
148 return OA_DB::singleton(); 
 
149
150
151 /** 
152 * A private method for instantiating the DB_QueryTool class. 
153 *
 
 
 
 
 
MESSAGE: Non-static method DB::isError() should not be called statically, assuming $this from incompatible context
TYPE: Strict
FILE: /home/abcdefghi/public_html/manager/lib/pear/DB/QueryTool/Query.php
LINE: 296
DEBUG INFO: 
 
291 if (is_object($dsn)) { 
292 $res = $this->db =& $dsn; 
293 } else { 
294 $res = $this->db = DB::connect($dsn, $options); 
295
 
 
296 if (DB::isError($res)) { 
 
297 // FIXXME what shall we do here? 
298 $this->_errorLog($res->getUserInfo()); 
299 } else { 
300 $this->db->setFetchMode(DB_FETCHMODE_ASSOC); 
301 }
 
 
 
 
Fatal error: Call to undefined method PEAR_Error::setFetchMode() in /home/abcdefghi/public_html/manager/lib/pear/DB/QueryTool/Query.php on line 300
 
Link to comment
Share on other sites

I did. After entering the db details, it said "installing database" and then the above error message.. Nothing after that..

 

It is so frustrating to get this to work. First it would not upgrade from Openx and now it would not even install...

 

Have to look for another solution if this does not work at all.

Link to comment
Share on other sites

@chinnu, i do not how well to respond to your question. If you are thinking i am a novice in this, then all i can say is this:-

 

I have been using Open X for years and have 2 Open X installations on this server for the last 4 years or so.

 

And I have gone through the installation guide, upgrade guide and all others that are available here and elsewhere.

 

So, please spare me the noob questions.

Link to comment
Share on other sites

Hi praveen ,

 

Yes , thats good .

 

Then i saw 3.0.2 has been released. So i dropped all tables, deleted the old (3.0) files and uploaded a fresh copy of 3.0.2. After i entered the DB details, i got the following error.

 

 

You are facing error after entering DB details that why i have mentioned about extensions

 

 I have Installed&upgraded Revive in php 5.3 everything working fine .

 

so please check error logs , because you have successfully installed Revive 3.0

Link to comment
Share on other sites

3.0 got installed because i wanted to upgrade from OpenX to Revive. But that did not go through and 3.0 got installed.

The 3.0 got installed in a new DB, new folder.

 

3.0.2 was installed in a new folder, same db as 3.0 but with all tables dropped.

 

And, nothing was changed on the server after 3.0 install and before 3.0.2 attempted install.

Link to comment
Share on other sites

Yes.

 

From the error messages, it's clear that your PHP installation is set up to not allow non-static methods to be called statically.

 

Although the code in Revive Adserver tries to tone down your PHP error levels & strictness checking, something in your configuration of PHP won't let it.

 

For now, I don't have time to completely gut and refactor the internals of the application to newer PEAR libraries (which, as you can see from the error, is the cause in the MDB2 library), so you need to update your PHP configuration so that it can work.

Link to comment
Share on other sites

I got my host to check and they have said the PHP Configuration is the same as any other and not customized. I also showed them the requirements (below) and they have everything is in order. And they wanted me to check with the developer as to why it is not installing :(

  • Apache with mod_php or any webserver using FastCGI (nginx, IIS 7+, lighttpd, etc.)
  • PHP 5.1.4+, 5.2.x, 5.3.x, 5.4.20+, 5.5.2+
  • Required PHP extensions: zlib, pcre, xml, mysql and/or pgsql
  • Suggested PHP extensions: curl and/or openssl, gd, any opcode cache extension (opcache, apc, eaccelerator, xcache)
Link to comment
Share on other sites

  • 4 weeks later...

Hi praveen,

I am facing the same issue. Did you able to solve this problem?

 

Regards,

Muneeb Ahmad.

 

I got my host to check and they have said the PHP Configuration is the same as any other and not customized. I also showed them the requirements (below) and they have everything is in order. And they wanted me to check with the developer as to why it is not installing :(

  • Apache with mod_php or any webserver using FastCGI (nginx, IIS 7+, lighttpd, etc.)
  • PHP 5.1.4+, 5.2.x, 5.3.x, 5.4.20+, 5.5.2+
  • Required PHP extensions: zlib, pcre, xml, mysql and/or pgsql
  • Suggested PHP extensions: curl and/or openssl, gd, any opcode cache extension (opcache, apc, eaccelerator, xcache)

 

Hi praveen,

I am facing the same issue. Did you able to solve this problem?

Link to comment
Share on other sites

  • 1 month later...

Just wanted to drop in and let know that i was able to successfully install a new copy of Revive 3.0.3 today.

The server configs have not changed from the time this topic was created and nothing new was done.

 

All i did was delete the 3.0.2 files and upload 3.0.3 into a brand new directory (not the same name as old). And voila, it installed :)

Link to comment
Share on other sites

  • 2 months later...

It is the PHP-Pear module issue.  Please do the following ,

 

root@ :) $ pear list
Installed packages, channel pear.php.net:
=========================================
Package          Version State
Archive_Tar      1.3.11  stable
Console_Getopt   1.3.1   stable
PEAR             1.9.4   stable
Structures_Graph 1.0.4   stable
XML_RPC          1.5.5   stable
XML_Util         1.2.1   stable
root@ :) $ pear search MDB2
Retrieving data...0%
....50%....Matched packages, channel pear.php.net:
=======================================
Package                             Stable/(Latest) Local
MDB2                                2.5.0b5 (beta)        database abstraction layer
MDB2_Driver_fbsql                   0.3.0 (alpha)         fbsql MDB2 driver
MDB2_Driver_ibase                   1.5.0b5 (beta)        ibase MDB2 driver
MDB2_Driver_mssql                   1.5.0b4 (beta)        mssql MDB2 driver
MDB2_Driver_mysql                   1.5.0b4 (beta)        mysql MDB2 driver
MDB2_Driver_mysqli                  1.5.0b4 (beta)        mysqli MDB2 driver
MDB2_Driver_oci8                    1.5.0b4 (beta)        oci8 MDB2 driver
MDB2_Driver_odbc                    0.2.0 (alpha)         ODBC Driver for MDB2
MDB2_Driver_pgsql                   1.5.0b4 (beta)        pgsql MDB2 driver
MDB2_Driver_querysim                0.7.0 (beta)          querysim MDB2 driver
MDB2_Driver_sqlite                  1.5.0b4 (beta)        sqlite MDB2 driver
MDB2_Driver_sqlsrv                  1.5.0b5 (beta)        sqlsrv MDB2 driver
MDB2_Schema                         0.8.5 (beta)          XML based database schema manager
MDB2_TableBrowser                   0.1.3 (alpha)         Database table abstraction library
Structures_DataGrid_DataSource_MDB2 0.1.11 (beta)         DataSource driver using PEAR::MDB2 and an SQL query
root@galaxy ~ :) $ pear install MDB2

 

May be some times you need to reload the apache ,  if you have php caches.  The above steps will probably fix the pear issue.

Link to comment
Share on other sites

  • 1 year later...

This is ridicules. The addServer is in it's 3.2.2 version and we are still facing the same errors! Who has the magic wand?

I'm facing shit loads "should not be called statically" erros. WTF? What sort of syntax is used to write this stuff?

Anyone actually managed to run this thing commercially?

Link to comment
Share on other sites

  • 3 weeks later...

Hi @Pat,

Sorry to hear that you're having issues. Revive Adserver is an open source project, and there is a lot of code that is old. However, that doesn't mean that it doesn't work - it just means that your PHP installation needs to be appropriately configured and set up to allow Revive Adserver to let PHP know that it has code like this, and to not display these errors. Then things work just fine, and lots of people are successfully running Revive Adserver commercially.

HTH.

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...