Hello, I am in the process of setting up a new 1.8.0.1 install of osTicket. I am familiar with the software as I still am running a 1.6 version at home. I have set up my email piping (CPanel) identical as I did for 1.6. However, I am getting this return error:<br /><b>Parse error</b>:  syntax error, unexpected T_FUNCTION in <b>/*****/*****/public_html/ticketsystem/include/class.ticket.php</b> on line <b>1923</b><br />Here are the stats on my install:Server Information

osTicket Version

v1.8.0.1

Server Software

Apache

PHP Version

5.4.24

MySQL Version

5.5.35

PHP Extensions

gdlib

Used for image manipulation and PDF printing

imap

Used for email fetching

xml

Used for HTML email processing and XML API

json

Improves performance creating and processing JSON

gettext

Improves performance for non US-English configurations

mbstring

Highly recommended for non western european language content

Database Usage

Database Space Used

0.25 MiB

Database Space for Attachments

0.01 MiBLooking for any and all advice so that I can get this installed and stable before activating its use in my marketing department. Thank you.

Where are you seeing this error?  (ie what are you doing when it occurs)

This error is returned to the sender in email format. This message was created automatically by mail delivery software.---------------------A message that you sent could not be delivered to one or more of itsrecipients. This is a permanent error. The following address(es) failed: pipe to |/********/*******/public_html/ticketsystem/api/pipe.php   generated by test@****************.com   local delivery failedThe following text was generated during the delivery attempt:------ pipe to |/************/**********/public_html/ticketsystem/api/pipe.php      generated by test@*******************.com ------<br /><b>Parse error</b>:  syntax error, unexpected T_FUNCTION in <b>/**********/********/public_html/ticketsystem/include/class.ticket.php</b> on line <b>1923</b><br />------ This is a copy of the message, including all the headers. ------

5 days later

Just updated to 1.8.0.2 and still having the same problems. Any ideas? Further information for people is I'm running CPanel in a Bluehost hosting environment. Thanks.

Your CLI PHP is < 5.3.  See issue #200 on GitHub for possible solution.

I figured it out. There is a disclaimer that I found specific to using the pipe file. Even though I have 5.4 active in php, this is what I had to adjust: If you choose to use PHP 5.4, you'll want to make sure your crons use "/usr/php/54/usr/bin/php" instead, as otherwise it will use PHP 5.2.So for piping in the top hash line becomes#!/usr/php/54/usr/bin/php -qThanks everyone for the help.

That generally means that you have more than one version of PHP installed on your server and need to specify which version to run. :)

Write a Reply...