WebsiteBaker Logo
  • *
  • Templates
  • Help
  • Add-ons
  • Download
  • Home
*
Welcome, Guest. Please login or register.

Login with username, password and session length
 

News


WebsiteBaker 2.13.6 is now available!


Will it continue with WB? It goes on! | Geht es mit WB weiter? Es geht weiter!
https://forum.websitebaker.org/index.php/topic,32340.msg226702.html#msg226702


The forum email address board@websitebaker.org is working again
https://forum.websitebaker.org/index.php/topic,32358.0.html


R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WB
https://forum.websitebaker.org/index.php/topic,32355.0.html


* Support WebsiteBaker

Your donations will help to:

  • Pay for our dedicated server
  • Pay for domain registration
  • and much more!

You can donate by clicking on the button below.


  • Home
  • Help
  • Search
  • Login
  • Register

  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.13.x) »
  • Modules »
  • WebsiteBaker 2.13.0 r1, Bakery 1.84
  • Print
Pages: [1]   Go Down

Author Topic: WebsiteBaker 2.13.0 r1, Bakery 1.84  (Read 8000 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?
Logged

Offline dbs

  • Betatester
  • **
  • Posts: 8914
  • 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 »
Logged
https://onkel-franky.de

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!
Logged

Offline Tonke

  • Posts: 2
Re: WebsiteBaker 2.13.0 r1, Bakery 1.84
« Reply #3 on: April 25, 2022, 06:56:25 PM »
Hi, even droplet "Bakery Minicart" line 7 can be fixed the way dbs suggested.
Logged

  • Print
Pages: [1]   Go Up
  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.13.x) »
  • Modules »
  • WebsiteBaker 2.13.0 r1, Bakery 1.84
 

  • SMF 2.0.19 | SMF © 2017, Simple Machines
  • XHTML
  • RSS
  • WAP2