Open Ignacio78-86 opened 1 month ago
This issue has been mentioned on SuiteCRM. There might be relevant details there:
Hello @Ignacio78-86,
thank you for contributing to the SuiteCRM project,
could you, please specify the PHP version you are currently using? Confirm, please, that PHP IMAP module has been installed.
Thanks in advance!
Regards, Serhii
yes of course, sorry, I have tested with 2 versions of PHP (in both imap PHP installed) and the error is the same:
case 1 (photo: Case 1 PHP8.1 and Imap enabled)
CASE 1: PHP 8.1.2-1ubuntu2.18 (cli) (built: Jun 14 2024 15:52:55) (NTS) Copyright (c) The PHP Group Zend Engine v4.1.2, Copyright (c) Zend Technologies with Zend OPcache v8.1.2-1ubuntu2.18, Copyright (c), by Zend Technologies ecrmv1@ecrmv1:~$ php -m Cannot load Zend OPcache - it was already loaded [PHP Modules] bcmath calendar Core ctype curl date dom exif FFI fileinfo filter ftp gd gettext hash iconv imap intl json ldap libxml mbstring mysqli mysqlnd openssl pcntl pcre PDO pdo_mysql pdo_pgsql pdo_sqlite pgsql Phar posix readline Reflection session shmop SimpleXML soap sockets sodium SPL sqlite3 standard sysvmsg sysvsem sysvshm tokenizer xml xmlreader xmlwriter xsl Zend OPcache zip zlib
[Zend Modules] Zend OPcache
case 2 (photo: Case 2 PHP8.2 and Imap enabled)
CASE 2: PHP 8.2.21 (cli) (built: Jul 23 2024 08:42:36) (NTS) Copyright (c) The PHP Group Zend Engine v4.2.21, Copyright (c) Zend Technologies with Zend OPcache v8.2.21, Copyright (c), by Zend Technologies root@a8654a516ec7:/# php -m Cannot load Zend OPcache - it was already loaded [PHP Modules] bcmath calendar Core ctype curl date dom exif FFI fileinfo filter ftp gd hash iconv imap intl json ldap libxml mbstring mysqli mysqlnd openssl pcre PDO pdo_mysql pdo_sqlite pgsql Phar posix random readline Reflection session shmop SimpleXML soap sockets sodium SPL sqlite3 standard sysvmsg sysvsem sysvshm tokenizer xml xmlreader xmlwriter Zend OPcache zip zlib
[Zend Modules] Zend OPcache
Issue
I’,m trying help to a small business and I am trying to use CRM Suite 8.4.2, and I have 2 problems that I think are associated with the same thing.
Admin → Inbound Mail (settings): when I set my “INBOUND EMAIL ACCOUNTS” → edit: select a “MONITORED FOLDERS:*” (I can attach my folders without problems) and then when I put donde, in the general log (suitecrm.log) apears: [8505][1][FATAL] An Imap error detected: “[8505][1][FATAL] An Imap error detected: “IMAP close error””, may be the issue is in the code 1 or 2 attached in the .txt. (test options for imap works good (I think))
when I access my email, although it is true I can see what is in the inbox, but when I select sent or another folder, the log at that moment (seen by the console through a tail) gives me the error : “[1][FATAL] ImapHandler trying to use a non valid resource stream.” I have uploaded 2 example photos, I think the error is in: /var/www/SuiteCRM/public/legacy/modules/InboundEmail/InboundEmail.php
but I don’t know what should be corrected
Possible Fix
solution could be in this part of the code (line 6508)
or solution could be in this part of the code: (line 7417)
Steps to Reproduce the Issue
Context
trying open my inbound emails in the emails menu
Version
SuiteCRM 8.4.2 and also tested on SuiteCRM 7.14.4 (same issue)
What browser are you currently using?
Chrome
Browser Version
Chrome Versión 126.0.6478.128 (Build oficial) (64 bits)
Environment Information
10.6.18-MariaDB (also tested on MySQL 8.0) (same issue)
Operating System and Version
Ubuntu 22.04.4 LTS