PHP Classes

Problem by installing the package

Recommend this page to a friend!

      PHP Booking Calendar Script  >  All threads  >  Problem by installing the package  >  (Un) Subscribe thread alerts  
Subject:Problem by installing the package
Summary:Errot file unexpected end of file
Messages:5
Author:Robert Schuster
Date:2019-04-15 12:24:21
 

  1. Problem by installing the package   Reply   Report abuse  
Picture of Robert Schuster Robert Schuster - 2019-04-15 12:24:21
Hallo,
After I had installed the package and won't start the php-script.
I've got then fallowing Message:
Parse error: syntax error, unexpected end of file in /var/www/html/booking/calendar.php on line 727.

Leas could you solf the Problem?


  2. Re: Problem by installing the package   Reply   Report abuse  
Picture of Damir Damir - 2019-04-16 09:17:09 - In reply to message 1 from Robert Schuster
Hi Robert,

it seems that ?> at end of file has been removed somehow.

Just add that at the end of file...

Regards,
DV

  3. Re: Problem by installing the package   Reply   Report abuse  
Picture of Mick89 Mick89 - 2019-04-16 12:24:16 - In reply to message 2 from Damir
Hello,

Thank you for your class.

I have some PHP errors :

PHP Notice: Uninitialized string offset: 32 in calendar.php on line 483
PHP Notice: Undefined property: calW::$SMJid in calendar.php on line 702
PHP Notice: Undefined offset: 35 in calendar.php on line 234
PHP Notice: Undefined offset: 34 in calendar.php on line 297
PHP Notice: Undefined offset: 35 in calendar.php on line 287

Is it possible to correct these errors?

Thanks!
Mick

  4. Re: Problem by installing the package   Reply   Report abuse  
Picture of Damir Damir - 2019-04-16 21:01:38 - In reply to message 3 from Mick89
Hi Mick,

Notices are not errors.
Ignore them.

Just put on the beginning of the file:
error_reporting( error_reporting() & ~E_NOTICE );

Regards,
DV



  5. Re: Problem by installing the package   Reply   Report abuse  
Picture of Robert Schuster Robert Schuster - 2019-04-22 21:24:03 - In reply to message 2 from Damir
Hallo thank You for answer my question.

I' ve recognized that my nginx-machine with fpm-php doesn't accept *.inc-files as include-files.
I renamed the *.inc-file in *.php and there was another problem.
I changed all php-tags you have made in the PHP-Files from a simple "<?" to a "<?php"-tag.
Now all problems have been solved.
Please change this in the php-code, which is downloadable from phpclasses.org, too.

Thank you for the work and code!
With Regards R. Sch.