Author Topic: Error message in WebsiteBaker Error log  (Read 294 times)

Offline henri

  • Posts: 143
Error message in WebsiteBaker Error log
« on: November 17, 2019, 07:49:51 AM »
In WebsiteBaker Error log I get the following error message:

Sun, 17 Nov 2019 06:09:17 +0000 [E_USER_DEPRECATED] /framework/class.frontend.php:[351] from /modules/globalblocks/include.php:[67] frontend->preprocess "invalid method call: frontend::preprocess""

I also received this error message in WB version 2.11
After upgrading to version 2.12.2 -r379 I still get this error message with every page I open in the website.

In another website I have done a completely new installation with version 2.12.2-r379. and I don't get an error message there.

PHP error level: Production

PHP Version: 7.3.5
Website Baker Version: 2.12.2 -r379

Offline dbs

  • Betatester
  • **
  • Posts: 8402
  • Gender: Male
  • tioz4ever
    • WebsiteBaker - jQuery-Plugins - Module - Droplets - Tests
Re: Error message in WebsiteBaker Error log
« Reply #1 on: November 17, 2019, 08:40:08 AM »
Hi, in such messages the second part tells you where the problem is.
Code: [Select]
... from /modules/globalblocks/include.php:[67]
Go to this place and remove the whole line with $wb->preprocess or look for a newer version of the module.

You are not the first user with this problem.
If you search the forum for e.g. "preprocess" you will find similar answers.

Offline henri

  • Posts: 143
Re: Error message in WebsiteBaker Error log
« Reply #2 on: November 17, 2019, 09:23:33 AM »
Thanks dbs

Problem solved.

Offline DarkViper

  • Forum administrator
  • *****
  • Posts: 3055
  • Gender: Female
Re: Error message in WebsiteBaker Error log
« Reply #3 on: November 17, 2019, 10:37:47 AM »
::preprocess() ist eine Methode, die bereits vor über 5 Jahren auf 'deprecated' gesetzt und mit WB-2.10.0 entfernt wurde.
Sollte diese Funktionalität ausnahmsweise doch einmal wirklich zwingend benötigt werden, kann dafür die API des Modules 'output_filter' genutzt werden:

::preprocess() is a method that was set deprecated over 5 years ago and removed with WB-2.10.0.
If, in exceptional cases, this functionality is really required, the API of the module 'output_filter' can be used for this:

$sContent OutputFilterApi('ReplaceSysVar'$sContent);
Der blaue Planet - er ist nicht unser Eigentum - wir haben ihn nur von unseren Nachkommen geliehen

"You have to take the men as they are… but you can not leave them like that !" :-P
Das tägliche Stoßgebet: Oh Herr, wirf Hirn vom Himmel !