osticket-plugin-archiver icon indicating copy to clipboard operation
osticket-plugin-archiver copied to clipboard

PHP Parse error for folder path in Advanced mode

Open mattmattox opened this issue 4 years ago • 0 comments

Error message:

[Sun Jun 20 06:52:00.213229 2021] [php7:error] [pid 35] [client 1.2.3.4:46738] PHP Parse error:  syntax error, unexpected '.' in /var/www/src/include/plugins/archiver/class.ArchiverPlugin.php on line 205, referer: https://example.com

Workaround:

$folder = $path . '/' . @Format::slugify ($dept) . '/' . @Format::slugify ($user) . '/' . @Format::slugify ("{$ticket->getSubject ()}_{$ticket->getNumber ()}");

mattmattox avatar Jun 20 '21 07:06 mattmattox