Menu

#4766 String of PHP Issues post Install

open
nobody
None
2019-03-01
2019-02-28
Anonymous
No

Originally created by: ovrdrvn

Running latest pull from here with:
Apache | 2.2.34
PHP | 7.0.33
MySQL | 5.6.41-84.1
Perl | 5.26.0

Get these errors at login page:

Warning: Declaration of AssignmentForm::render($options) should be compatible with Form::render($staff = true, $title = false, $options = Array) in /home2/pcninon3/public_html/helpdesk/osTicket/include/class.forms.php on line 4401

Warning: Declaration of TransferForm::render($options) should be compatible with Form::render($staff = true, $title = false, $options = Array) in /home2/pcninon3/public_html/helpdesk/osTicket/include/class.forms.php on line 4521

Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /home2/pcninon3/public_html/helpdesk/osTicket/include/class.forms.php:4401) in /home2/pcninon3/public_html/helpdesk/osTicket/include/class.ostsession.php on line 86

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home2/pcninon3/public_html/helpdesk/osTicket/include/class.forms.php:4401) in /home2/pcninon3/public_html/helpdesk/osTicket/include/class.ostsession.php on line 86

Warning: Cannot modify header information - headers already sent by (output started at /home2/pcninon3/public_html/helpdesk/osTicket/include/class.forms.php:4401) in /home2/pcninon3/public_html/helpdesk/osTicket/include/client/header.inc.php on line 8

Warning: Cannot modify header information - headers already sent by (output started at /home2/pcninon3/public_html/helpdesk/osTicket/include/class.forms.php:4401) in /home2/pcninon3/public_html/helpdesk/osTicket/include/client/header.inc.php on line 9

Warning: Cannot modify header information - headers already sent by (output started at /home2/pcninon3/public_html/helpdesk/osTicket/include/class.forms.php:4401) in /home2/pcninon3/public_html/helpdesk/osTicket/include/client/header.inc.php on line 13

Discussion

  • Anonymous

    Anonymous - 2019-02-28

    Originally posted by: JediKev

    @ovrdrvn

    Yea you using the wrong branch or something...what branch did you pull from?

    Also, what version of osTicket are you using?

    Cheers.

     
  • Anonymous

    Anonymous - 2019-02-28

    Originally posted by: JediKev

    @ovrdrvn

    So by default you'll be using develop branch which is the 1.10.x series which supports up to PHP 7 but some installs of PHP 7 throw those warnings. The latest stable release is v1.11 which is the develop-next branch with up to PHP 7.2 support which do not throw those errors.

    I would suggest using the package from our website as our branches are different than most repos. I would also suggest using v1.11 if you're going to use PHP 7+.

    Cheers.

     
  • Anonymous

    Anonymous - 2019-03-01

    Originally posted by: ovrdrvn

    @JediKev I was able to download it locally and upload it to the server. As I can't run setup, I suspect there is a permissions issue but can't find what the permission of the directory/files needs to be. I get a 403 permission denied error upon trying to browse setup.

     
  • Anonymous

    Anonymous - 2019-03-01

    Originally posted by: ntozier

    Check the file permissions on the files in the web dir. Make sure they are owned by the correct user, and have good permissions.

     
  • Anonymous

    Anonymous - 2019-03-01

    Originally posted by: JediKev

    @ovrdrvn

    I've mentioned this on many, many, many threads but I'll mention it here, again.

    We have a bug/issue with our website where the permissions are removed on the files (but strangely not the directories) in the download. All you need to do is run the following commands and you should be fine:

    $ find /path/to/osticket/ -type d -exec chmod 755 {} \;
    $ find /path/to/osticket/ -type f -exec chmod 644 {} \;
    $ chown www-data:www-data -R /path/to/osticket/
    

    Cheers.

     
  • Anonymous

    Anonymous - 2019-03-01

    Originally posted by: ntozier

    As a side note... the www-data.www-data should be customized for your installation. While this is the standard user an some OSes it is not the standard for all. (especially if you have a hosted site then it would likely be username.username).

     
  • Anonymous

    Anonymous - 2019-03-01

    Originally posted by: ovrdrvn

    Awesome! That issue is solved but now I have a 500 error when running: osTicket/setup/install.php

     
  • Anonymous

    Anonymous - 2019-03-01

    Originally posted by: JediKev

    @ovrdrvn

    Need errors from Apache/PHP error logs.

    Cheers.

     
  • Anonymous

    Anonymous - 2019-03-01

    Originally posted by: ovrdrvn

    i was able to get it going. Other than the 2 performance extensions (asked the host and waiting to see if they will install them as they claim to support osTicket via one click install). Thank you for the guidance!

     
  • Anonymous

    Anonymous - 2019-03-01

    Originally posted by: ovrdrvn

    @JediKev So far loving this. As we installed it in our domain in the default osTicket directory so this is the base installation, if we take the entire contents of that folder and put it in the directory above and set our URL to https://ourdomain.com should we be able to avoid the current https://ourdomain.com/osTicket?

     
  • Anonymous

    Anonymous - 2019-03-01

    Originally posted by: JediKev

    @ovrdrvn

    Yes, precisely.

    Cheers.

     

Log in to post a comment.

MongoDB Logo MongoDB