WebsiteBaker Support (2.13.x) > Modules

WebsiteBaker 2.13.0 r1, Bakery 1.84

(1/1)

zirzy:
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?

dbs:
Hello, you can try to fix the problem by change some files:
* view_cart.php (line 29)
* view_confirmation.php (line 27)
* view_form.php (line 26)
* view_payment_methods.php (line 26)
* view_summary.php (line 29)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: ---use vendor\phplib\Template;
--- End code ---

Way 2 (works also)
Replace this in all files

--- Code: ---require_once(WB_PATH.'/include/phplib/template.inc');
--- End code ---

with this

--- Code: ---require_once(WB_PATH.'/include/phplib/Template.php');
--- End code ---

A test was successfully.

zirzy:
That solution number one seemed to work nicely, thanks!

Tonke:
Hi, even droplet "Bakery Minicart" line 7 can be fixed the way dbs suggested.

Navigation

[0] Message Index

Go to full version