Bookings module for WB 2.12.2

hgs

It is astonishing that the module continued to run as long as it did, but php8.2 seems to be the end.
The module was designed for Website Baker 2.7.x

If the developer doesn't offer a fix, I don't see a chance
LG Harald

"Fange nie an, aufzuhören - höre nie auf, anzufangen." Marcus Tullius Cicero (106-43 v.Chr.)

Mux

#17
booking-module generally works after updating to wb 2.13. and php 8.1
But the bookings-edit-button in the frontend does not.
I get an error "Function strftime() is deprecated".
It's in bookings_v2/functions.php. I will try to replace it with date. Maybe an update of bookings-module is possible?

EDIT: Or maybe sb can tell me how to convert these two lines (and there are some more)
strftime( $dateformat.' %H:%M', mktime( $begindate['hour'], $begindate['minute'], 0, $begindate['month'], $begindate['day'], $begindate['year']) ),
           strftime( $dateformat.' %H:%M', mktime( $enddate['hour'], $enddate['minute'], $enddate['second'], $enddate['month'], $enddate['day'], $enddate['year']) ),

to date?

Thanks!


hgs

Downloadlinks
mpForm
FolderGallery
booking in the attachment

Here is the official page from WebsiteBaker about addon
LG Harald

"Fange nie an, aufzuhören - höre nie auf, anzufangen." Marcus Tullius Cicero (106-43 v.Chr.)

Mux

Quote from: hgs on January 21, 2021, 08:12:23 AM

https://aktuell.umojasingers.de/de/module-aus-dem-addon/foldergallery/ (Foldergallery Version 3.4.0-dev2)
https://aktuell.umojasingers.de/de/module-aus-dem-addon/booking/ (Bookings Version 2.41.1)
https://aktuell.umojasingers.de/de/module-aus-dem-addon/mpform/ (mpForm Version 1.3.36)
The modules are not yet public, because they run partly only with WB 2.13
The links to the modules we can send by pm if it is wanted.


Hi, the links to the module-files are not working anymore. Anybody knows if I can get the files somewhere?
Thx

svsanchez

Hello hgs and dbs, I finally decided to do this update to 2.13.0 and everything worked perfectly.

Foldergallery 3.4 .0-dev1 still required me to uninstall and reinstall to make the galleries work.

Thanks a lot!!! (Y) (Y) (Y)

hgs

Here is the module as an attachment, but please note that it is still your development version. So it is still being worked on. But it all works.
LG Harald

"Fange nie an, aufzuhören - höre nie auf, anzufangen." Marcus Tullius Cicero (106-43 v.Chr.)

dbs

The upgrade instruction are all the same like described here:
https://forum.WebsiteBaker.org/index.php/topic,31528.0.html

quote:
- make a backup of all files and the database (!important)

+Recommanded way: (fast & safe)
- download WB ZIP package & unzip.php.zip
- rename unzip.php.zip to unzip.php
- upload WB ZIP package & unzip.php to your WB root folder (where the config.php is located)
- run unzip.php in your browser (https://yourdomain.com/unzip.php) (please replace yourdomain.com with your own domain)
- login in your backend as Super-Admin (admin with id 1) and run upgrade-script via upgrade link or via wb-info panel (i-button)

The unzip.php and the WB ZIP delete themselves (if it is checked in the unzip script) after the successful execution of the unzip.php.

+Alternative way: (slow & oldscool)
- download WB ZIP package & unpack
- upload via FTP (overwrite existing files!)
- login as Super-Admin (ID 1)
- start upgrade script
[url="https://onkel-franky.de"]https://onkel-franky.de[/url]

svsanchez

Hello hgs, that's great news! Yes please, send me the links to the modules Foldergallery 3.4.0-dev2!

I already downloaded the Bookings 2.41.1 from dbs.

Can you also point me to the instructions for upgrading from WB 2.12.2 to WB 2.13 please!

Thank you...

hgs

Ok, the translation by deepl.com seems to have translated something wrong.
The version of dbs also works with the latest WB 2.13 and php 7.4.

For this new version of WebsiteBaker there is also a working foldergallery.
Here is the link to a test page with all modules, but some of them are not yet php 7.4 ready. So don't be surprised that there are pages that don't work.
But the foldergallery , booking and mpform are also installed here and it works.
https://aktuell.umojasingers.de/de/module-aus-dem-addon/foldergallery/ (Foldergallery Version 3.4.0-dev2)
https://aktuell.umojasingers.de/de/module-aus-dem-addon/booking/ (Bookings Version 2.41.1)
https://aktuell.umojasingers.de/de/module-aus-dem-addon/mpform/ (mpForm Version 1.3.36)
The modules are not yet public, because they run partly only with WB 2.13
The links to the modules we can send by pm if it is wanted.

For testing it would be easiest to use the USB version of WebsiteBaker.
Here is the link:
https://portable.websitebaker.org/en/about-portable-edition.php

Translated with www.DeepL.com/Translator (free version)
LG Harald

"Fange nie an, aufzuhören - höre nie auf, anzufangen." Marcus Tullius Cicero (106-43 v.Chr.)

svsanchez

Quote from: hgs on January 21, 2021, 06:16:20 AM
Have successfully tested the version of dbs with WB 2.12.2 and php 7.3 via update.

Same in the new WB 2.13 with php 7.4
Good Job (Y)

Hgs:

I understand by what you say that the Bookings plugin will only work on WB 2.12.2 with php 7.3, and will NOT work with php 7.4.

My webhost is about to remove php versions up tp 7.3 from my server, so I need to work with php version 7.4. Do you know if the mpform and foldergallery plugins will work on WB 2.13? This particular site that I have to upgrade uses the 3 plugins (Bookings, mpforms and foldergallery)

svsanchez

Hello both of you, thanks for your replies.

I know how to create a subdomain on my webhost, but I don't know how to "duplicate" my site and place it on the subdomain. Specifically, I think I wouldn't have a problem copying the files into the subdomain, but I have no idea how to duplicate the DB.

I would greatly appreciate if you could point me to instructions for creating a duplicate of my site on a subdomain!


hgs

Have successfully tested the version of dbs with WB 2.12.2 and php 7.3 via update.

Same in the new WB 2.13 with php 7.4
Good Job (Y)
LG Harald

"Fange nie an, aufzuhören - höre nie auf, anzufangen." Marcus Tullius Cicero (106-43 v.Chr.)

dbs

I saw there was a newer version 2.41 from Blackbird.
With a little change in upgrade.php it works in WB.

You should never testing, updating modules or upgrading WB on the live site.
This have to be done in a test environment (e.g. a copie of your live site in a subdomain or in the WB Portable).
Ever. And in this case you not need the question for break or similar.
[url="https://onkel-franky.de"]https://onkel-franky.de[/url]

svsanchez

Hello you two!

Thanks a lot, hopefully it works. This site also uses Foldergallery so I am waiting a little bit to upgrade to 2.12.2 until I know how to fix the problem with it.

Would installing the Bookings plugin that I have on an already upgraded WB break the site just to see if it works with PHP 7.4?

dbs

#3
Hi, you can try this version.
Works with WB 2.13 and PHP 7.4.
Not tested to install, maybe some fixes are needed. Upgrade should work.
Save your css changes! The backend view is horrable but works. Also here some changes needed.
But for testing it is good enough.

@Harald: please test also this version.
[url="https://onkel-franky.de"]https://onkel-franky.de[/url]

hgs

I will build a website for testing purposes, what exactly is the problem?
I will start with WB 2.8.3 php 5.6 and then update to WB 2.12.2 php7.3.


I write about DeepL.com
LG Harald

"Fange nie an, aufzuhören - höre nie auf, anzufangen." Marcus Tullius Cicero (106-43 v.Chr.)

svsanchez

Hello!

I have to update a site from WB 2.8.3 to 2.12.2 which is using the Bookings plugin (https://addon.websitebaker.org/pages/en/browse-add-ons.php?id=0811A32).

Has anyone tested this plugin on 2.12.2 with php 7.3 or higher?