Author Topic: Upgrade Error 2.8.3 -> 2.13.0 class.database.php  (Read 234 times)

Offline chris_s

  • Posts: 31
Upgrade Error 2.8.3 -> 2.13.0 class.database.php
« 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?

Offline ruebenwurzel

  • Betatester
  • **
  • Posts: 8408
  • Gender: Male
  • Keep on Rockin
    • Familie Gallas Online
Re: Upgrade Error 2.8.3 -> 2.13.0 class.database.php
« Reply #1 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?

Offline hgs

  • Betatester
  • **
  • Posts: 1341
    • EFG MG
Re: Upgrade Error 2.8.3 -> 2.13.0 class.database.php
« Reply #2 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)
LG Harald

"Fange nie an, aufzuhören - höre nie auf, anzufangen." Marcus Tullius Cicero (106-43 v.Chr.)

Offline chris_s

  • Posts: 31
Re: Upgrade Error 2.8.3 -> 2.13.0 class.database.php
« Reply #3 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!).

Offline chris_s

  • Posts: 31
Re: Upgrade Error 2.8.3 -> 2.13.0 class.database.php
« Reply #4 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:
  • thornhill/wb  (accesed as http://localhost/thornhill/wb  ot just localhost/thornhill/wb
  • WB_2_13_0_b which contained initially the downloaded zip file as well as unzip.php which I extracted from the downloaded Zip file's Install directory.

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.



Offline dbs

  • Betatester
  • **
  • Posts: 8561
  • Gender: Male
  • tioz4ever
    • WebsiteBaker - jQuery-Plugins - Module - Droplets - Tests
Re: Upgrade Error 2.8.3 -> 2.13.0 class.database.php
« Reply #5 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?

Offline chris_s

  • Posts: 31
Re: Upgrade Error 2.8.3 -> 2.13.0 class.database.php
« Reply #6 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.

Offline dbs

  • Betatester
  • **
  • Posts: 8561
  • Gender: Male
  • tioz4ever
    • WebsiteBaker - jQuery-Plugins - Module - Droplets - Tests
Re: Upgrade Error 2.8.3 -> 2.13.0 class.database.php
« Reply #7 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

Offline chris_s

  • Posts: 31
Re: Upgrade Error 2.8.3 -> 2.13.0 class.database.php
« Reply #8 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).

Offline dbs

  • Betatester
  • **
  • Posts: 8561
  • Gender: Male
  • tioz4ever
    • WebsiteBaker - jQuery-Plugins - Module - Droplets - Tests
Re: Upgrade Error 2.8.3 -> 2.13.0 class.database.php
« Reply #9 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?

 

postern-length