Welcome, Guest. Please login or register.
Did you miss your activation email?
May 26, 2012, 07:59:09 PM

Login with username, password and session length
Search:     Advanced search
Wollen Sie dem WebsiteBaker Team beitreten?
Nähere Informationen finden Sie unter hier und auf unserer neuen Webseite.
155551 Posts in 21715 Topics by 7737 Members
Latest Member: gx-world
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: Errors upgrading from 2.7 to 2.8.2  (Read 321 times)
MissyW

Offline Offline

Posts: 42


« on: August 29, 2011, 07:28:02 AM »

I have followed the instructions to upgrade from 2.7 to 2.8.2, but got the following errors when running the upgrade-script.php :-
Code:
Notice: Use of undefined constant DEFAULT_THEME - assumed 'DEFAULT_THEME' in C:\xampp\htdocs\James-wb2\framework\initialize.php on line 132

Notice: Use of undefined constant DEFAULT_THEME - assumed 'DEFAULT_THEME' in C:\xampp\htdocs\James-wb2\framework\initialize.php on line 133
WebsiteBaker Project
WebsiteBaker Upgrade
WARNING
Warning:
It is not possible to upgrade from WebsiteBaker Versions before 2.7.0.
For upgrading to version 2.8.2 you must upgrade first to v.2.7.0 at least!!!

However, the existing version was definitely 2.7 (I have a backup copy, and when I log in to admin, it says version 2.7)

I then remembered to install the 2.8.2 fixes rev 2484 (and by the way, this is not mentioned in the upgrade instructions). So I downloaded the fixes, extracted the files and overwrote them to my directory, but I still get the same errors from the upgrade-script (even after clearing my browser cache).  huh
Logged
ruebenwurzel
WebsiteBaker Org e.V.

Offline Offline

Posts: 7973



WWW
« Reply #1 on: August 29, 2011, 09:04:49 PM »

Hello,

the issue is in the database. The upgrade-script in pre 2.8.x versions did not change the version in the database. But this can be fixed by adding the version manually in the settings table. Use Phpmyadmin and change in your database in the settings table the version to 2.7.0. Then Upgrade script should work fine.

To update from 2.7.0 to 2.8.2 please use the full package of WB 2.8.2. Unzip this Package, delete the install dir and the config.php and make a backup of the frontend.css from news and form mudul. Upload then this package to your Webserver. Before running the upgrade-script you should also upload the fixed-file package from the official Download Page.

After all files are uploaded (be shure that all files are replaced) run the upgrade-script. This should now work without issues.

Matthias
Logged
MissyW

Offline Offline

Posts: 42


« Reply #2 on: September 06, 2011, 07:12:01 AM »

Thanks, Reuben.  The database settings table said 2.7 in the existing version, but when I changed it to 2.7.0 as you instructed, I was able to run the upgrade-script. smiley
Logged
Pages: [1]   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!