Trying to update to 5.1 from 5.0.4

Your software
My Mautic version is: 5.0.4
My PHP version is: 8.1.29
My Database type and version is: 10.4.34-MariaDB

Your problem
My problem is: Upgrade problem by running composer update

These errors are showing in the log:

> php bin/console mautic:assets:generate

                                                                                                                        
 [WARNING] Some commands could not be registered:                                                                       
                                                                                                                        

In FilesystemLoader.php line 92:
                                                                                                                                         
  The "/home/xyz/mautic_s/vendor/knplabs/knp-menu-bundle/src/Resources/views" directory does not exist ("/home/xyz/  
  mautic_s/vendor/knplabs/knp-menu-bundle/src/Resources/views").  

Steps I have tried to fix the problem:
Really don’t know to do. Every time when I try to upgrade Mautic to another version there are bugs. I’m little frustated. I understand there is a open source project and still under development. But… Ok. Cut it.

Now it is better because I didn’t loose a configuration file like before when I try to upgrade. (local.php)

I choose - base on sugestion there is a better way - to manage mautic installation by composer. I assume when I do that, then to upgrade mautic to another version what i need to do it’s only run composer update. But in my case this approach didn’t work.
Today case - there was only upgrade other components beside mautic components.

Now I have same 5.0.4 version of mautic with updated other components with errors which prevent Mautic to start.

When I try last time to upgrade Mautic from 5.0.3 to 5.0.4 I need to modify /home/xyz/mautic_s/composer.json by hand - change all occurrences of 5.0.3 to 5.0.4 and after that update run.

So, it’s normal? Should I again change occurences of 5.0.4 to 5.1 and then composer update? Or i miss something?

1 Like

Hi there,

How exactly did you update with Composer, were you following the steps outlined here:

https://docs.mautic.org/en/5.x/getting_started/how_to_update_mautic.html#updating-mautic-composer-based-installs

The reason I ask is because we only just pushed the release to the recommended project a few minutes ago.

First step:

szczescie@server:~/mautic_s$ composer update mautic/core-lib --with-dependencies
Loading composer repositories with package information
Updating dependencies                                 
Nothing to modify in lock file
Installing dependencies from lock file (including require-dev)
Nothing to install, update or remove
Package sensio/framework-extra-bundle is abandoned, you should avoid using it. Use Symfony instead.
Package theofidry/psysh-bundle is abandoned, you should avoid using it. No replacement was suggested.
Package tightenco/collect is abandoned, you should avoid using it. Use illuminate/collections instead.
Generating autoload files
115 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
Deprecation Notice: Return type of Mautic\Composer\Plugin\Scaffold\Operations\ScaffoldFileCollection::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/szczescie/mautic_s/vendor/mautic/core-composer-scaffold/Operations/ScaffoldFileCollection.php:118
Scaffolding files for mautic/core-lib:
  - Copy [project-root]/package-lock.json from assets/scaffold/files/package-lock.json
  - Copy [web-root]/.htaccess from assets/scaffold/files/htaccess
> npm ci --prefer-offline --no-audit
npm WARN deprecated @npmcli/move-file@1.1.2: This functionality has been moved to @npmcli/fs
npm WARN deprecated stable@0.1.8: Modern JS already guarantees Array#sort() is a stable sort, so this library is deprecated. See the compatibility table on MDN: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort#browser_compatibility

> mautic@0.0.0 postinstall
> node_modules/modernizr/bin/modernizr -c modernizr-config.json -d node_modules/modernizr/modernizr-mautic-dist.js & npm run build

(node:5650) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)

> mautic@0.0.0 build
> webpack --mode production  --config webpack.config.js

Modernizr build saved to node_modules/modernizr/modernizr-mautic-dist.js
Browserslist: caniuse-lite is outdated. Please run:
  npx update-browserslist-db@latest
  Why you should do it regularly: https://github.com/browserslist/update-db#readme
<w> [webpack.cache.PackFileCacheStrategy] Caching failed for pack: Error: Unable to snapshot resolve dependencies
asset ckeditor.js 1.24 MiB [compared for emit] [minimized] [big] (name: main) 2 related assets
asset translations/bn.js 14.9 KiB [emitted] [minimized]
asset translations/th.js 14.7 KiB [emitted] [minimized]
asset translations/el.js 13.7 KiB [emitted] [minimized]
asset translations/ru.js 13.4 KiB [emitted] [minimized]
asset translations/bg.js 13.2 KiB [emitted] [minimized]
asset translations/uk.js 13 KiB [emitted] [minimized]
asset translations/sr.js 12 KiB [emitted] [minimized]
asset translations/ar.js 11.2 KiB [emitted] [minimized]
asset translations/he.js 10.5 KiB [emitted] [minimized]
asset translations/ja.js 10.1 KiB [emitted] [minimized]
asset translations/vi.js 9.89 KiB [emitted] [minimized]
asset translations/it.js 9.68 KiB [emitted] [minimized]
asset translations/lt.js 9.55 KiB [emitted] [minimized]
+ 56 assets
orphan modules 4.94 MiB [orphan] 1529 modules
runtime modules 919 bytes 5 modules
cacheable modules 4.87 MiB
  modules by path ./node_modules/@ckeditor/ 398 KiB 74 modules
  modules by path ./node_modules/color-convert/*.js 20.5 KiB
    ./node_modules/color-convert/index.js 1.67 KiB [built] [code generated]
    ./node_modules/color-convert/conversions.js 16.6 KiB [built] [code generated]
    ./node_modules/color-convert/route.js 2.2 KiB [built] [code generated]
  modules by path ./node_modules/css-loader/dist/runtime/*.js 3.84 KiB
    ./node_modules/css-loader/dist/runtime/cssWithMappingToString.js 2.27 KiB [built] [code generated]
    ./node_modules/css-loader/dist/runtime/api.js 1.57 KiB [built] [code generated]
  ./docroot/app/assets/libraries/ckeditor/src/ckeditor.ts + 1016 modules 4.45 MiB [built] [code generated]
  ./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js 6.67 KiB [built] [code generated]
  ./node_modules/color-name/index.js 4.51 KiB [built] [code generated]
webpack 5.88.2 compiled successfully in 101371 ms

added 597 packages in 2m

73 packages are looking for funding
  run `npm fund` for details
> npx patch-package
patch-package 7.0.2
Applying patches...
at.js@1.5.4 âś”
chosen-js@1.8.7 âś”
> php bin/console mautic:assets:generate

                                                                                                                        
 [WARNING] Some commands could not be registered:                                                                       
                                                                                                                        

In FilesystemLoader.php line 92:
                                                                                                                                         
  The "/home/szczescie/mautic_s/vendor/knplabs/knp-menu-bundle/src/Resources/views" directory does not exist ("/home/szczescie/  
  mautic_s/vendor/knplabs/knp-menu-bundle/src/Resources/views").                                                                 
                                                                                                                                         

In FilesystemLoader.php line 92:
                                                                                                                                         
  The "/home/szczescie/mautic_s/vendor/knplabs/knp-menu-bundle/src/Resources/views" directory does not exist ("/home/szczescie/  
  mautic_s/vendor/knplabs/knp-menu-bundle/src/Resources/views").                                                                 
                                                                                                                                         

In FilesystemLoader.php line 92:
                                                                                                                                         
  The "/home/szczescie/mautic_s/vendor/knplabs/knp-menu-bundle/src/Resources/views" directory does not exist ("/home/szczescie/  
  mautic_s/vendor/knplabs/knp-menu-bundle/src/Resources/views").                                                                 
                                                                                                                                         

In FilesystemLoader.php line 92:
                                                                                                                                         
  The "/home/szczescie/mautic_s/vendor/knplabs/knp-menu-bundle/src/Resources/views" directory does not exist ("/home/szczescie/  
  mautic_s/vendor/knplabs/knp-menu-bundle/src/Resources/views").                                                                 
                                                                                                                                         

In FilesystemLoader.php line 92:
                                                                                                                                         
  The "/home/szczescie/mautic_s/vendor/knplabs/knp-menu-bundle/src/Resources/views" directory does not exist ("/home/szczescie/  
  mautic_s/vendor/knplabs/knp-menu-bundle/src/Resources/views").                                                                 
                                                                                                                                         

In FilesystemLoader.php line 92:
                                                                                                                                         
  The "/home/szczescie/mautic_s/vendor/knplabs/knp-menu-bundle/src/Resources/views" directory does not exist ("/home/szczescie/  
  mautic_s/vendor/knplabs/knp-menu-bundle/src/Resources/views").                                                                 
                                                                                                                                         

In FilesystemLoader.php line 92:
                                                                                                                                         
  The "/home/szczescie/mautic_s/vendor/knplabs/knp-menu-bundle/src/Resources/views" directory does not exist ("/home/szczescie/  
  mautic_s/vendor/knplabs/knp-menu-bundle/src/Resources/views").                                                                 
                                                                                                                                         

In FilesystemLoader.php line 92:
                                                                                                                                         
  The "/home/szczescie/mautic_s/vendor/knplabs/knp-menu-bundle/src/Resources/views" directory does not exist ("/home/szczescie/  
  mautic_s/vendor/knplabs/knp-menu-bundle/src/Resources/views").                                                                 
                                                                                                                                         

In FilesystemLoader.php line 92:
                                                                                                                                         
  The "/home/szczescie/mautic_s/vendor/knplabs/knp-menu-bundle/src/Resources/views" directory does not exist ("/home/szczescie/  
  mautic_s/vendor/knplabs/knp-menu-bundle/src/Resources/views").                                                                 
                                                                                                                                         

In FilesystemLoader.php line 92:
                                                                                                                                         
  The "/home/szczescie/mautic_s/vendor/knplabs/knp-menu-bundle/src/Resources/views" directory does not exist ("/home/szczescie/  
  mautic_s/vendor/knplabs/knp-menu-bundle/src/Resources/views").                                                                 
                                                                                                                                         

In FilesystemLoader.php line 92:
                                                                                                                                         
  The "/home/szczescie/mautic_s/vendor/knplabs/knp-menu-bundle/src/Resources/views" directory does not exist ("/home/szczescie/  
  mautic_s/vendor/knplabs/knp-menu-bundle/src/Resources/views").                                                                 
                                                                                                                                         

In FilesystemLoader.php line 92:
                                                                                                                                         
  The "/home/szczescie/mautic_s/vendor/knplabs/knp-menu-bundle/src/Resources/views" directory does not exist ("/home/szczescie/  
  mautic_s/vendor/knplabs/knp-menu-bundle/src/Resources/views").                                                                 
                                                                                                                                         


                                                                                                                        
 [WARNING] Some commands could not be registered:                                                                       
                                                                                                                        

In FilesystemLoader.php line 92:
                                                                                                                                         
  The "/home/szczescie/mautic_s/vendor/knplabs/knp-menu-bundle/src/Resources/views" directory does not exist ("/home/szczescie/  
  mautic_s/vendor/knplabs/knp-menu-bundle/src/Resources/views").                                                                 
                                                                                                                                         

In FilesystemLoader.php line 92:
                                                                                                                                         
  The "/home/szczescie/mautic_s/vendor/knplabs/knp-menu-bundle/src/Resources/views" directory does not exist ("/home/szczescie/  
  mautic_s/vendor/knplabs/knp-menu-bundle/src/Resources/views").                                                                 
                                                                                                                                         

In FilesystemLoader.php line 92:
                                                                                                                                         
  The "/home/szczescie/mautic_s/vendor/knplabs/knp-menu-bundle/src/Resources/views" directory does not exist ("/home/szczescie/  
  mautic_s/vendor/knplabs/knp-menu-bundle/src/Resources/views").                                                                 
                                                                                                                                         

In FilesystemLoader.php line 92:
                                                                                                                                         
  The "/home/szczescie/mautic_s/vendor/knplabs/knp-menu-bundle/src/Resources/views" directory does not exist ("/home/szczescie/  
  mautic_s/vendor/knplabs/knp-menu-bundle/src/Resources/views").                                                                 
                                                                                                                                         

In FilesystemLoader.php line 92:
                                                                                                                                         
  The "/home/szczescie/mautic_s/vendor/knplabs/knp-menu-bundle/src/Resources/views" directory does not exist ("/home/szczescie/  
  mautic_s/vendor/knplabs/knp-menu-bundle/src/Resources/views").                                                                 
                                                                                                                                         

In FilesystemLoader.php line 92:
                                                                                                                                         
  The "/home/szczescie/mautic_s/vendor/knplabs/knp-menu-bundle/src/Resources/views" directory does not exist ("/home/szczescie/  
  mautic_s/vendor/knplabs/knp-menu-bundle/src/Resources/views").                                                                 
                                                                                                                                         

In FilesystemLoader.php line 92:
                                                                                                                                         
  The "/home/szczescie/mautic_s/vendor/knplabs/knp-menu-bundle/src/Resources/views" directory does not exist ("/home/szczescie/  
  mautic_s/vendor/knplabs/knp-menu-bundle/src/Resources/views").                                                                 
                                                                                                                                         

In FilesystemLoader.php line 92:
                                                                                                                                         
  The "/home/szczescie/mautic_s/vendor/knplabs/knp-menu-bundle/src/Resources/views" directory does not exist ("/home/szczescie/  
  mautic_s/vendor/knplabs/knp-menu-bundle/src/Resources/views").                                                                 
                                                                                                                                         

In FilesystemLoader.php line 92:
                                                                                                                                         
  The "/home/szczescie/mautic_s/vendor/knplabs/knp-menu-bundle/src/Resources/views" directory does not exist ("/home/szczescie/  
  mautic_s/vendor/knplabs/knp-menu-bundle/src/Resources/views").                                                                 
                                                                                                                                         

In FilesystemLoader.php line 92:
                                                                                                                                         
  The "/home/szczescie/mautic_s/vendor/knplabs/knp-menu-bundle/src/Resources/views" directory does not exist ("/home/szczescie/  
  mautic_s/vendor/knplabs/knp-menu-bundle/src/Resources/views").                                                                 
                                                                                                                                         

In FilesystemLoader.php line 92:
                                                                                                                                         
  The "/home/szczescie/mautic_s/vendor/knplabs/knp-menu-bundle/src/Resources/views" directory does not exist ("/home/szczescie/  
  mautic_s/vendor/knplabs/knp-menu-bundle/src/Resources/views").                                                                 
                                                                                                                                         

In FilesystemLoader.php line 92:
                                                                                                                                         
  The "/home/szczescie/mautic_s/vendor/knplabs/knp-menu-bundle/src/Resources/views" directory does not exist ("/home/szczescie/  
  mautic_s/vendor/knplabs/knp-menu-bundle/src/Resources/views").                                                                 
                                                                                                                                         

Production assets have been regenerated.
No security vulnerability advisories found.

I can confirm these errors, same here. I tried it just 5 minutes ago.

Thanks for the details folks, will flag this up with the Product Team to review.

I saw I have differences between:

and

my composer.json.

My composer.json difference part:

"require": {
    "composer/installers": "^1.11",
    "mautic/core-composer-scaffold": "4.x-dev",
    "mautic/core-lib": "5.0.4",
    "mautic/grapes-js-builder-bundle": "5.0.4",
    "mautic/plugin-clearbit": "5.0.4",
    "mautic/plugin-cloudstorage": "5.0.4",
    "mautic/plugin-crm": "5.0.4",
    "mautic/plugin-emailmarketing": "5.0.4",
    "mautic/plugin-focus": "5.0.4",
    "mautic/plugin-fullcontact": "5.0.4",
    "mautic/plugin-gmail": "5.0.4",
    "mautic/plugin-outlook": "5.0.4",
    "mautic/plugin-social": "5.0.4",
    "mautic/plugin-tagmanager": "5.0.4",
    "mautic/plugin-zapier": "5.0.4",
    "mautic/theme-aurora": "5.0.4",
    "mautic/theme-blank": "5.0.4",
    "mautic/theme-brienz": "5.0.4",
    "mautic/theme-cards": "5.0.4",
    "mautic/theme-confirmme": "5.0.4",
    "mautic/theme-fresh-center": "5.0.4",
    "mautic/theme-fresh-fixed": "5.0.4",
    "mautic/theme-fresh-left": "5.0.4",
    "mautic/theme-fresh-wide": "5.0.4",
    "mautic/theme-goldstar": "5.0.4",
    "mautic/theme-neopolitan": "5.0.4",
    "mautic/theme-oxygen": "5.0.4",
    "mautic/theme-paprika": "5.0.4",
    "mautic/theme-skyline": "5.0.4",
    "mautic/theme-sparse": "5.0.4",
    "mautic/theme-sunday": "5.0.4",
    "mautic/theme-vibrant": "5.0.4",
    "mautic/theme-trulypersonal": "5.0.4"
  },


It was changed by hand by me as I remember, when i try to update co 5.0.4 from 5.0.3 because otherway it didn’t start.

At which point this file composer.json is changed? Should after composer update mautic/core-lib --with-dependencies?

I tried also steps from 4.4 to 5.0 which I remembered:

composer require --no-update "mautic/core-lib":"^5.1"
composer require --no-update "mautic/grapes-js-builder-bundle":"^5.1" "mautic/plugin-clearbit":"^5.1"  "mautic/plugin-cloudstorage":"^5.1"  "mautic/plugin-crm":"^5.1"  "mautic/plugin-emailmarketing":"^5.1"  "mautic/plugin-focus":"^5.1"  "mautic/plugin-fullcontact":"^5.1"  "mautic/plugin-gmail":"^5.1"  "mautic/plugin-tagmanager":"^5.1"  "mautic/plugin-outlook":"^5.1"  "mautic/plugin-social":"^5.1"  "mautic/plugin-tagmanager":"^5.1"  "mautic/plugin-zapier":"^5.1"
composer require --no-update "mautic/theme-aurora":"^5.1"  "mautic/theme-blank":"^5.1"  "mautic/theme-brienz":"^5.1"  "mautic/theme-cards":"^5.1" "mautic/theme-confirmme":"^5.1"  "mautic/theme-fresh-center":"^5.1"  "mautic/theme-fresh-fixed":"^5.1"  "mautic/theme-fresh-left":"^5.1"  "mautic/theme-fresh-wide":"^5.1"  "mautic/theme-goldstar":"^5.1"  "mautic/theme-neopolitan":"^5.1"  "mautic/theme-oxygen":"^5.1"  "mautic/theme-paprika":"^5.1"  "mautic/theme-skyline":"^5.1"  "mautic/theme-sparse":"^5.1"  "mautic/theme-sunday":"^5.1"  "mautic/theme-vibrant":"^5.1"  "mautic/theme-trulypersonal":"^5.1"

Same errors happen with them.

Thanks for the feedback folks, it looks like there’s some missing parts in our user documentation which @nickvanpraet is going to take a look at.

Hi folks,

Could you please review and follow the updated docs here:

https://docs.mautic.org/en/5.x/getting_started/how_to_update_mautic.html#updating-mautic-composer-based-installs

Let us know how you get on!

@rcheesley Thanks for the update. Unfortunately I still get errors:

mautic@services:~/public$ composer update --with-dependencies
Loading composer repositories with package information
Updating dependencies
Lock file operations: 1 install, 88 updates, 0 removals
  - Upgrading aws/aws-sdk-php (3.308.2 => 3.314.0)
  - Locking bjeavons/zxcvbn-php (1.3.1)
  - Upgrading composer/class-map-generator (1.1.1 => 1.3.4)
  - Upgrading composer/composer (2.7.6 => 2.7.7)
  - Upgrading composer/pcre (3.1.3 => 3.1.4)
  - Upgrading doctrine/doctrine-fixtures-bundle (3.6.0 => 3.6.1)
  - Upgrading giggsey/libphonenumber-for-php (8.13.37 => 8.13.38)
  - Upgrading knplabs/knp-menu-bundle (v3.4.1 => v3.4.2)
  - Upgrading lightsaml/sp-bundle (dev-symfony5 91f36a5 => dev-symfony5 083bf6d)
  - Upgrading mautic/core-lib (5.0.4 => 5.1.0)
  - Upgrading mautic/grapes-js-builder-bundle (5.0.4 => 5.1.0)
  - Upgrading mautic/plugin-clearbit (5.0.4 => 5.1.0)
  - Upgrading mautic/plugin-cloudstorage (5.0.4 => 5.1.0)
  - Upgrading mautic/plugin-crm (5.0.4 => 5.1.0)
  - Upgrading mautic/plugin-emailmarketing (5.0.4 => 5.1.0)
  - Upgrading mautic/plugin-focus (5.0.4 => 5.1.0)
  - Upgrading mautic/plugin-fullcontact (5.0.4 => 5.1.0)
  - Upgrading mautic/plugin-gmail (5.0.4 => 5.1.0)
  - Upgrading mautic/plugin-outlook (5.0.4 => 5.1.0)
  - Upgrading mautic/plugin-social (5.0.4 => 5.1.0)
  - Upgrading mautic/plugin-tagmanager (5.0.4 => 5.1.0)
  - Upgrading mautic/plugin-zapier (5.0.4 => 5.1.0)
  - Upgrading mautic/theme-aurora (5.0.4 => 5.1.0)
  - Upgrading mautic/theme-blank (5.0.4 => 5.1.0)
  - Upgrading mautic/theme-brienz (5.0.4 => 5.1.0)
  - Upgrading mautic/theme-cards (5.0.4 => 5.1.0)
  - Upgrading mautic/theme-confirmme (5.0.4 => 5.1.0)
  - Upgrading mautic/theme-fresh-center (5.0.4 => 5.1.0)
  - Upgrading mautic/theme-fresh-fixed (5.0.4 => 5.1.0)
  - Upgrading mautic/theme-fresh-left (5.0.4 => 5.1.0)
  - Upgrading mautic/theme-fresh-wide (5.0.4 => 5.1.0)
  - Upgrading mautic/theme-goldstar (5.0.4 => 5.1.0)
  - Upgrading mautic/theme-neopolitan (5.0.4 => 5.1.0)
  - Upgrading mautic/theme-oxygen (5.0.4 => 5.1.0)
  - Upgrading mautic/theme-paprika (5.0.4 => 5.1.0)
  - Upgrading mautic/theme-skyline (5.0.4 => 5.1.0)
  - Upgrading mautic/theme-sparse (5.0.4 => 5.1.0)
  - Upgrading mautic/theme-sunday (5.0.4 => 5.1.0)
  - Upgrading mautic/theme-trulypersonal (5.0.4 => 5.1.0)
  - Upgrading mautic/theme-vibrant (5.0.4 => 5.1.0)
  - Upgrading phpstan/phpdoc-parser (1.29.0 => 1.29.1)
  - Upgrading symfony/amqp-messenger (v5.4.39 => v5.4.40)
  - Upgrading symfony/asset (v5.4.39 => v5.4.40)
  - Upgrading symfony/cache (v5.4.39 => v5.4.40)
  - Upgrading symfony/config (v5.4.39 => v5.4.40)
  - Upgrading symfony/console (v5.4.39 => v5.4.40)
  - Upgrading symfony/css-selector (v5.4.39 => v5.4.40)
  - Upgrading symfony/dependency-injection (v5.4.39 => v5.4.40)
  - Upgrading symfony/doctrine-bridge (v5.4.39 => v5.4.40)
  - Upgrading symfony/doctrine-messenger (v5.4.39 => v5.4.40)
  - Upgrading symfony/dotenv (v5.4.39 => v5.4.40)
  - Upgrading symfony/error-handler (v5.4.39 => v5.4.40)
  - Upgrading symfony/event-dispatcher (v5.4.39 => v5.4.40)
  - Upgrading symfony/expression-language (v5.4.39 => v5.4.40)
  - Upgrading symfony/filesystem (v5.4.39 => v5.4.40)
  - Upgrading symfony/finder (v5.4.39 => v5.4.40)
  - Upgrading symfony/form (v5.4.39 => v5.4.40)
  - Upgrading symfony/framework-bundle (v5.4.39 => v5.4.40)
  - Upgrading symfony/http-client (v5.4.39 => v5.4.40)
  - Upgrading symfony/http-foundation (v5.4.39 => v5.4.40)
  - Upgrading symfony/http-kernel (v5.4.39 => v5.4.40)
  - Upgrading symfony/intl (v5.4.39 => v5.4.40)
  - Upgrading symfony/lock (v5.4.39 => v5.4.40)
  - Upgrading symfony/mailer (v5.4.39 => v5.4.40)
  - Upgrading symfony/messenger (v5.4.39 => v5.4.40)
  - Upgrading symfony/mime (v5.4.39 => v5.4.40)
  - Upgrading symfony/monolog-bridge (v5.4.39 => v5.4.40)
  - Upgrading symfony/options-resolver (v5.4.39 => v5.4.40)
  - Upgrading symfony/password-hasher (v6.4.7 => v6.4.8)
  - Upgrading symfony/process (v5.4.39 => v5.4.40)
  - Upgrading symfony/property-access (v5.4.39 => v5.4.40)
  - Upgrading symfony/property-info (v6.4.7 => v6.4.8)
  - Upgrading symfony/routing (v5.4.39 => v5.4.40)
  - Upgrading symfony/security-bundle (v5.4.39 => v5.4.40)
  - Upgrading symfony/security-core (v5.4.39 => v5.4.40)
  - Upgrading symfony/security-csrf (v5.4.39 => v5.4.40)
  - Upgrading symfony/security-guard (v5.4.39 => v5.4.40)
  - Upgrading symfony/security-http (v5.4.39 => v5.4.40)
  - Upgrading symfony/stopwatch (v5.4.39 => v5.4.40)
  - Upgrading symfony/string (v6.4.7 => v6.4.8)
  - Upgrading symfony/templating (v5.4.39 => v5.4.40)
  - Upgrading symfony/translation (v5.4.39 => v5.4.40)
  - Upgrading symfony/twig-bridge (v5.4.39 => v5.4.40)
  - Upgrading symfony/twig-bundle (v5.4.39 => v5.4.40)
  - Upgrading symfony/validator (v5.4.39 => v5.4.40)
  - Upgrading symfony/var-dumper (v5.4.39 => v5.4.40)
  - Upgrading symfony/var-exporter (v6.4.7 => v6.4.8)
  - Upgrading symfony/yaml (v5.4.39 => v5.4.40)
  - Upgrading wikimedia/less.php (v4.3.0 => v4.4.1)
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 1 install, 88 updates, 0 removals
  - Downloading symfony/string (v6.4.8)
  - Downloading symfony/console (v5.4.40)
  - Downloading bjeavons/zxcvbn-php (1.3.1)
  - Downloading symfony/process (v5.4.40)
  - Downloading symfony/finder (v5.4.40)
  - Downloading symfony/filesystem (v5.4.40)
  - Downloading composer/pcre (3.1.4)
  - Downloading composer/class-map-generator (1.3.4)
  - Downloading composer/composer (2.7.7)
  - Downloading symfony/http-foundation (v5.4.40)
  - Downloading symfony/event-dispatcher (v5.4.40)
  - Downloading symfony/var-dumper (v5.4.40)
  - Downloading symfony/error-handler (v5.4.40)
  - Downloading symfony/http-kernel (v5.4.40)
  - Downloading symfony/doctrine-bridge (v5.4.40)
  - Downloading symfony/dependency-injection (v5.4.40)
  - Downloading symfony/config (v5.4.40)
  - Downloading symfony/routing (v5.4.40)
  - Downloading symfony/var-exporter (v6.4.8)
  - Downloading symfony/cache (v5.4.40)
  - Downloading symfony/framework-bundle (v5.4.40)
  - Downloading doctrine/doctrine-fixtures-bundle (3.6.1)
  - Downloading symfony/stopwatch (v5.4.40)
  - Downloading symfony/twig-bridge (v5.4.40)
  - Downloading symfony/twig-bundle (v5.4.40)
  - Downloading symfony/password-hasher (v6.4.8)
  - Downloading symfony/security-core (v5.4.40)
  - Downloading symfony/property-info (v6.4.8)
  - Downloading symfony/property-access (v5.4.40)
  - Downloading symfony/security-http (v5.4.40)
  - Downloading symfony/security-guard (v5.4.40)
  - Downloading symfony/security-csrf (v5.4.40)
  - Downloading symfony/security-bundle (v5.4.40)
  - Downloading aws/aws-sdk-php (3.314.0)
  - Downloading giggsey/libphonenumber-for-php (8.13.38)
  - Downloading symfony/options-resolver (v5.4.40)
  - Downloading symfony/form (v5.4.40)
  - Downloading symfony/asset (v5.4.40)
  - Downloading phpstan/phpdoc-parser (1.29.1)
  - Downloading knplabs/knp-menu-bundle (v3.4.2)
  - Downloading symfony/yaml (v5.4.40)
  - Syncing lightsaml/sp-bundle (dev-symfony5 083bf6d) into cache
  - Downloading wikimedia/less.php (v4.4.1)
  - Downloading symfony/expression-language (v5.4.40)
  - Downloading symfony/validator (v5.4.40)
  - Downloading symfony/translation (v5.4.40)
  - Downloading symfony/templating (v5.4.40)
  - Downloading symfony/monolog-bridge (v5.4.40)
  - Downloading symfony/mime (v5.4.40)
  - Downloading symfony/messenger (v5.4.40)
  - Downloading symfony/doctrine-messenger (v5.4.40)
  - Downloading symfony/amqp-messenger (v5.4.40)
  - Downloading symfony/mailer (v5.4.40)
  - Downloading symfony/lock (v5.4.40)
  - Downloading symfony/intl (v5.4.40)
  - Downloading symfony/http-client (v5.4.40)
  - Downloading symfony/dotenv (v5.4.40)
  - Downloading symfony/css-selector (v5.4.40)
  - Downloading mautic/core-lib (5.1.0)
  - Downloading mautic/grapes-js-builder-bundle (5.1.0)
  - Downloading mautic/plugin-clearbit (5.1.0)
  - Downloading mautic/plugin-cloudstorage (5.1.0)
  - Downloading mautic/plugin-crm (5.1.0)
  - Downloading mautic/plugin-emailmarketing (5.1.0)
  - Downloading mautic/plugin-focus (5.1.0)
  - Downloading mautic/plugin-fullcontact (5.1.0)
  - Downloading mautic/plugin-gmail (5.1.0)
  - Downloading mautic/plugin-outlook (5.1.0)
  - Downloading mautic/plugin-social (5.1.0)
  - Downloading mautic/plugin-tagmanager (5.1.0)
  - Downloading mautic/plugin-zapier (5.1.0)
  - Downloading mautic/theme-paprika (5.1.0)
  - Upgrading symfony/string (v6.4.7 => v6.4.8): Extracting archive
  - Upgrading symfony/console (v5.4.39 => v5.4.40): Extracting archive
  - Installing bjeavons/zxcvbn-php (1.3.1): Extracting archive
  - Upgrading symfony/process (v5.4.39 => v5.4.40): Extracting archive
  - Upgrading symfony/finder (v5.4.39 => v5.4.40): Extracting archive
  - Upgrading symfony/filesystem (v5.4.39 => v5.4.40): Extracting archive
  - Upgrading composer/pcre (3.1.3 => 3.1.4): Extracting archive
  - Upgrading composer/class-map-generator (1.1.1 => 1.3.4): Extracting archive
  - Upgrading composer/composer (2.7.6 => 2.7.7): Extracting archive
  - Upgrading symfony/http-foundation (v5.4.39 => v5.4.40): Extracting archive
  - Upgrading symfony/event-dispatcher (v5.4.39 => v5.4.40): Extracting archive
  - Upgrading symfony/var-dumper (v5.4.39 => v5.4.40): Extracting archive
  - Upgrading symfony/error-handler (v5.4.39 => v5.4.40): Extracting archive
  - Upgrading symfony/http-kernel (v5.4.39 => v5.4.40): Extracting archive
  - Upgrading symfony/doctrine-bridge (v5.4.39 => v5.4.40): Extracting archive
  - Upgrading symfony/dependency-injection (v5.4.39 => v5.4.40): Extracting archive
  - Upgrading symfony/config (v5.4.39 => v5.4.40): Extracting archive
  - Upgrading symfony/routing (v5.4.39 => v5.4.40): Extracting archive
  - Upgrading symfony/var-exporter (v6.4.7 => v6.4.8): Extracting archive
  - Upgrading symfony/cache (v5.4.39 => v5.4.40): Extracting archive
  - Upgrading symfony/framework-bundle (v5.4.39 => v5.4.40): Extracting archive
  - Upgrading doctrine/doctrine-fixtures-bundle (3.6.0 => 3.6.1): Extracting archive
  - Upgrading symfony/stopwatch (v5.4.39 => v5.4.40): Extracting archive
  - Upgrading symfony/twig-bridge (v5.4.39 => v5.4.40): Extracting archive
  - Upgrading symfony/twig-bundle (v5.4.39 => v5.4.40): Extracting archive
  - Upgrading symfony/password-hasher (v6.4.7 => v6.4.8): Extracting archive
  - Upgrading symfony/security-core (v5.4.39 => v5.4.40): Extracting archive
  - Upgrading symfony/property-info (v6.4.7 => v6.4.8): Extracting archive
  - Upgrading symfony/property-access (v5.4.39 => v5.4.40): Extracting archive
  - Upgrading symfony/security-http (v5.4.39 => v5.4.40): Extracting archive
  - Upgrading symfony/security-guard (v5.4.39 => v5.4.40): Extracting archive
  - Upgrading symfony/security-csrf (v5.4.39 => v5.4.40): Extracting archive
  - Upgrading symfony/security-bundle (v5.4.39 => v5.4.40): Extracting archive
  - Upgrading aws/aws-sdk-php (3.308.2 => 3.314.0): Extracting archive
  - Upgrading giggsey/libphonenumber-for-php (8.13.37 => 8.13.38): Extracting archive
  - Upgrading symfony/options-resolver (v5.4.39 => v5.4.40): Extracting archive
  - Upgrading symfony/form (v5.4.39 => v5.4.40): Extracting archive
  - Upgrading symfony/asset (v5.4.39 => v5.4.40): Extracting archive
  - Upgrading phpstan/phpdoc-parser (1.29.0 => 1.29.1): Extracting archive
  - Upgrading knplabs/knp-menu-bundle (v3.4.1 => v3.4.2): Extracting archive
  - Upgrading symfony/yaml (v5.4.39 => v5.4.40): Extracting archive
  - Upgrading lightsaml/sp-bundle (dev-symfony5 91f36a5 => dev-symfony5 083bf6d): Checking out 083bf6d62c from cache
  - Upgrading wikimedia/less.php (v4.3.0 => v4.4.1): Extracting archive
  - Upgrading symfony/expression-language (v5.4.39 => v5.4.40): Extracting archive
  - Upgrading symfony/validator (v5.4.39 => v5.4.40): Extracting archive
  - Upgrading symfony/translation (v5.4.39 => v5.4.40): Extracting archive
  - Upgrading symfony/templating (v5.4.39 => v5.4.40): Extracting archive
  - Upgrading symfony/monolog-bridge (v5.4.39 => v5.4.40): Extracting archive
  - Upgrading symfony/mime (v5.4.39 => v5.4.40): Extracting archive
  - Upgrading symfony/messenger (v5.4.39 => v5.4.40): Extracting archive
  - Upgrading symfony/doctrine-messenger (v5.4.39 => v5.4.40): Extracting archive
  - Upgrading symfony/amqp-messenger (v5.4.39 => v5.4.40): Extracting archive
  - Upgrading symfony/mailer (v5.4.39 => v5.4.40): Extracting archive
  - Upgrading symfony/lock (v5.4.39 => v5.4.40): Extracting archive
  - Upgrading symfony/intl (v5.4.39 => v5.4.40): Extracting archive
  - Upgrading symfony/http-client (v5.4.39 => v5.4.40): Extracting archive
  - Upgrading symfony/dotenv (v5.4.39 => v5.4.40): Extracting archive
  - Upgrading symfony/css-selector (v5.4.39 => v5.4.40): Extracting archive
  - Upgrading mautic/core-lib (5.0.4 => 5.1.0): Extracting archive
  - Upgrading mautic/grapes-js-builder-bundle (5.0.4 => 5.1.0): Extracting archive
  - Upgrading mautic/plugin-clearbit (5.0.4 => 5.1.0): Extracting archive
  - Upgrading mautic/plugin-cloudstorage (5.0.4 => 5.1.0): Extracting archive
  - Upgrading mautic/plugin-crm (5.0.4 => 5.1.0): Extracting archive
  - Upgrading mautic/plugin-emailmarketing (5.0.4 => 5.1.0): Extracting archive
  - Upgrading mautic/plugin-focus (5.0.4 => 5.1.0): Extracting archive
  - Upgrading mautic/plugin-fullcontact (5.0.4 => 5.1.0): Extracting archive
  - Upgrading mautic/plugin-gmail (5.0.4 => 5.1.0): Extracting archive
  - Upgrading mautic/plugin-outlook (5.0.4 => 5.1.0): Extracting archive
  - Upgrading mautic/plugin-social (5.0.4 => 5.1.0): Extracting archive
  - Upgrading mautic/plugin-tagmanager (5.0.4 => 5.1.0): Extracting archive
  - Upgrading mautic/plugin-zapier (5.0.4 => 5.1.0): Extracting archive
  - Upgrading mautic/theme-aurora (5.0.4 => 5.1.0): Extracting archive
  - Upgrading mautic/theme-blank (5.0.4 => 5.1.0): Extracting archive
  - Upgrading mautic/theme-brienz (5.0.4 => 5.1.0): Extracting archive
  - Upgrading mautic/theme-cards (5.0.4 => 5.1.0): Extracting archive
  - Upgrading mautic/theme-confirmme (5.0.4 => 5.1.0): Extracting archive
  - Upgrading mautic/theme-fresh-center (5.0.4 => 5.1.0): Extracting archive
  - Upgrading mautic/theme-fresh-fixed (5.0.4 => 5.1.0): Extracting archive
  - Upgrading mautic/theme-fresh-left (5.0.4 => 5.1.0): Extracting archive
  - Upgrading mautic/theme-fresh-wide (5.0.4 => 5.1.0): Extracting archive
  - Upgrading mautic/theme-goldstar (5.0.4 => 5.1.0): Extracting archive
  - Upgrading mautic/theme-neopolitan (5.0.4 => 5.1.0): Extracting archive
  - Upgrading mautic/theme-oxygen (5.0.4 => 5.1.0): Extracting archive
  - Upgrading mautic/theme-paprika (5.0.4 => 5.1.0): Extracting archive
  - Upgrading mautic/theme-skyline (5.0.4 => 5.1.0): Extracting archive
  - Upgrading mautic/theme-sparse (5.0.4 => 5.1.0): Extracting archive
  - Upgrading mautic/theme-sunday (5.0.4 => 5.1.0): Extracting archive
  - Upgrading mautic/theme-trulypersonal (5.0.4 => 5.1.0): Extracting archive
  - Upgrading mautic/theme-vibrant (5.0.4 => 5.1.0): Extracting archive
Package sensio/framework-extra-bundle is abandoned, you should avoid using it. Use Symfony instead.
Package theofidry/psysh-bundle is abandoned, you should avoid using it. No replacement was suggested.
Package tightenco/collect is abandoned, you should avoid using it. Use illuminate/collections instead.
Generating autoload files
115 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
Deprecation Notice: Return type of Mautic\Composer\Plugin\Scaffold\Operations\ScaffoldFileCollection::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/vhosts/mautic/public/vendor/mautic/core-composer-scaffold/Operations/ScaffoldFileCollection.php:118
Scaffolding files for mautic/core-lib:
  - Copy [project-root]/.gitignore from assets/scaffold/files/example.gitignore
  - Copy [project-root]/package.json from assets/scaffold/files/package.json
  - Copy [project-root]/package-lock.json from assets/scaffold/files/package-lock.json
> npm ci --prefer-offline --no-audit
npm warn deprecated @npmcli/move-file@1.1.2: This functionality has been moved to @npmcli/fs

> mautic@0.0.0 postinstall
> node_modules/modernizr/bin/modernizr -c modernizr-config.json -d node_modules/modernizr/modernizr-mautic-dist.js & npm run build


> mautic@0.0.0 build
> webpack --mode production  --config webpack.config.js

(node:136780) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
Modernizr build saved to node_modules/modernizr/modernizr-mautic-dist.js
asset ckeditor.js 1.46 MiB [emitted] [minimized] [big] (name: main) 2 related assets
asset translations/bn.js 25 KiB [emitted] [minimized]
asset translations/th.js 23.9 KiB [emitted] [minimized]
asset translations/el.js 22.5 KiB [emitted] [minimized]
asset translations/ru.js 21.7 KiB [emitted] [minimized]
asset translations/bg.js 21.5 KiB [emitted] [minimized]
asset translations/uk.js 21 KiB [emitted] [minimized]
asset translations/hi.js 18.6 KiB [emitted] [minimized]
asset translations/ar.js 18.3 KiB [emitted] [minimized]
asset translations/sr.js 17.5 KiB [emitted] [minimized]
asset translations/he.js 16.8 KiB [emitted] [minimized]
asset translations/ja.js 16.7 KiB [emitted] [minimized]
asset translations/vi.js 16.2 KiB [emitted] [minimized]
asset translations/it.js 15.6 KiB [emitted] [minimized]
+ 57 assets
orphan modules 5.45 MiB [orphan] 1626 modules
runtime modules 2.06 KiB 6 modules
cacheable modules 5.48 MiB
  modules by path ./node_modules/@ckeditor/ 471 KiB 91 modules
  modules by path ./node_modules/color-convert/*.js 20.5 KiB
    ./node_modules/color-convert/index.js 1.67 KiB [built] [code generated]
    ./node_modules/color-convert/conversions.js 16.6 KiB [built] [code generated]
    ./node_modules/color-convert/route.js 2.2 KiB [built] [code generated]
  modules by path ./node_modules/css-loader/dist/runtime/*.js 3.84 KiB
    ./node_modules/css-loader/dist/runtime/cssWithMappingToString.js 2.27 KiB [built] [code generated]
    ./node_modules/css-loader/dist/runtime/api.js 1.57 KiB [built] [code generated]
  ./docroot/app/assets/libraries/ckeditor/src/ckeditor.ts + 1135 modules 4.98 MiB [built] [code generated]
  ./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js 6.67 KiB [built] [code generated]
  ./node_modules/color-name/index.js 4.51 KiB [built] [code generated]
webpack 5.88.2 compiled successfully in 28887 ms

added 601 packages in 48s

75 packages are looking for funding
  run `npm fund` for details
> npx patch-package
patch-package 7.0.2
Applying patches...
at.js@1.5.4 âś”
chosen-js@1.8.7 âś”
> php bin/console mautic:assets:generate


 [WARNING] Some commands could not be registered:


In ContactSegmentFilterFactory.php line 23:

  Too few arguments to function Mautic\LeadBundle\Segment\ContactSegmentFilterFactory::__construct(), 3 passed in /var/www/vhosts/mautic/public/var/cache/prod/ContainerLQk21UE/AppKernelProdContainer.php on line 8772 and exactly 4 expected


In ContactSegmentFilterFactory.php line 23:

  Too few arguments to function Mautic\LeadBundle\Segment\ContactSegmentFilterFactory::__construct(), 3 passed in /var/www/vhosts/mautic/public/var/cache/prod/ContainerLQk21UE/AppKernelProdContainer.php on line 8772 and exactly 4 expected


In ContactSegmentFilterFactory.php line 23:

  Too few arguments to function Mautic\LeadBundle\Segment\ContactSegmentFilterFactory::__construct(), 3 passed in /var/www/vhosts/mautic/public/var/cache/prod/ContainerLQk21UE/AppKernelProdContainer.php on line 8772 and exactly 4 expected


In MailHelper.php line 226:

  Too few arguments to function Mautic\EmailBundle\Helper\MailHelper::__construct(), 2 passed in /var/www/vhosts/mautic/public/var/cache/prod/ContainerLQk21UE/AppKernelProdContainer.php on line 7698 and exactly 8 expected


In CleanupMaintenanceCommand.php line 26:

  Too few arguments to function Mautic\CoreBundle\Command\CleanupMaintenanceCommand::__construct(), 4 passed in /var/www/vhosts/mautic/public/var/cache/prod/ContainerLQk21UE/getCleanupMaintenanceCommandService.php on line 20 and exactly 6 expected


In MaxMindDoNotSellPurgeCommand.php line 21:

  Mautic\CoreBundle\Command\MaxMindDoNotSellPurgeCommand::__construct(): Argument #2 ($leadRepository) must be of type Mautic\LeadBundle\Entity\LeadRepository, Mautic\CoreBundle\IpLookup\DoNotSellList\MaxMindDoNotSellList given, called in /var/www/vhosts/mautic/public/var/cache/prod/ContainerLQk21UE/getMaxMindDoNot
  SellPurgeCommandService.php on line 20


In ContactSegmentFilterFactory.php line 23:

  Too few arguments to function Mautic\LeadBundle\Segment\ContactSegmentFilterFactory::__construct(), 3 passed in /var/www/vhosts/mautic/public/var/cache/prod/ContainerLQk21UE/AppKernelProdContainer.php on line 8772 and exactly 4 expected


In ContactSegmentFilterFactory.php line 23:

  Too few arguments to function Mautic\LeadBundle\Segment\ContactSegmentFilterFactory::__construct(), 3 passed in /var/www/vhosts/mautic/public/var/cache/prod/ContainerLQk21UE/AppKernelProdContainer.php on line 8772 and exactly 4 expected


In ContactSegmentFilterFactory.php line 23:

  Too few arguments to function Mautic\LeadBundle\Segment\ContactSegmentFilterFactory::__construct(), 3 passed in /var/www/vhosts/mautic/public/var/cache/prod/ContainerLQk21UE/AppKernelProdContainer.php on line 8772 and exactly 4 expected


In ContactSegmentFilterFactory.php line 23:

  Too few arguments to function Mautic\LeadBundle\Segment\ContactSegmentFilterFactory::__construct(), 3 passed in /var/www/vhosts/mautic/public/var/cache/prod/ContainerLQk21UE/AppKernelProdContainer.php on line 8772 and exactly 4 expected


In ContactSegmentFilterFactory.php line 23:

  Too few arguments to function Mautic\LeadBundle\Segment\ContactSegmentFilterFactory::__construct(), 3 passed in /var/www/vhosts/mautic/public/var/cache/prod/ContainerLQk21UE/AppKernelProdContainer.php on line 8772 and exactly 4 expected


In ContactSegmentFilterFactory.php line 23:

  Too few arguments to function Mautic\LeadBundle\Segment\ContactSegmentFilterFactory::__construct(), 3 passed in /var/www/vhosts/mautic/public/var/cache/prod/ContainerLQk21UE/AppKernelProdContainer.php on line 8772 and exactly 4 expected


In ContactSegmentFilterFactory.php line 23:

  Too few arguments to function Mautic\LeadBundle\Segment\ContactSegmentFilterFactory::__construct(), 3 passed in /var/www/vhosts/mautic/public/var/cache/prod/ContainerLQk21UE/AppKernelProdContainer.php on line 8772 and exactly 4 expected


In ContactSegmentFilterFactory.php line 23:

  Too few arguments to function Mautic\LeadBundle\Segment\ContactSegmentFilterFactory::__construct(), 3 passed in /var/www/vhosts/mautic/public/var/cache/prod/ContainerLQk21UE/AppKernelProdContainer.php on line 8772 and exactly 4 expected


In ContactSegmentFilterFactory.php line 23:

  Too few arguments to function Mautic\LeadBundle\Segment\ContactSegmentFilterFactory::__construct(), 3 passed in /var/www/vhosts/mautic/public/var/cache/prod/ContainerLQk21UE/AppKernelProdContainer.php on line 8772 and exactly 4 expected


In ContactSegmentFilterFactory.php line 23:

  Too few arguments to function Mautic\LeadBundle\Segment\ContactSegmentFilterFactory::__construct(), 3 passed in /var/www/vhosts/mautic/public/var/cache/prod/ContainerLQk21UE/AppKernelProdContainer.php on line 8772 and exactly 4 expected


In ContactSegmentFilterFactory.php line 23:

  Too few arguments to function Mautic\LeadBundle\Segment\ContactSegmentFilterFactory::__construct(), 3 passed in /var/www/vhosts/mautic/public/var/cache/prod/ContainerLQk21UE/AppKernelProdContainer.php on line 8772 and exactly 4 expected


In ContactSegmentFilterFactory.php line 23:

  Too few arguments to function Mautic\LeadBundle\Segment\ContactSegmentFilterFactory::__construct(), 3 passed in /var/www/vhosts/mautic/public/var/cache/prod/ContainerLQk21UE/AppKernelProdContainer.php on line 8772 and exactly 4 expected


In ContactSegmentFilterFactory.php line 23:

  Too few arguments to function Mautic\LeadBundle\Segment\ContactSegmentFilterFactory::__construct(), 3 passed in /var/www/vhosts/mautic/public/var/cache/prod/ContainerLQk21UE/AppKernelProdContainer.php on line 8772 and exactly 4 expected




 [WARNING] Some commands could not be registered:


In ContactSegmentFilterFactory.php line 23:

  Too few arguments to function Mautic\LeadBundle\Segment\ContactSegmentFilterFactory::__construct(), 3 passed in /var/www/vhosts/mautic/public/var/cache/prod/ContainerLQk21UE/AppKernelProdContainer.php on line 8772 and exactly 4 expected


In ContactSegmentFilterFactory.php line 23:

  Too few arguments to function Mautic\LeadBundle\Segment\ContactSegmentFilterFactory::__construct(), 3 passed in /var/www/vhosts/mautic/public/var/cache/prod/ContainerLQk21UE/AppKernelProdContainer.php on line 8772 and exactly 4 expected


In ContactSegmentFilterFactory.php line 23:

  Too few arguments to function Mautic\LeadBundle\Segment\ContactSegmentFilterFactory::__construct(), 3 passed in /var/www/vhosts/mautic/public/var/cache/prod/ContainerLQk21UE/AppKernelProdContainer.php on line 8772 and exactly 4 expected


In MailHelper.php line 226:

  Too few arguments to function Mautic\EmailBundle\Helper\MailHelper::__construct(), 2 passed in /var/www/vhosts/mautic/public/var/cache/prod/ContainerLQk21UE/AppKernelProdContainer.php on line 7698 and exactly 8 expected


In CleanupMaintenanceCommand.php line 26:

  Too few arguments to function Mautic\CoreBundle\Command\CleanupMaintenanceCommand::__construct(), 4 passed in /var/www/vhosts/mautic/public/var/cache/prod/ContainerLQk21UE/getCleanupMaintenanceCommandService.php on line 20 and exactly 6 expected


In MaxMindDoNotSellPurgeCommand.php line 21:

  Mautic\CoreBundle\Command\MaxMindDoNotSellPurgeCommand::__construct(): Argument #2 ($leadRepository) must be of type Mautic\LeadBundle\Entity\LeadRepository, Mautic\CoreBundle\IpLookup\DoNotSellList\MaxMindDoNotSellList given, called in /var/www/vhosts/mautic/public/var/cache/prod/ContainerLQk21UE/getMaxMindDoNot
  SellPurgeCommandService.php on line 20


In ContactSegmentFilterFactory.php line 23:

  Too few arguments to function Mautic\LeadBundle\Segment\ContactSegmentFilterFactory::__construct(), 3 passed in /var/www/vhosts/mautic/public/var/cache/prod/ContainerLQk21UE/AppKernelProdContainer.php on line 8772 and exactly 4 expected


In ContactSegmentFilterFactory.php line 23:

  Too few arguments to function Mautic\LeadBundle\Segment\ContactSegmentFilterFactory::__construct(), 3 passed in /var/www/vhosts/mautic/public/var/cache/prod/ContainerLQk21UE/AppKernelProdContainer.php on line 8772 and exactly 4 expected


In ContactSegmentFilterFactory.php line 23:

  Too few arguments to function Mautic\LeadBundle\Segment\ContactSegmentFilterFactory::__construct(), 3 passed in /var/www/vhosts/mautic/public/var/cache/prod/ContainerLQk21UE/AppKernelProdContainer.php on line 8772 and exactly 4 expected


In ContactSegmentFilterFactory.php line 23:

  Too few arguments to function Mautic\LeadBundle\Segment\ContactSegmentFilterFactory::__construct(), 3 passed in /var/www/vhosts/mautic/public/var/cache/prod/ContainerLQk21UE/AppKernelProdContainer.php on line 8772 and exactly 4 expected


In ContactSegmentFilterFactory.php line 23:

  Too few arguments to function Mautic\LeadBundle\Segment\ContactSegmentFilterFactory::__construct(), 3 passed in /var/www/vhosts/mautic/public/var/cache/prod/ContainerLQk21UE/AppKernelProdContainer.php on line 8772 and exactly 4 expected


In ContactSegmentFilterFactory.php line 23:

  Too few arguments to function Mautic\LeadBundle\Segment\ContactSegmentFilterFactory::__construct(), 3 passed in /var/www/vhosts/mautic/public/var/cache/prod/ContainerLQk21UE/AppKernelProdContainer.php on line 8772 and exactly 4 expected


In ContactSegmentFilterFactory.php line 23:

  Too few arguments to function Mautic\LeadBundle\Segment\ContactSegmentFilterFactory::__construct(), 3 passed in /var/www/vhosts/mautic/public/var/cache/prod/ContainerLQk21UE/AppKernelProdContainer.php on line 8772 and exactly 4 expected


In ContactSegmentFilterFactory.php line 23:

  Too few arguments to function Mautic\LeadBundle\Segment\ContactSegmentFilterFactory::__construct(), 3 passed in /var/www/vhosts/mautic/public/var/cache/prod/ContainerLQk21UE/AppKernelProdContainer.php on line 8772 and exactly 4 expected


In ContactSegmentFilterFactory.php line 23:

  Too few arguments to function Mautic\LeadBundle\Segment\ContactSegmentFilterFactory::__construct(), 3 passed in /var/www/vhosts/mautic/public/var/cache/prod/ContainerLQk21UE/AppKernelProdContainer.php on line 8772 and exactly 4 expected


In ContactSegmentFilterFactory.php line 23:

  Too few arguments to function Mautic\LeadBundle\Segment\ContactSegmentFilterFactory::__construct(), 3 passed in /var/www/vhosts/mautic/public/var/cache/prod/ContainerLQk21UE/AppKernelProdContainer.php on line 8772 and exactly 4 expected


In ContactSegmentFilterFactory.php line 23:

  Too few arguments to function Mautic\LeadBundle\Segment\ContactSegmentFilterFactory::__construct(), 3 passed in /var/www/vhosts/mautic/public/var/cache/prod/ContainerLQk21UE/AppKernelProdContainer.php on line 8772 and exactly 4 expected


In ContactSegmentFilterFactory.php line 23:

  Too few arguments to function Mautic\LeadBundle\Segment\ContactSegmentFilterFactory::__construct(), 3 passed in /var/www/vhosts/mautic/public/var/cache/prod/ContainerLQk21UE/AppKernelProdContainer.php on line 8772 and exactly 4 expected


In ContactSegmentFilterFactory.php line 23:

  Too few arguments to function Mautic\LeadBundle\Segment\ContactSegmentFilterFactory::__construct(), 3 passed in /var/www/vhosts/mautic/public/var/cache/prod/ContainerLQk21UE/AppKernelProdContainer.php on line 8772 and exactly 4 expected



In MigrationCommandSubscriber.php line 32:

  Mautic\CoreBundle\EventListener\MigrationCommandSubscriber::addGeneratedColumns(): Argument #1 ($event) must be of type Symfony\Component\Console\Event\ConsoleTerminateEvent, Symfony\Component\Console\Event\ConsoleCommandEvent given, called in /var/www/vhosts/mautic/public/vendor/symfony/event-dispatcher/EventDis
  patcher.php on line 270


mautic:assets:generate

Script php bin/console mautic:assets:generate handling the generate-assets event returned with error code 255
Script @generate-assets was called via post-update-cmd

Also all further steps showing the same error, for example when using bin/console cache:clear

I am getting the same errors as well.

Nothing change. Still errors.

So I try replace composer.json with https://raw.githubusercontent.com/mautic/recommended-project/5.1.0/composer.json
then run composer update --with-dependencies, then I lose local.php, then recover it from a backup.

When try to run bin/console cache:clear went well.

bin/console mautic:update:apply --finish give me:

You have Composer updates enabled. This means that you can only update Mautic through the 'composer update'

command. Read more in the documentation: https://mau.tc/switch-to-composer

bin/console doctrine:migration:migrate --no-interaction give me:

[2024-06-13 19:41:12] 
[2024-06-13 19:41:12]                                                                                                             
[2024-06-13 19:41:12]  [WARNING] You have 49 previously executed migrations in the database that are not registered migrations.   
[2024-06-13 19:41:12]                                                                                                             
[2024-06-13 19:41:12] 
[2024-06-13 19:41:12]  >> 2022-03-01 12:46:32 (20180508202930)
[2024-06-13 19:41:12]  >> 2022-03-01 12:46:32 (20180702014364)
[2024-06-13 19:41:12]  >> 2022-03-01 12:46:32 (20180702014365)
[2024-06-13 19:41:12]  >> 2022-03-01 12:46:33 (20180821144204)
[2024-06-13 19:41:12]  >> 2022-03-01 12:46:33 (20180921144421)
[2024-06-13 19:41:12]  >> 2022-03-01 12:46:33 (20181111095447)
[2024-06-13 19:41:12]  >> 2022-03-01 12:46:33 (20190704154940)
[2024-06-13 19:41:12]  >> 2022-03-01 12:46:34 (20190724110039)
[2024-06-13 19:41:12]  >> 2022-03-01 12:46:34 (20191017140848)
[2024-06-13 19:41:12]  >> 2022-03-01 12:46:34 (20191126093923)
[2024-06-13 19:41:12]  >> 2022-03-01 12:46:35 (20191206113956)
[2024-06-13 19:41:12]  >> 2022-03-01 12:46:35 (20191219155630)
[2024-06-13 19:41:12]  >> 2022-03-01 12:46:36 (20200211095409)
[2024-06-13 19:41:12]  >> 2022-03-01 12:46:36 (20200212141530)
[2024-06-13 19:41:12]  >> 2022-03-01 12:46:36 (20200220172041)
[2024-06-13 19:41:12]  >> 2022-03-01 12:46:36 (20200227110431)
[2024-06-13 19:41:12]  >> 2022-03-01 12:46:36 (20200302164801)
[2024-06-13 19:41:12]  >> 2022-03-01 12:46:36 (20200331160919)
[2024-06-13 19:41:12]  >> 2022-03-01 12:46:37 (20200409102100)
[2024-06-13 19:41:12]  >> 2022-03-01 12:46:37 (20200422144300)
[2024-06-13 19:41:12]  >> 2022-03-01 12:46:37 (20200507122854)
[2024-06-13 19:41:12]  >> 2022-03-01 12:46:37 (20200729170800)
[2024-06-13 19:41:12]  >> 2022-03-01 12:46:38 (20200805185714)
[2024-06-13 19:41:12]  >> 2022-03-01 12:46:38 (20200810153131)
[2024-06-13 19:41:12]  >> 2022-03-01 12:46:38 (20200812180900)
[2024-06-13 19:41:12]  >> 2022-03-01 12:46:38 (20200815153711)
[2024-06-13 19:41:12]  >> 2022-03-01 12:46:38 (20200924080139)
[2024-06-13 19:41:12]  >> 2022-03-01 12:46:38 (20201015084627)
[2024-06-13 19:41:12]  >> 2022-03-01 12:46:39 (20201102120710)
[2024-06-13 19:41:12]  >> 2022-03-01 12:46:39 (20201102133546)
[2024-06-13 19:41:12]  >> 2022-03-01 12:46:39 (20201105120328)
[2024-06-13 19:41:12]  >> 2022-03-01 12:46:39 (20201120122846)
[2024-06-13 19:41:12]  >> 2022-03-01 12:46:39 (20201123070813)
[2024-06-13 19:41:12]  >> 2022-03-01 12:46:39 (20201125155904)
[2024-06-13 19:41:12]  >> 2022-03-01 12:46:39 (20201130201631)
[2024-06-13 19:41:12]  >> 2022-03-01 12:46:39 (20201207114926)
[2024-06-13 19:41:12]  >> 2022-03-01 12:46:40 (20201207140911)
[2024-06-13 19:41:12]  >> 2022-03-01 12:46:40 (20201228041109)
[2024-06-13 19:41:12]  >> 2022-03-01 12:46:40 (20210104171005)
[2024-06-13 19:41:12]  >> 2022-03-01 12:46:40 (20210203143600)
[2024-06-13 19:41:12]  >> 2022-03-01 12:46:41 (20210223174702)
[2024-06-13 19:41:12]  >> 2022-03-01 12:46:41 (20210502162314)
[2024-06-13 19:41:12]  >> 2022-03-01 12:46:41 (20210520100503)
[2024-06-13 19:41:12]  >> 2022-03-01 12:46:41 (20210609191822)
[2024-06-13 19:41:12]  >> 2022-03-01 12:46:41 (20210614151138)
[2024-06-13 19:41:12]  >> 2022-03-01 12:46:41 (20210623071326)
[2024-06-13 19:41:12]  >> 2022-03-01 12:46:42 (20220111202917)
[2024-06-13 19:41:12]  >> 2023-09-09 23:02:36 (20230519081315)
[2024-06-13 19:41:12]  >> 2023-09-09 23:02:37 (20230522115137)
[2024-06-13 19:41:12] [notice] Migrating up to Mautic\Migrations\Versionzz20230929183000
[2024-06-13 19:41:13] [notice] Migration Mautic\Migrations\Version20201026101117 skipped during Pre-Checks. Reason: "Schema includes this migration"
[2024-06-13 19:41:15] [warning] Migration Mautic\Migrations\Version20211209022550 was executed but did not result in any SQL statements.
[2024-06-13 19:41:15] [notice] Migration Mautic\Migrations\Version20221128145933 skipped during Pre-Checks. Reason: "Schema includes this migration"
[2024-06-13 19:41:16] [notice] Table plugin_citrix_events already exists
[2024-06-13 19:41:16] [notice] Migration Mautic\Migrations\Version20230522141144 skipped during Pre-Checks. Reason: "Schema includes this migration"
[2024-06-13 19:41:16] [notice] Migration is not required.
[2024-06-13 19:41:16] [notice] Migration Mautic\Migrations\Version20230606111852 skipped during Pre-Checks. Reason: "Schema includes this migration"
[2024-06-13 19:41:16] [notice] 0 record(s) have been updated successfully.
[2024-06-13 19:41:16] [warning] Migration Mautic\Migrations\Version20231110103625 was executed but did not result in any SQL statements.
[2024-06-13 19:41:17] [notice] finished in 5344.4ms, used 46M memory, 21 migrations executed, 21 sql queries
[2024-06-13 19:41:17] 
[2024-06-13 19:41:17]                                                                                                             
[2024-06-13 19:41:17]  [OK] Successfully migrated to version: Mautic\Migrations\Versionzz20230929183000                           
[2024-06-13 19:41:17]                                                                                                             
[2024-06-13 19:41:17] 
[2024-06-13 19:41:17] 

bin/console doctrine:schema:update --no-interaction --force

                                                                                                           
 [WARNING] Not passing the "--complete" option to "doctrine:schema:update" is deprecated and will not be    
           supported when using doctrine/dbal 4                                                             
                                                                                                            

 Updating database schema...


In ExceptionConverter.php line 117:
                                                                                                           
  An exception occurred while executing a query: SQLSTATE[42000]: Syntax error or access violation: 1091   
  Can't DROP INDEX `IDX_1AE3441319EB6921`; check that it exists                                            
                                                                                                           

In Exception.php line 28:
                                                                                                           
  SQLSTATE[42000]: Syntax error or access violation: 1091 Can't DROP INDEX `IDX_1AE3441319EB6921`; check   
  that it exists                                                                                           
                                                                                                           

In Connection.php line 33:
                                                                                                           
  SQLSTATE[42000]: Syntax error or access violation: 1091 Can't DROP INDEX `IDX_1AE3441319EB6921`; check   
  that it exists                                                                                           
                                                                                                           

doctrine:schema:update [--em EM] [--complete] [--dump-sql] [-f|--force]

I had to delete the folder prod in var/cache manually.

Also had an error when executing the doctrine:schema:update

  • An exception occurred while executing a query: SQLSTATE[42000]: Syntax error or access violation: 1091 Can’t DROP INDEX IDX_1AE3441319EB6921; check that it exists

But seems to work so far.

@heebinho So you did the composer update part, than deleted the prod folder and afterwards did you tried the php bin/console mautic:assets:generate command?

I can confirm, deleting the prod folder BEFORE running the composer update command fixes the errors!
I only got errors here now:

mautic@services:~/public$ bin/console doctrine:schema:update --no-interaction --force


 [WARNING] Not passing the "--complete" option to "doctrine:schema:update" is deprecated and will not be supported when
           using doctrine/dbal 4


 Updating database schema...


In ExceptionConverter.php line 117:

  An exception occurred while executing a query: SQLSTATE[42000]: Syntax error or access violation: 1091 Can't DROP INDEX `IDX_1AE3441319EB6921`; check that it exists


In Exception.php line 28:

  SQLSTATE[42000]: Syntax error or access violation: 1091 Can't DROP INDEX `IDX_1AE3441319EB6921`; check that it exists


In Connection.php line 33:

  SQLSTATE[42000]: Syntax error or access violation: 1091 Can't DROP INDEX `IDX_1AE3441319EB6921`; check that it exists


doctrine:schema:update [--em EM] [--complete] [--dump-sql] [-f|--force]

But so far it looks good and Mautic is running.

1 Like

Withouth schema update (because errors as above), when I try open start page I got 500 error and in log:
mautic_prod-2024-06-14.php

[2024-06-14T21:40:25.333700+00:00] mautic.CRITICAL: Uncaught PHP Exception Error: "Call to a member function createQueryBuilder() on null" at /ho
me/szczescie/mautic_s/docroot/app/bundles/EmailBundle/Stats/Helper/FilterTrait.php line 70 {"exception":"[object] (Error(code: 0): Call t
o a member function createQueryBuilder() on null at /home/szczescie/mautic_s/docroot/app/bundles/EmailBundle/Stats/Helper/FilterTrait.php
:70)"} {"hostname":"xyz.something","pid":21287}

and prod-2024-06-14.php

[2024-06-14T21:40:25.332920+00:00] php.CRITICAL: Uncaught Error: Call to a member function createQueryBuilder() on null {"exception":"[object] (E
rror(code: 0): Call to a member function createQueryBuilder() on null at /home/szczescie/mautic_s/docroot/app/bundles/EmailBundle/Stats/H
elper/FilterTrait.php:70)"} {"hostname":"xyz.something","pid":21287}

Ok, new info.

Mautic works, but not dashboard. When I try open dashboard, then I got errors like posted above.

Still database upgrade did not pass. Give errors like above.

For now I see two problems:
STILL EXIST:

SOLVED:

1 Like

The issue I’m having is during the database schema update as well, it’s generating the below error in log when following the “bin/console mautic:update:apply --finish” step in the guide Ruth shared

https://docs.mautic.org/en/5.x/getting_started/how_to_update_mautic.html

[2024-09-26T10:47:49.172633+02:00] console.CRITICAL: Error thrown while running command "doctrine:migrations:migrate --quiet --no-interaction". Message: "An exception occurred while executing a query: SQLSTATE[42S01]: Base table or view already exists: 1050 Table 'mh4m4t_point_groups' already exists" {"exception":"[object] (Doctrine\\DBAL\\Exception\\TableExistsException(code: 1050): An exception occurred while executing a query: SQLSTATE[42S01]: Base table or view already exists: 1050 Table 'mh4m4t_point_groups' already exists at /home/mha-mauticstaging/htdocs/html/vendor/doctrine/dbal/src/Driver/API/MySQL/ExceptionConverter.php:45)\n[previous exception] [object] (Doctrine\\DBAL\\Driver\\PDO\\Exception(code: 1050): SQLSTATE[42S01]: Base table or view already exists: 1050 Table 'mh4m4t_point_groups' already exists at /home/mha-mauticstaging/htdocs/html/vendor/doctrine/dbal/src/Driver/PDO/Exception.php:28)\n[previous exception] [object] (PDOException(code: 42S01): SQLSTATE[42S01]: Base table or view already exists: 1050 Table 'mh4m4t_point_groups' already exists at /home/mha-mauticstaging/htdocs/html/vendor/doctrine/dbal/src/Driver/PDO/Connection.php:71)","command":"doctrine:migrations:migrate --quiet --no-interaction","message":"An exception occurred while executing a query: SQLSTATE[42S01]: Base table or view already exists: 1050 Table 'mh4m4t_point_groups' already exists"} {"hostname":"ip-172-31-39-27","pid":2495419}

Also getting this error, @rcheesley is there a way around these schema update issues?

[2024-09-26T11:05:29.758222+02:00] console.CRITICAL: Error thrown while running command "doctrine:migrations:migrate --quiet --no-interaction". Message: "An exception occurred while executing a query: SQLSTATE[42S21]: Column already exists: 1060 Duplicate column name 'group_id'" {"exception":"[object] (Doctrine\\DBAL\\Exception\\NonUniqueFieldNameException(code: 1060): An exception occurred while executing a query: SQLSTATE[42S21]: Column already exists: 1060 Duplicate column name 'group_id' at /home/mha-mauticstaging/htdocs/html/vendor/doctrine/dbal/src/Driver/API/MySQL/ExceptionConverter.php:72)\n[previous exception] [object] (Doctrine\\DBAL\\Driver\\PDO\\Exception(code: 1060): SQLSTATE[42S21]: Column already exists: 1060 Duplicate column name 'group_id' at /home/mha-mauticstaging/htdocs/html/vendor/doctrine/dbal/src/Driver/PDO/Exception.php:28)\n[previous exception] [object] (PDOException(code: 42S21): SQLSTATE[42S21]: Column already exists: 1060 Duplicate column name 'group_id' at /home/mha-mauticstaging/htdocs/html/vendor/doctrine/dbal/src/Driver/PDO/Connection.php:71)","command":"doctrine:migrations:migrate --quiet --no-interaction","message":"An exception occurred while executing a query: SQLSTATE[42S21]: Column already exists: 1060 Duplicate column name 'group_id'"} {"hostname":"ip-172-31-39-27","pid":2498471}