WebsiteBaker Support (2.12.x) > General Help & Support

Booking 2.x error in DB table

<< < (3/5) > >>

rumen:
Well. No error messages and again no any success with "booking"

Here is the module with entry:


Here is the entry:


And here is the result ... nothing

dbs:
Have tried the same entry like yours, also in front- and backend language BG. :-)It works.



PHP7.3.11, Firefox, Bootstrap3, jQuery 3.3.1

dbs:
If you have a errorlog message "each is deprecated". Try this in functions.php line 3039.

Replace

--- Code: ---while ( list ( $index, $item ) = each ( $booked ) )
--- End code ---

with
--- Code: ---foreach ( $booked as $index => $item )
--- End code ---

rumen:
Now gave the error (after changes of the function line 3032):

The error:

--- Code: ---There was an uncatched exception
syntax error, unexpected 'day' (T_STRING)
in line (47) of (/modules/bookings_v2/functions.php):
--- End code ---


The line 47:

--- Code: ---$date_array['day']    = $date_array['mday'];
--- End code ---


dbs:
Strange. My line 47 looks so:
--- Code: ---        $date_array[\'day\']    = $date_array[\'mday\'];
--- End code ---

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version