Author Topic: WebsiteBaker 2.13.0 r1, Bakery 1.84  (Read 583 times)

Offline zirzy

  • Posts: 178
WebsiteBaker 2.13.0 r1, Bakery 1.84
« 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?

Offline dbs

  • Betatester
  • **
  • Posts: 8624
  • Gender: Male
  • tioz4ever
    • WebsiteBaker - jQuery-Plugins - Module - Droplets - Tests
Re: WebsiteBaker 2.13.0 r1, Bakery 1.84
« Reply #1 on: November 30, 2020, 04:02:07 PM »
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: [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.
« Last Edit: November 30, 2020, 04:41:08 PM by dbs »

Offline zirzy

  • Posts: 178
Re: WebsiteBaker 2.13.0 r1, Bakery 1.84
« Reply #2 on: December 01, 2020, 09:22:26 AM »
That solution number one seemed to work nicely, thanks!