ChrisRAoW / mautic-rss-to-email-bundle

Mautic plugin to send emails from RSS
103 stars 23 forks source link

package install breaks mautic #3

Closed leonsgithub closed 6 years ago

leonsgithub commented 6 years ago

Hi Chris,

I was happy to see that you wrote this module. But when i tried to install it on the server it broke the mautic installation. I'm a bit of a noob so i could not undo the install of the email bundle and ended doing a bit of a reinstall.

This was the output:

root@bmx:/var/www/mautic# composer require raow/mautic-rss-to-email-bundle Using version ^1.0 for raow/mautic-rss-to-email-bundle ./composer.json has been created Loading composer repositories with package information Updating dependencies (including require-dev)

simplepie/simplepie suggests installing mf2/mf2 (Microformat module that allows for parsing HTML for microformats) Package guzzle/guzzle is abandoned, you should avoid using it. Use guzzlehttp/guzzle instead. Package phpoffice/phpexcel is abandoned, you should avoid using it. Use phpoffice/phpspreadsheet instead. Writing lock file Generating autoload files

ChrisRAoW commented 6 years ago

Are you on the latest version of mautic (2.13.0)?

Do the following:

  1. Remove the current composer.json and composer.lock from root of the mautic install
  2. Remove the vendors folder
  3. Download the composer.json from the mautic github (https://github.com/mautic/mautic/blob/2.13.0/composer.json) and place it into the root of your project
  4. Run composer install from the command line
  5. Check if you can access mautic again (if not, clear cache, check permissions)
  6. Install plugin again according the manual
leonsgithub commented 6 years ago

Thanks it works I wrote this script to automate this for next upgrade ``#!/bin/bash MT_DIR=/var/www/mautic;

rm $MT_DIR/composer.json rm $MT_DIR/composer.lock rm $MT_DIR/vendors -rf rm $MT_DIR/app/cache/* -rf

cd $MT_DIR wget https://raw.githubusercontent.com/mautic/mautic/2.13.1/composer.json

composer install chown -R www-data:www-data $MT_DIR

ChrisRAoW commented 6 years ago

@leonsgithub This is not a preferable approach. Because if you remove the composer.json the rss feed plugin won't be linked / updated anymore. You should be able to update mautic from the GUI or CLI without any issue now.

I think installed mautic from the download on the mautic website (not through github). That download is missing the composer.json. So now you have it it should be fine.