Answers.Body: <p>I did had similar problem while upgrading mosaico recently. I disabled the extension to proceed with the database upgrade utility. </p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-08-25T10:23:02.537Z
Answers.Text: Thanks Pradeep. Was this also on Joomla or another CMS? Do you recall if you disabled Flexmailer (as well as Mosaico) to get the DB upgrader to work?
Answers.UserDisplayName: Andrew Thompson
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-08-24T17:48:06.337Z
Answers.LastActivityDate: 2019-08-24T17:48:06.337Z
Answers.UserDisplayName: Pradeep Nayak
Body: <p>Today I've been trying to get all of my known CiviCRM on Joomla probelms documented as issues to help improve the CiviCRM Joomla experience. One glitch that I'm trying to investigate is that on my production site since installing Mosaico (and Flexmailer) I've had a problem with each CiviCRM version upgrade. The CiviCRM Database Upgrade Utility fails unless I disable Flexmailer (and Mosaico) first.</p>
  
  <p>Most recently, going from 5.16.1 to 5.16.3, after installing 5.16.3 I didn't click on the CiviCRM Database Upgrade Utility link this time but instead went to Administer > Administration Console > System Status, then clicked on the alert for "Database update required". That gave me the following error:</p>
  
  <p><code>Class 'Civi\FlexMailer\Services' not found</code></p>
  
  <p>After disabling Mosaico and Flexmailer I was able to proceed with the database upgrade and it completed successfully.</p>
  
  <p>On other occasions I have usually clicked the CiviCRM Database Upgrade Utility link. I don't know if that was the difference, but previously the database upgrade started but then stalled part way through. I didn't manage to reproduce it this time and couldn't find anything in the log.</p>
  
  <p><a href="https://civicrm.stackexchange.com/questions/31331/sql-upgrade-fails-on-5-14-2-to-5-15-0-on-joomla#comment35632_31331">This comment</a> is I think regarding the same problem.</p>
  
  <p>Because I can't reproduce this on a clean installation I haven't raised an issue yet. Can anybody else confirm if this is a problem for them currently?</p>
  
  <p>I have Flexmailer 1.1.0 and Mosaico 2.1.1559427853 installed and Joomla 3.9.11.</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2020-09-18T14:55:35.523Z
Comments.Text: I noticed an Flexmailer-related error after a failed attempt at updating from 2.28.0 to 5.29.0 on Drupal 7 last week. Thankfully that one ran fine (with Flexmailer and Mosaico enabled) after I restored from a backup. But I've just found a similar thing trying to update to 5.29.1 today.
Comments.UserDisplayName: somnolentsurfer
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2020-09-18T15:38:57.720Z
Comments.Text: Just checked the logs and the error I saw was 'You have requested a non-existent service "civi_flexmailer_required_tokens".'
Comments.UserDisplayName: somnolentsurfer
Tags: <joomla><mosaico><flexmailer>
Title: Problem upgrading CiviCRM on Joomla with Flexmailer + Mosaico installed
ThreadText: # Problem upgrading CiviCRM on Joomla with Flexmailer + Mosaico installed
  
  (Asked by: username_0 on 2019-08-24)
  
  Today I've been trying to get all of my known CiviCRM on Joomla probelms documented as issues to help improve the CiviCRM Joomla experience. One glitch that I'm trying to investigate is that on my production site since installing Mosaico (and Flexmailer) I've had a problem with each CiviCRM version upgrade. The CiviCRM Database Upgrade Utility fails unless I disable Flexmailer (and Mosaico) first.
  
  Most recently, going from 5.16.1 to 5.16.3, after installing 5.16.3 I didn't click on the CiviCRM Database Upgrade Utility link this time but instead went to Administer > Administration Console > System Status, then clicked on the alert for "Database update required". That gave me the following error:
  
  `Class 'Civi\FlexMailer\Services' not found`
  
  After disabling Mosaico and Flexmailer I was able to proceed with the database upgrade and it completed successfully.
  
  On other occasions I have usually clicked the CiviCRM Database Upgrade Utility link. I don't know if that was the difference, but previously the database upgrade started but then stalled part way through. I didn't manage to reproduce it this time and couldn't find anything in the log.
  
  [This comment](https://civicrm.stackexchange.com/questions/31331/sql-upgrade-fails-on-5-14-2-to-5-15-0-on-joomla#comment35632_31331) is I think regarding the same problem.
  
  Because I can't reproduce this on a clean installation I haven't raised an issue yet. Can anybody else confirm if this is a problem for them currently?
  
  I have Flexmailer 1.1.0 and Mosaico 2.1.1559427853 installed and Joomla 3.9.11.
  
  **Tags:** joomla, mosaico, flexmailer
  
  > **Comments:**
  > **username_1**: I noticed an Flexmailer-related error after a failed attempt at updating from 2.28.0 to 5.29.0 on Drupal 7 last week. Thankfully that one ran fine (with Flexmailer and Mosaico enabled) after I restored from a backup. But I've just found a similar thing trying to update to 5.29.1 today.  
  > **username_1**: Just checked the logs and the error I saw was 'You have requested a non-existent service "civi_flexmailer_required_tokens".'  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_2 on 2019-08-24. Score: 1 | Accepted answer
  
  I did had similar problem while upgrading mosaico recently. I disabled the extension to proceed with the database upgrade utility.
  
  > **Comments:**
  > **username_0**: Thanks username_2. Was this also on Joomla or another CMS? Do you recall if you disabled Flexmailer (as well as Mosaico) to get the DB upgrader to work?  
  
  ---
  
  