WebsiteBaker Community Forum

WebsiteBaker Support (2.11.x) => General Help & Support => Topic started by: CodeALot on February 21, 2018, 02:35:34 PM

Title: New errormessages in errorlog
Post by: CodeALot on February 21, 2018, 02:35:34 PM
After upgrading from RC2 to 2.11 (final), I get a lot of errormessages in my errorlog:
Code: [Select]
2018-02-21T13:31:36+00:00 [E_USER_DEPRECATED] /framework/class.frontend.php:[328] from /modules/droplets/droplets.php(34) : eval()'d code:[5] frontend->preprocess "invalid method call: frontend::preprocess"
Environment:
Webserver Software: Linux vs5213 4.9.0-0.bpo.5-amd64 #1 SMP Debian 4.9.65-3+deb9u2~bpo8+1 (2017-01-05) x86_64
PHP-Erweiterung: mysqli  Dokumentation curl  Dokumentation mbstring  Dokumentation
PHP-Version: 7.1.10-1+0~20170929170631.9+jessie~1.gbp501135
WebsiteBaker-Version: 2.11.0 -r77
Title: Re: New errormessages in errorlog
Post by: Luisehahne on February 21, 2018, 02:50:19 PM
Hi,

look in scripts at "$wb->preprocess" and remove the line and than errolor is empty

Dietmar
Title: Re: New errormessages in errorlog
Post by: dbs on February 21, 2018, 03:18:34 PM
Seems in a droplet in line 5 you will find the "$wb->preprocess".
Remove or comment out the whole line.
Title: Re: New errormessages in errorlog
Post by: CodeALot on February 21, 2018, 03:34:59 PM
Found the 'culprit', there was a line
Code: [Select]
$wb->preprocess($wb_page_data);in the ShortURL-droplet.
 
I commented the line out and it still seems to work ok. No more additional errors in the log.
Title: Re: New errormessages in errorlog
Post by: Gast on February 21, 2018, 04:48:35 PM
additional info about preprocess()

preprocess was also a old deprecated function to replace wblinks in the content with a "real" link and is since any years a empty function without a job - is only designed to catch possible errors (as in the current case). This has been the case since WB 2.8.1 (I think so)