This looks like a known bug on Ubuntu 24.04
https://bugs.launchpad.net/ubuntu/+source/php-mailparse/+bug/2067365
Im going to try the install on debian 12
This looks like a known bug on Ubuntu 24.04
https://bugs.launchpad.net/ubuntu/+source/php-mailparse/+bug/2067365
Im going to try the install on debian 12
Hey I got an update, everything totally works awesome with debian 12. Ubuntu 24.04 has a bug with mailparse ubuntu 22.04 has an old version of PHP and PHP 8.2 and above is required. Im going to update the script and docs to to reflect we only support Debian 12 at the moment
Understood and seriously, THANK YOU SO MUCH for your continued investigation into this issue. It's really easy to be an angry end-user about problems like these, but it's just as easy to blow someone off angry or not. I love what you guys are doing with itflow and I appreciate that you make this available for free. While I would prefer I could use something like this with Ubuntu, it's really only because I've never worked in Debian so I'm sure it doesn't really matter.
I'll download a debian 12 server image and try installing that on a new VM then report back. THANK YOU THANK YOU THANK YOU!!!
@enclavelabs Your super welcome!! I'm glad you really like ITFlow! =]
And yes we just updated the documentation to remove references of Ubuntu and updated the script to only allow Debian 12 for now. Maybe it will be fixed in Ubuntu 24.04.1 who knows.
Ubuntu and Debian are pretty much one in the same so it should be an easy transition, in fact Ubuntu is based off of Debian.
For Ubuntu 22.04 i didnt install php, i edited the script and installed php v8.3. I even tried it with Dockerfile also and it worked!
sudo apt install -y php8.3 php8.3-intl php8.3-mysqli php8.3-gd php8.3-curl php8.3-imap php8.3-mailparse php8.3-mbstring php8.3-curl php8.3-xml php8.3-bcmath php8.3-mailparse libapache2-mod-php libapache2-mod-md
Bigbug This is really good to know! I figured it was just a weird preference out of ignorance on my side so looking forward to getting this running in Debian!
tMr so did you just remove the following lines from the install script and manually install the remaining packages?
Remove the php references here:
install_packages() {
apt-get update && apt-get -y upgrade
apt-get install -y apache2 mariadb-server \
php libapache2-mod-php php-intl php-mysqli php-gd \
php-curl php-imap php-mailparse libapache2-mod-md \
certbot python3-certbot-apache git sudo whois cron
So I just reinstalled ITflow on Debian and was able to walk through setting up the interface. Once I got signed in though and began enabling cron for ticketing, I started receiving the "HTTP ERROR: 500" when trying to click save on various pages. I am now unable to update my app or enable cron for ticket email parsing as anytime I hit save, I'm brought to this screen.
@enclavelabs You must of just installed when I submitted a bad patch thats some timing .
Okay Everything should be fixed now I promise. Also I added Ubuntu 24.04 support back in.
So pick your poison ubuntu 24.04 or debian 12
Okay a quick recap on what we did
We removed the checks for php-imap and php-mailparse in the mail parser script as these checks are not needed
johnny No worries - I was just wondering if I somehow missed a step even though I've documented everything now for my own instructions! I thought I was going crazy! As always, thank you so much for your fast monitoring of this issue. I'll reinstall and try again!
enclavelabs Excellent since you been such a good tester do you mind testing both ubuntu 24.04 and debian 12 installs
Currently receiving this error when running "php cron_mail_queue.php {Cron key}" from the "/var/www/domainname" directory. It says script already running, but it doesn't seem to be generating tickets.
delete the lock file in /tmp and retry the script
it should be called itflow_somethingsomthing
After deleting the file from /tmp, I receive the following error:
PHP Warning: iconv(): Wrong encoding, conversion from "UTF7-IMAP" to "UTF-8//IGNORE" is not allowed in /var/www/domain_name/plugins/php-imap/vendor/symfony/polyfill-mbstring/Mbstring.php on line 116
Error: No inbox folder found.PHP Warning: Undefined variable $messages in /var/www/domain_name/cron_ticket_email_parser.php on line 343
PHP Fatal error: Uncaught Error: Call to a member function count() on null in /var/www/domain_name/cron_ticket_email_parser.php:343
Stack trace:
#0 {main}
thrown in /var/www/domain_name/cron_ticket_email_parser.php on line 343
Seems like there might be something wrong with the $messages variable in in the "cron_ticket_email_parser.php" file on line 343.
Also flagging from "UTF7-IMAP" to "UTF-8//IGNORE" in the plugins/php-imap/vendor/symfony/polyfill-mbstring/Mbstring.php on line 116.
This is really killing me
I reinstalled on debian 12, set everything up like I had before
Was able to export / import many fields but not all of them.. seems a bit odd we can download a full backup but not import the backup.
Anyways.. I'm now on Debian 12, new install and my email isn't working
It worked great in April, that was the last time I messed with it.
I saw ticket emails weren't being picked up by the cron, updated and hasn't worked since
I was running ubuntu 22
Looking for advice.. also checking the "mail settings": shows IMAP connected successfully
Thanks
ksguy So glad this isn't just me. I'm damn near about to pay 60 bucks for a month just to have some help getting this working. I really really LOVE the potential with IT flow, but the ticket generation is probably one of it's greatest strengths and if it isn't working, I have to do tickets via email and manually replicate them in the system.