Menu Content

Podpora

> Diskusní fóra, FAQs & placená podpora
Welcome, Guest
Username Password: Remember me

PHP 7 Support
(1 viewing) (1) Guest
If you want to ask question about the product features, licensing conditions or other questions prior to purchase, please, do it here.

TOPIC: PHP 7 Support

PHP 7 Support 7 years, 8 months ago #48743

  • M2015
Hello,

1.
did the new Booking 2 Version 2.3.9 support PHP 7 ?
Because in "Bookale Items" comes an error "Using $this when not in object context"

2.
Is there an Import / Export Function for "Bookable Items" and/or "Configuration", before I make changes I can export them. And when I not satisfied, I can import back.
Or when I want to use the configuartion in a other website I can easly import them. ???

Thnaks
Best regards
The topic has been locked.

Re: PHP 7 Support 7 years, 8 months ago #48745

  • M2015
M2015 wrote:
Hello,

1.
did the new Booking 2 Version 2.3.9 support PHP 7 ?
Because in "Bookable Items" comes an error "Using $this when not in object context"

2.
Is there an Import / Export Function for "Bookable Items" and/or "Configuration", before I make changes I can export them. And when I not satisfied, I can import back.
Or when I want to use the configuartion in a other website I can easly import them. ???

Thanks
Best regards
The topic has been locked.

Re: PHP 7 Support 7 years, 8 months ago #48749

  • mitk
Hello,

1. unfortunately Booking doesn´s support PHP7 yet
2. no, Booking doesn´t contain any import or export function, but you can export Booking settings from DB
The topic has been locked.

Re: PHP 7 Support 7 years, 6 months ago #48957

There is fix for Bookable Items:

/administrator/components/com_booking/views/subject/tmpl/form_details.php
around row 147 there is:
<?php AImporter::tpl('files', $this->_layout, 'files'); ?>

change it to:
<?php include AImporter::tpl('files', $this->_layout, 'files', ADMIN_VIEWS, true); ?>


around row 289 there is:
<?php AImporter::tpl('images', $this->_layout, 'images'); ?>

change it to:
<?php include AImporter::tpl('images', $this->_layout, 'images', ADMIN_VIEWS, true); ?>
 


/administrator/components/com_booking/views/subject/tmpl/form_properties.php
around row 83 there is:
AImporter::tpl('template', $this->_layout, 'calendars');

change it to:
include AImporter::tpl('template', $this->_layout, 'calendars', ADMIN_VIEWS, true);
Last Edit: 7 years, 6 months ago by dpoint.
The topic has been locked.

Re: PHP 7 Support 7 years, 5 months ago #48970

  • heiken
Bei mir erscheint trotz dieser Änderung immer noch

Using $this when not in object context

ausprobiert mit php 7.0.19 und 7.1.15

Hat der fix schon mal bei jemanden funktioniert?

=========================================

With me, despite this change still appears

Using $ this when not in object context

Tried with php 7.0.19 and 7.1.15

Has the fix ever worked with someone?
The topic has been locked.

Re: PHP 7 Support 7 years, 5 months ago #48972

I am using this fix only for access to Bookable Items in administration.
-------
Booking 2.3.9
Joomla 3.7.2
PHP Version 7.1.5-1

If you want my help, send me more info :)
The topic has been locked.
Přihlášení uživatele Prázdný