New Campaign Module SuiteCRM 8.9

I’ve finally got around to testing the new Campaigns module features (long over due). Running into issues right of off the bat:

  1. No editor? Is there a setting somewhere I need to set to get an editor?

Also, the ā€œfromā€ doesn’t seem to work. Do I have to set this somewhere? I was assuming it was a user search, but its not working?

Inserting a template doesn’t work either. The subject gets populated, but not the body.

New Survey email has the same behavior. No editor, no from selection.

I’ve tried resetting permissions and QR&R.

Am I missing something?

I’m not getting any errors the log.

In Console there are lots of errors.

most are of this type:

Cannot read properties of undefined (reading ā€˜getHTML’)

Any suggestions?

I don’t think your screen is loading fully, which explains… well, all of your problems.

Try all kinds of cache clears and hard refreshes. You should really see the editor.

I tried that to refresh browser cache and also all the JS repairs, same result.

I wonder if some composer step is missing, to load the new editor.

If you installed from the official installer, supposedly it should bring in a ā€œpre-cookedā€ vendor directory… but it might be worth a try.

composer install --no-dev

and a symfony cache-clear

Ok tried that and cleared the cache and re-warmed it. Didn’t seem to help. Does it require any dependencies from the server? Or do I have to specify which editor I’m using like in email?

It should ā€œjust workā€

Maybe focus on the first JS errors in the console, when it loads. That might bring some clues.

I must admit I upgraded an 8.8 Suite here and it does work. (R&R and bin/console cache:clear were required plus lots of permissions resets in the middle).

I also had a problem when installing the upgrade (with the finalisation process that errored), so I reset permissions, did an R&R and cleared the cache and ran it again (just the finalisation process) and all was good.

There do appear to be a few things ā€œmissingā€ although that appears to be features (so for example no easy insert of template vars, no file/image uploader)

Mark

Ok thanks, I did to a permission reset twice during the upgrade as normal, but I’ll try that and a few cache clears and see if that helps.

Did you get any errors when running the console commands? I had an error on the finalise part (which then needed a re-run after r&r, permissions and cache rebuild.

Mark

The upgrade went uneventful. No errors, everything went smooth. I also did a console update at the end and permissions reset and cache flush for good measure. Still no editor. I’m going to try to delve further into the console errors.

@pstevens

Just a quick check, have you turned on browser developer tools and refreshed? The JS may very well be cached and not loading things

Mark

I’ve tried switching from chrome to Microsoft edge and Firefox. Same issue, so its not a browser or browser cache issue. I even tried flushing my Cloudflare cache and unproxying it, still no luck. I’ll keep at it.

I’ve upgraded 4 systems so far and haven’t seen this issue on any.
Followed the standard upgrade procedure and it worked out of the box.

It really looks as if sth. isn’t properly loading / rewrite / security and similar.
What does your environment look like? Is it possible to try the CRM on a vanilla LAMP without mod_security etc.?

@pstevens

You didn’t mention, was this a fresh install or an upgrade (what version was it upgraded from) as @BastianHammer says it looks like some JS isn’t loading properly, do you have an errors in the browser console/network tab about JS files not loading? or apache (I assume you are running on apache) errors/mod security errors?

You mention Cloudflare, have you checked the security logs there to see if CF is blocking (please note that swapping between CF and non-CF can leave the browser with cached ā€œfailuresā€, you are better off turning on the CF dev mode).

Do you have it all served over SSL (could the url in the config files (including .env etc) be a http instead of https and one in the sugar_config be the opposite (for example).

Have you turned on the dev mode in the .env file to get more logging?

Regards

Mark

Also if this is an upgrade did you have any customisations on the system (ie modules/plugins/custom code etc), especially on the Campaigns and EmailMarketting modules?

Mark

Hey All, thanks for helping. Here is as munch info as I can think of to answer all the questions.

  1. Alma Linux 8 - WHM/Cpanel
  2. PHP 8.2
  3. SSL YES
  4. Cloudflare - off i dev mode
  5. Restarted Apache after upgrade
  6. Turned of NGNIX caching and flushed
  7. Flushed browser cache
  8. Tried Firefox and Edge
  9. Upgraded from 8.6-8.9
  10. Installation has no customizations, strictly for testing.
  11. There are no 404’s in Network tab
  12. There are no errors in log (havn’t tried dev mode but I will)
  13. Upgrade was uneventful
  14. Composer --install done
  15. Flushed Cache
  16. Re-set permissions and ownership

I do have some 204’s in network tab:

As far as I remember WHM/cPanel uses PHP in FPM mode, did you restart PHP as well? (not that this should be it but just in case).

You posted an image of the XHR tab, I assume squire.js was loaded in the All or JS tab?

Mark

Thanks so much @markbond for your suggestions.

Flushed PHP/FPM by restarting, still not working.

Also tried php 8.1 and 8.3, no luck.

Here’s the JS tab, everything looks like its loading.

Okay, it looks like you have a JS optimiser running somewhere (rocket-loader). I have just gone through my network tab for the edit page of the new campaign editor:

and the first 3 on your list (prior to purify.min.js) are NOT there. I would try and find where you have Javascript (and possibly CSS) magnification/optimisation turned on (could be CF, Nginx, varnish etc) and turn it off, its messing with your HTML and JS according to those errors.

For reference I have a Suite8.8 on a Cloudways server, this is the one I upgraded to 8.9, I checked the settings there and I had turned off the Varnish caching a while ago it seems (I seem to remember it interfering then as well)…

Mark

Hey Mark, I do have minification with cloudflare, but have experimented turning cloudflare off completely in dev mode, and it still does not work.

Since its a dev environment, I think my next step is to delete and install a fresh copy.