Update from 4.12 to 4.13 fails with ZIP archive could not be found

Your software
My PHP version is : PHP 8.3.6 (cli)
My MariaDB version is : mariadb Ver 15.1 Distrib 10.6.18-MariaDB

Updating/Installing Errors
I am: Updating
Upgrading via: Command Line

Your problem
My problem is :

I can’t update to Mautic 5 yet as it does not support Postmark yet. So for now I want to update to the latest 4 version, which is currently 4.4.13. So i tried the following:

I downloaded the latest 4.X release:

wget https://github.com/mautic/mautic/releases/download/4.4.13/4.4.13-update.zip

I then tried to apply the update via CLI, using the --update-package flag like so:

sudo -u www-data php /var/www/html/mautic/bin/console mautic:update:apply --update-package=/home/ubuntu/4.4.13-update.zip

Then it prompts: “Are you sure you wish to update Mautic to the latest version?”

I entered: yes

Then it returns: The ZIP archive could not be found.

Even though the path to the ZIP is correct.

Any ideas on how to solve? Thanks!

Hi,

did you get it?

If not, I’ve done this actually.

With this

wget https://github.com/mautic/mautic/releases/download/4.4.13/4.4.13-update.zip

you’ve downloaded it into the Mautic folder directly.

So you’ve to apply the update only with:

php bin/console mautic:update:apply --update-package=4.4.13-update.zip

This worked out two times (separate installations).

The downloaded file will be deleted automatically.

Best,
Georg

Mautic 4 not support php 8.3 version only 8.0

For upgrade to latest is good idea step by step

update to 5.1.1 version

wget https://github.com/mautic/mautic/releases/download/5.1.1/5.1.1-update.zip

sudo -u www-data php bin/console mautic:update:apply --update-package=5.1.1-update.zip

sudo -u www-data php bin/console mautic:update:apply --finish

install php 8.2

apt install php8.2-{apcu,fpm,cli,curl,mysql,mailparse,gd,mbstring,imagick,bcmath,zip,tidy,soap,intl,xml,imap,redis,opcache}

change nginx setting for change php version

mv /etc/php/8.0/cli/conf.d/60-custom.ini /etc/php/8.2/cli/conf.d/60-custom.ini

mv /etc/php/8.0/fpm/conf.d/60-custom.ini /etc/php/8.2/fpm/conf.d/60-custom.ini

sudo sed -i ‘s/php8.0-fpm/php8.2-fpm/g’ /etc/nginx/sites-enabled/*

del old php 8.0

apt purge php8.0*

update to 5.2.8 version

wget https://github.com/mautic/mautic/releases/download/5.2.8/5.2.8-update.zip

sudo -u www-data php bin/console mautic:update:apply --update-package=5.2.8-update.zip

sudo -u www-data php bin/console mautic:update:apply --finish

mv /etc/php/8.2/cli/conf.d/60-custom.ini /etc/php/8.3/cli/conf.d/60-custom.ini
mv /etc/php/8.2/fpm/conf.d/60-custom.ini /etc/php/8.3/fpm/conf.d/60-custom.ini
sudo sed -i ‘s/php8.2-fpm/php8.3-fpm/g’ /etc/nginx/sites-enabled/*

del old php 8.2
apt purge php8.2*

If need amazon plugin

you can install with

cd /var/www/mautic/plugins

git clone GitHub - pm-pmaas/etailors_amazon_ses: Amazon SES Mailer Plugin for Mautic AmazonSesBundle

wget https://github.com/pm-pmaas/etailors_amazon_ses/archive/refs/heads/main.zip

sudo -u www-data php /var/www/mautic/bin/console cache:clear

sudo -u www-data php /var/www/mautic/bin/console mautic:plugins:install

sudo -u www-data php /var/www/mautic/bin/console cache:clear

don’t forget del row on the crontab contains mautic:email:send - it not supported in the 5 and later