WebsiteBaker Community Forum

WebsiteBaker Support (2.12.x) => General Help & Support => Help en ondersteuning (dutch) => Topic started by: HK on May 01, 2019, 09:14:33 AM

Title: Gastenboek foutmelding
Post by: HK on May 01, 2019, 09:14:33 AM
Dag Bakkers, het gastenboek op https://www.pierewaaienscheveningen.nl geeft een foutmelding als er wordt geprobeerd een bijdrage te schrijven:
Quote
There was an uncatched exception
Call to private database::__construct() from invalid context
in line (43) of (/modules/guestbook/gstbk_add.php):
De module is Guestbook 2.8.5 in WB 2.12.0.
Ik heb geprobeerd een nieuwere versie van het gastenboek te vinden voor een evt. nodige update maar bij de add-on's kan ik het gastenboek helemaal niet meer vinden!
De websitepagina: https://www.pierewaaienscheveningen.nl/pages/gastenboek.php
Title: Re: Gastenboek foutmelding
Post by: Gast on May 01, 2019, 12:21:27 PM
do you use the "ban" module? (take a look into the modules-Folder to a module with the name = ban)
Title: Re: Gastenboek foutmelding
Post by: DarkViper on May 01, 2019, 01:09:24 PM
Quote
There was an uncatched exception
Call to private database::__construct() from invalid context
in line (43) of (/modules/guestbook/gstbk_add.php):
De module is Guestbook 2.8.5 in WB 2.12.0.
This error message only occurs when attempting to create a new object instance of class 'database'.
For example, using: $database = new database();
I suspect that you have updated your WB from a very old version to 2.12 and therefore your guestbook version 2.8.5 is no longer compatible here.
You can probably solve the problem by updating your guestbook to version 2.8.7.2 modified by jacobi22.

A possible download may be here: Re: Probleme mit dem Guestbook 2.8.7 (https://forum.WebsiteBaker.org/index.php/topic,30074.msg209860.html#msg209860)
Title: Re: Gastenboek foutmelding
Post by: Gast on May 01, 2019, 02:26:58 PM
the script  in my old guestbook-modules show me in this place (gstbk_add.php - Line 43) the include of the ban-module (if avaiable), but i dont have the exact version 2.8.5 here. i've never seen this ban-module, but if you use it in this installation, it is also possible, that the error comes from this module (and not only from the guestbook)

search for this lines in gstbk_add.php (~line 42) and add a double slash (//) in the front of every line, if you work with this module and if you get more errors after the upgrade

Code: [Select]
if (file_exists(WB_PATH.'/modules/ban/banblock.php')){
        include WB_PATH.'/modules/ban/banblock.php';
}
Title: Re: Gastenboek foutmelding
Post by: hgs on May 01, 2019, 03:38:20 PM
Version 2.8.8 runs without any bugs with php7.3 and WB 2.12.2
See link
https://forum.WebsiteBaker.org/index.php/topic,30074.msg210988.html#msg210988

To try in the test environment:
https://install.umojasingers.de/pages/gaestebuch.php
Title: Re: Gastenboek foutmelding
Post by: HK on May 02, 2019, 10:13:12 AM
Ik heb een update gedaan met het gastenboek 2.8.8 en daarvoor de link gebruikt die hgs heeft gegeven. Het was niet nodig de oude versie te verwijderen; de update heeft de oude versie overschreven. Nieuwe berichten kunnen nu weer toegevoegd worden; de foutmelding is verdwenen. De oude berichten zijn nog gewoon aanwezig. Geweldig, 'it worked like a charm'. Nog een paar puntjes:
Title: Re: Gastenboek foutmelding
Post by: HK on May 02, 2019, 10:32:01 AM
Gevonden! De tekst heb ik kunnen aanpassen in het NL taalbestand van de Guestbook Module. Logisch natuurlijk. De andere twee puntjes blijven nog wel even staan natuurlijk!