Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warning: this plugin nuked my Mautic 5.1.1 server #45

Open
ctotech-pl opened this issue Nov 20, 2024 · 2 comments
Open

Warning: this plugin nuked my Mautic 5.1.1 server #45

ctotech-pl opened this issue Nov 20, 2024 · 2 comments

Comments

@ctotech-pl
Copy link

ctotech-pl commented Nov 20, 2024

I spent 8 hours trying to get this plugin functional.

First, this plugin didn't work, if conditionals always ran the ELSE case regardless of input format that was passed from API token values. I tried all sorts of variations including using mj-raw, without using mj-raw, using string vs. int values, but nothing made the logic work as expected.

Second, after several hours of testing variations to see if I could get it working, I went to Save my email template change, and my Mautic server nuked itself completely.

From that point forward, when I tried to do anything in Mautic, there was a bunch of JavaScript errors and none of the menus were responding (I couldn't even open the Settings menu to uninstall the plugin).

Even after uninstalling the plugin files, clearing cache, and manually removing the plugin database entry, I still couldn't fix the Mautic server.

I reinstalled all the Mautic files (continued using the same database), still didn't fix it.

I finally had to reinstall the MySQL database from beginning, and manually reinsert the records I needed.

Only then did my Mautic server run normally again.

So yeah, don't waste your time with this plugin. Huge waste of time and unstable.

I can't even tell you anymore what PHP errors and JavaScript errors I was seeing, it was a long list of errors being thrown. It said that JQuery couldn't be found, which didn't make sense, because the main app JS file was being loaded and it had all the code for JQuery there.

I couldn't figure out how to recover the server, the error messages were all over the places, there was no guidance as to what went wrong.

@vinzent
Copy link

vinzent commented Dec 11, 2024

I've just installed with 5.2.1 using composer (adding the git as repository in composer.json and composer require Logicify/mautic-advanced-templates-bundle). Mautic still works.

@siracacl
Copy link

siracacl commented Dec 24, 2024

Just wanted to add my 2 cents here @ctotech-pl. We have this problem as well (the jQuery problem) and in my experience, this is due to mautic:assets:generate. I am running Mautic in Docker (and several others not with Docker - running Mautic in Docker has been a headache all around for me) and as soon as I issue just one m:a:g command (sometimes in conjunction with clearing cache), Mautic breaks.

In these cases, I have now found what can be done to rectify the situation, maybe these will be helpful for others who have wasted a huge amount of time on this (will be probably be applicable to other installtion methods as well):

Exec into container as root

apt install npm nodejs -y
mkdir /var/www/.npm
chown -R 33:33 /var/www/.npm

change to user www-data

npm ci --prefer-offline --no-audit
npx patch-package
cd ~/html/bin (still as www-data)
issue php console m:a:g command (still as www-data)

clear cache (either with command or by rm -rf the cache/* folder

If in container, you can then remove the countless unnecessary nodejs/npx stuff or leave it there, if the inflation in size (about 2 gigs) does not bother you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants