After a clean install, all the dependencies install that by the way there were 3 or 4 which are not listed on the website I found out I cannot set up the "Rooms Booking Manager" module.

This is the error I got:

Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /var/www/vhosts/...../httpdocs/sites/all/modules/rooms/modules/rooms_booking_manager/rooms_booking_manager.module on line 3259

Any ideas?

Comments

vazaldcaelp created an issue. See original summary.

  • nicola85 committed 03d1fbd on 7.x-1.x
    Issue #2658976 by vazaldcaelp: Sintax error in "Rooms Booking Manager"...
vazaldcaelp’s picture

UPDATE; On the file all/modules/rooms/modules/rooms_booking_manager/rooms_booking_manager.module on line 3259

Change

if ($start_date <= (new DateTime()->modify($interval))) {

to
if ($start_date <= (new DateTime())->modify($interval)) {

ronald_istos’s picture

Status: Active » Closed (fixed)

great - committed. check the latest dev.

jackdaniel9’s picture

I have the same error, but the line 3259 is already good ? I cannot update to 1.8. I have 1.7.

if ($start_date <= (new DateTime())->modify($interval)) {