Upgrade Error 2.8.3 -> 2.13.0 class.database.php

dbs

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?
[url="https://onkel-franky.de"]https://onkel-franky.de[/url]

chris_s

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).

dbs

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
[url="https://onkel-franky.de"]https://onkel-franky.de[/url]

chris_s

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.

dbs

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?
[url="https://onkel-franky.de"]https://onkel-franky.de[/url]

chris_s

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.



chris_s

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!).

hgs

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.)

ruebenwurzel

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?

chris_s

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?