WebsiteBaker Support (2.12.x) > Help en ondersteuning (dutch)

Gastenboek foutmelding

(1/2) > >>

HK:
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):
--- End quote ---
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

Gast:
do you use the "ban" module? (take a look into the modules-Folder to a module with the name = ban)

DarkViper:

--- Quote from: HK on May 01, 2019, 09:14:33 AM ---
--- Quote ---There was an uncatched exception
Call to private database::__construct() from invalid context
in line (43) of (/modules/guestbook/gstbk_add.php):
--- End quote ---
De module is Guestbook 2.8.5 in WB 2.12.0.

--- End quote ---
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

Gast:
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: ---if (file_exists(WB_PATH.'/modules/ban/banblock.php')){
        include WB_PATH.'/modules/ban/banblock.php';
}

--- End code ---

hgs:
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

Navigation

[0] Message Index

[#] Next page

Go to full version