WebsiteBaker Community Forum

WebsiteBaker Support (2.13.x) => Modules => Topic started by: zirzy on November 30, 2020, 02:57:24 PM

Title: WebsiteBaker 2.13.0 r1, Bakery 1.84
Post by: zirzy on November 30, 2020, 02:57:24 PM
Hi,

Im having some issues with the cart with the Bakery plugin.

If i try to click add to cart or show cart all i see is a blank section. POST 500 error is logged to the console.
Client notified me about this behaviour and i have updated wbs to it's current version(2.13.0 r1) few months back, but since there is relatively low traffic, this problem might have been there for some time.

Could WBS cause this?
Title: Re: WebsiteBaker 2.13.0 r1, Bakery 1.84
Post by: dbs on November 30, 2020, 04:02:07 PM
Hello, you can try to fix the problem by change some files:All files try to call the file template.inc, but we use now Template.php.
There are two ways to fix it.

Way 1 (recommanded for WB 2.13 and higher)
- Add a double slash in front of the lines to make them useless in all files
- add the following line before the first php code (e.g. line 17, below the big comment) in all files
Code: [Select]
use vendor\phplib\Template;
Way 2 (works also)
Replace this in all files
Code: [Select]
require_once(WB_PATH.'/include/phplib/template.inc');
with this
Code: [Select]
require_once(WB_PATH.'/include/phplib/Template.php');
A test was successfully.
Title: Re: WebsiteBaker 2.13.0 r1, Bakery 1.84
Post by: zirzy on December 01, 2020, 09:22:26 AM
That solution number one seemed to work nicely, thanks!
Title: Re: WebsiteBaker 2.13.0 r1, Bakery 1.84
Post by: Tonke on April 25, 2022, 06:56:25 PM
Hi, even droplet "Bakery Minicart" line 7 can be fixed the way dbs suggested.