WebsiteBaker Community Forum

WebsiteBaker Support (2.13.x) => General Help & Support => Topic started by: chris_s on February 04, 2021, 12:11:14 AM

Title: Upgrade Error 2.8.3 -> 2.13.0 class.database.php
Post by: chris_s on February 04, 2021, 12:11:14 AM
I am trying to do an upgrade from 2.8.3 to 2.13.0 (using the Wizard). I got it started and then it returned an error:

  There was an unknown exception. Call to undefined function mysql_connect() in line (59) of (\framework\class.database.php)

I checked and there is a mysql_connect function in the connect function in the old class.database.php module.

Does this mean that the upgrade script can't handle the upgrade in one step and that I will have to upgrade to some other level first?
Title: Re: Upgrade Error 2.8.3 -> 2.13.0 class.database.php
Post by: ruebenwurzel on February 04, 2021, 06:47:39 AM
Hello,

Did you upload the zip-Package and use the unzip.php (recommanded Version) or did you upload all files with FTP and run the upgradescript?
Title: Re: Upgrade Error 2.8.3 -> 2.13.0 class.database.php
Post by: hgs on February 04, 2021, 07:59:00 AM
The upgrade goes from version 2.8.3 in one step to version 2.13

Important! Important! Create a backup of the website and the database!

This method has always worked.
1. upload the zip package (WebsiteBaker-2_13_0.zip) and the file unzip.php.zip to the server.
2. switch the website to at least php7.3 better php7.4.
3. Rename the file unzip.php.zip to unzip.php.
4. call the website https://your-domain.tld/unzip.php and follow the instructions.
5. when this is done click on the button <backend>.
5. login as SuperAdmin in the backend and click the link to the upgrade-script.
6. now several steps happen. The config.php will be rewritten in a new unified format by pressing F5.
7. after that the instruction for the upgrade-script appears.
8. select all switches and start the upgrade-script.

There is a small video (unfortunately only in german)
https://www.youtube.com/watch?v=2Vi5v7vhKx8

Translated with www.DeepL.com/Translator (free version)
Title: Re: Upgrade Error 2.8.3 -> 2.13.0 class.database.php
Post by: chris_s on February 04, 2021, 03:57:25 PM
Thanks for the feedback. I did it by unzipping the file and up loading that. I will try it the other way and let you know what happens. I am running this under WAMP, not on the server (but that shouldn't make any difference!).
Title: Re: Upgrade Error 2.8.3 -> 2.13.0 class.database.php
Post by: chris_s on February 04, 2021, 09:00:17 PM
It tried it again as suggested and I (eventually) got the same error as the very first time I tried it.

As mentioned previously, I am trying to do this on my local WAMP server. In my WWW directory, I have two directories:

I have PHP 7.3.1 in this WAMP package.

The file was already unzipped in the Install directory so I didn't need to unzip it.

I ran the unzip and that seemed to complete successfully.
I clicked on the <backend> button
This took me to the upgrade panel. I filled that in and ran it.
  The first time I used  localhost/...  in step 3 and it created a bad url for the index.php module and stopped (404).
  I tried it again using http://localhost... and that avoided the previous error.

The second time through, it stopped (again) with the same error I had the very first time:
  There was an unknown exception. Call to undefined function mysql_connect() in line (59) of
  (framework\class.database.php)

Thus, I am stuck at the same point.


Title: Re: Upgrade Error 2.8.3 -> 2.13.0 class.database.php
Post by: dbs on February 04, 2021, 09:37:05 PM
Hi, there is no line 59 with mysql_connect in framework/class.database,php of WB 2.13.
And there is nothing to fill in the upgrade-script.
So i think you do something wrong.
Which is your WAMP server?
Title: Re: Upgrade Error 2.8.3 -> 2.13.0 class.database.php
Post by: chris_s on February 05, 2021, 07:19:09 PM
There is a mysql_connect in the class.database of the old 2.8.3 version that I am trying to upgrade. I am quite sure that is what it is referring to. The Wamp package is the latest version that I downloaded a few days ago.
Title: Re: Upgrade Error 2.8.3 -> 2.13.0 class.database.php
Post by: dbs on February 05, 2021, 08:04:09 PM
But you tell us that after upgrade you see this message.
This means you have unzipped the WB 2.13 in another place. No new files in your 2.8.3.  :)

WAMP is a generic term for local environments.
WindowsApacheMySQLPHP
Title: Re: Upgrade Error 2.8.3 -> 2.13.0 class.database.php
Post by: chris_s on February 06, 2021, 07:20:52 PM
That is correct. The unzip completed. I checked the 2.8.3 directory that was to be updated and none of the modules were changed (they all still have 2014 dates).
Title: Re: Upgrade Error 2.8.3 -> 2.13.0 class.database.php
Post by: dbs on February 06, 2021, 07:34:27 PM
Don't use the unzip.php. You are on windows and can unzip in the windows way.
You put the zip into /thornhill/wb and extract there?