- Edited
We were running 1.10 with PHP 5.6 for quite some time, and then we upgraded two-three weeks ago.
At the moment, system is the following:
CentOS 7
PHP 7.3.17
MySQL 5.6.44
Error we get when printing tickets in the logs is:
PHP Fatal error: Uncaught Error: Class 'Aws\S3\S3Client' not found in phar:///var/www/html/osticket/upload/include/plugins/storage-s3.phar/storage.php:36\nStack trace:\n#0 /var/www/html/osticket/upload/include/class.file.php(742): S3StorageBackend->__construct(Object(AttachmentFile))\n#1 /var/www/html/osticket/upload/include/class.file.php(109): FileStorageBackend::getInstance(Object(AttachmentFile))\n#2 /var/www/html/osticket/upload/include/class.file.php(113): AttachmentFile->open()\n#3 /var/www/html/osticket/upload/include/class.file.php(131): AttachmentFile->sendData(false)\n#4 /var/www/html/osticket/upload/include/class.pdf.php(45): AttachmentFile->getData()\n#5 [internal function]: mPDFWithLocalImages->{closure}(Array)\n#6 /var/www/html/osticket/upload/include/class.pdf.php(48): preg_replace_callback('/"cid[\\w.-]{3...', Object(Closure), '<html>\n\n<head>\n...')\n#7 /var/www/html/osticket/upload/include/class.pdf.php(101): mPDFWithLocalImages->WriteHtml('<html>\n\n<head>\n...', 0, true, true)\n#8 /var/www/html/osticket/upload/i in phar:///var/www/html/osticket/upload/include/plugins/storage-s3.phar/storage.php on line 36, referer: https://our-url.com/scp/tickets.php?id=158833
Also, this warning appears before the error:
PHP Warning: is_file(): Unable to find the wrapper "phar" - did you forget to enable it when you configured PHP? in phar:///var/www/html/osticket/upload/include/plugins/storage-s3.phar/lib/Symfony/Component/ClassLoader/UniversalClassLoader.php on line 286, referer: https://our-url.com/scp/tickets.php?id=158833
I assume something is happening with PHP after the upgrade, but I am not sure what exactly, since I have no clue about PHP
I've attached screenshots of the Dashboard - > Information page and Phar properties from phpinfo()
We're using S3 plugin for the attachments from the beginning, and we have no problems retrieving those attachments. Also, just for test, I've tried to re-save S3 access keys on the plugin page, and it also worked, didn't give me any error. I've checked the MD5 on the S3 plugin that I've used with 1.10 (and I copied that one to the upgrades of 1.12.5 and 1.14.1) and the MD5 of the S3 plugin from the website, and they're the same. I didn't have the guts to disable or delete the plugin, and then to reconfigure it from scratch
Thanks in advance for your help!