1
rabideau
2.0.3---> 2.0.5 Upgrade failure
  • 2003/10/9 19:33

  • rabideau

  • Home away from home

  • Posts: 1042

  • Since: 2003/4/25


I followed the instructions of copying 2.0.5 patch onto my 2.0.3 installed site. I get many errors such as:

criteria = null, $id_as_key = false) { $ret = array(); $limit = $start = 0; $sql = 'SELECT * FROM '.$this->db->prefix('modules'); if (isset($criteria) && is_subclass_of($criteria, 'criteriaelement')) { $sql .= ' '.$criteria->renderWhere(); $sql .= ' ORDER BY weight '.$criteria->getOrder().', mid ASC'; $limit = $criteria->getLimit(); $start = $criteria->getStart(); } $result = $this->db->query($sql, $limit, $start); if (!$result) { return $ret; } while ($myrow = $this->db->fetchArray($result)) { $module = new XoopsModule(); $module->assignVars($myrow); if (!$id_as_key) { $ret[] =& $module; } else { $ret[$myrow['mid']] =& $module; } unset($module); } return $ret; } /** * Count some modules * * @param object $criteria {@link CriteriaElement} * @return int **/ function getCount($criteria = null) { $sql = 'SELECT COUNT(*) FROM '.$this->db->prefix('modules'); if (isset($criteria) && is_subclass_of($criteria, 'criteriaelement')) { $sql .= ' '.$criteria->renderWhere(); } if (!$result =& $this->db->query($sql)) { return 0; } list($count) = $this->db->fetchRow($result); return $count; } /** * returns an array of module names * * @param bool $criteria * @param boolean $dirname_as_key * if true, array keys will be module directory names * if false, array keys will be module id * @return array **/ function &getList($criteria = null, $dirname_as_key = false) { $ret = array(); $modules =& $this->getObjects($criteria, true); foreach (array_keys($modules) as $i) { if (!$dirname_as_key) { $ret[$i] =& $modules[$i]->getVar('name'); } else { $ret[$modules[$i]->getVar('dirname')] =& $modules[$i]->getVar('name'); } } return $ret; } } ?>

On the top of the page. Any ideas how this might be fixed?

...mark

samidiabmd.com

2
dawilby
Re: 2.0.3---> 2.0.5 Upgrade failure
  • 2003/10/9 20:34

  • dawilby

  • Module Developer

  • Posts: 31

  • Since: 2002/1/3 0


Mark:

I did a test tonight and used the complete package 2.0.5 for the update. No errors whatsoever....

Please try this and let us know what happened!

3
ackbarr
Re: 2.0.3---> 2.0.5 Upgrade failure

try re-uploading /kernel/module.php from the update package to your webserver.

4
rabideau
Re: 2.0.3---> 2.0.5 Upgrade failure
  • 2003/10/11 12:29

  • rabideau

  • Home away from home

  • Posts: 1042

  • Since: 2003/4/25


Hello all,

I still have no idea what caused the problem. Here's what it took to fix it though.

I did a complete unistall of my site (deleted all files on the server).

I upgraded a backup version on my local pc. Then uploaded the new site to the server. Now it works.

I guess I should be happy that the problem's gone...

But I wish I knew what caused it. btw. another feature of the bug was that it sent email messages to one of my webmaster accounts (but not all). The email messages contained the dumps that looked like that posted earlier.

Login

Who's Online

441 user(s) are online (319 user(s) are browsing Support Forums)


Members: 0


Guests: 441


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits