How to upgrade to 1.1.5 using AutoMod

How to upgrade to 1.1.5 using AutoMod

Postby andi » Tue Feb 28, 2012 8:10 pm

Gallery Version: 1.1.4
phpBB Version: 3.0.9
Gallery-Link: http://forum.bebenhausen.net

PHP Version: 5.2.17
Database Version: MySQL 5.0.91-log


Error message:

Error description and message
I've seen there is a new version of phpgallery (version 1.1.5). I've installed phpgallery (version 1.1.4) using Automod some time ago and now checked on the "MODS" tab in the ACP - there it says that I'm running 1.1.4 and there is no update available. Any idea what I would need to do to upgrade phpgallery using AutoMod (if this is possible at all) - there's an upload function within AutoMod, but I'm not really sure if and how I should use this...
andi
Posts < 10
Posts < 10
 
Posts: 9
Topics: 3
Joined: Tue Nov 29, 2011 12:39 am

Re: How to upgrade to 1.1.5 using AutoMod

Postby nickvergessen » Thu Mar 01, 2012 6:41 pm

cheers nickvergessen :geek:

Member of phpBB Development-Team
No Support via PM
User avatar
nickvergessen
Administrator
Administrator
 
Posts: 5748
Topics: 217
Images: 139
Joined: Mon Oct 15, 2007 4:15 pm
phpBB.de: nickvergessen
phpBB.com: nickvergessen

Re: How to upgrade to 1.1.5 using AutoMod

Postby andi » Thu Mar 01, 2012 9:54 pm

Phew - it doesn't work that way, at least not for me. I did follow everything described step-by-step but in the end it screwed up my whole forum. The main user-forum is still accessible (without any phpgallery showing up though) and the ACP is not accessible anymore.

The error message I got is:

Code: Select all
Fatal error: Call to undefined function phpbb_version_compare()
in /mnt/webd/.../forum/includes/acp/acp_main.php on line 419


Please help.
andi
Posts < 10
Posts < 10
 
Posts: 9
Topics: 3
Joined: Tue Nov 29, 2011 12:39 am

Re: How to upgrade to 1.1.5 using AutoMod

Postby nickvergessen » Thu Mar 01, 2012 10:57 pm

Looks like you are not using phpBB 3.0.9?
cheers nickvergessen :geek:

Member of phpBB Development-Team
No Support via PM
User avatar
nickvergessen
Administrator
Administrator
 
Posts: 5748
Topics: 217
Images: 139
Joined: Mon Oct 15, 2007 4:15 pm
phpBB.de: nickvergessen
phpBB.com: nickvergessen

Re: How to upgrade to 1.1.5 using AutoMod

Postby andi » Thu Mar 01, 2012 11:56 pm

I'm using the latest version, which is phpBB 3.0.10 - does this help?
andi
Posts < 10
Posts < 10
 
Posts: 9
Topics: 3
Joined: Tue Nov 29, 2011 12:39 am

Re: How to upgrade to 1.1.5 using AutoMod

Postby nickvergessen » Fri Mar 02, 2012 12:09 am

Can you please check, whether the following code is in your includes/functions.php:
Code: Select all
/**
* Wrapper for version_compare() that allows using uppercase A and B
* for alpha and beta releases.
*
* See http://www.php.net/manual/en/function.version-compare.php
*
* @param string $version1      First version number
* @param string $version2      Second version number
* @param string $operator      Comparison operator (optional)
*
* @return mixed               Boolean (true, false) if comparison operator is specified.
*                        Integer (-1, 0, 1) otherwise.
*/
function phpbb_version_compare($version1, $version2, $operator = null)
{
   $version1 = strtolower($version1);
   $version2 = strtolower($version2);

   if (is_null($operator))
   {
      return version_compare($version1, $version2);
   }
   else
   {
      return version_compare($version1, $version2, $operator);
   }
}
cheers nickvergessen :geek:

Member of phpBB Development-Team
No Support via PM
User avatar
nickvergessen
Administrator
Administrator
 
Posts: 5748
Topics: 217
Images: 139
Joined: Mon Oct 15, 2007 4:15 pm
phpBB.de: nickvergessen
phpBB.com: nickvergessen

Re: How to upgrade to 1.1.5 using AutoMod

Postby andi » Fri Mar 02, 2012 12:23 am

I searched in includes/functions.php for several of the lines above (quite a lengthy file with 4784 lines), e.g. I searched for "phpbb_version_compare" but nothing was found. So obviously that part is not included in the file...
andi
Posts < 10
Posts < 10
 
Posts: 9
Topics: 3
Joined: Tue Nov 29, 2011 12:39 am

Re: How to upgrade to 1.1.5 using AutoMod

Postby nickvergessen » Fri Mar 02, 2012 1:07 am

Well so this file is not 3.0.10 anymore. Can you try to reedit your includes/functions.php (based on a new 3.0.10) or did you even make a backup before trying the manual?
cheers nickvergessen :geek:

Member of phpBB Development-Team
No Support via PM
User avatar
nickvergessen
Administrator
Administrator
 
Posts: 5748
Topics: 217
Images: 139
Joined: Mon Oct 15, 2007 4:15 pm
phpBB.de: nickvergessen
phpBB.com: nickvergessen


Return to Installation & Update

Who is online

Users browsing this forum: No registered users and 0 guests

 

cron