Answers.Body: <p>For reasons that I am still unsure of, I needed to apply the mosaico-php-backend script located here:
  <a href="https://github.com/markalston/mosaico-php-backend" rel="nofollow noreferrer">https://github.com/markalston/mosaico-php-backend</a></p>
  <p>I did change operating environments from Ubuntu to Debian so something on the backend may have been different but regardless, applying this script fixed my issue.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-11-15T21:44:33.543Z
Answers.LastActivityDate: 2020-11-15T21:44:33.543Z
Answers.UserDisplayName: Brendan Spaar
Answers.Body: <p>Came across this question when looking for the same problem. For me, the answer was to directly change the metadata for the template in the database. It is found in civicrm_mosaico_template.</p>
  <p>I can't see why the metadata needs to include the full URL rather than a more portable relative path!</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-11-22T14:19:24.597Z
Answers.LastActivityDate: 2022-11-22T14:19:24.597Z
Answers.UserDisplayName: zip_000
Body: <p>This weekend I migrated my site from one server to another.  The htdocs remained the same, just the infrastructure was upgraded.  I backed up my sql database and files and restored them in the new location.  No paths locally or via the internet changed.  Only the IP address of the server.  PHP and MySQL were upgraded but only by point releases (ie. 7.3 and 8.0 were the core).</p>
  <p>After the migration it seems that I cannot create any new mailings in Mosaico using the versafix-1 template nor can I reuse existing emails based on this template.  What is weird is I can use the template tedc15 and tutorial.  When I select versafix-1 it goes to a blank grey screen.</p>
  <p>Console errors:</p>
  <pre><code>TODO error!!! Trying to set a new default value for bodyTheme longTextStyle.linksColor while it already exists (current: #3f3f3f, new: #ccc)
  
  declarations.js:130 Model ensure path failed undefined name -ko-color value @longTextStyle.linksColor default #ccc element undefined
  
  parser.js:403 Exception while parsing the template Exception parsing expression @longTextStyle.linksColor TypeError: Cannot read property 'longTextStyle.linksColor' of undefined 
  
  parser.js:403 Uncaught Exception parsing expression @longTextStyle.linksColor TypeError: Cannot read property 'longTextStyle.linksColor' of undefined
  
  admin.php?page=CiviCRM&amp;q=civicrm/mosaico/iframe&amp;snippet=1:1 Uncaught ReferenceError: pagespeed is not defined
      at HTMLImageElement.onload (admin.php?page=CiviCRM&amp;q=civicrm/mosaico/iframe&amp;snippet=1:1)
  </code></pre>
  <p>Here's what I've done to troubleshoot:</p>
  <p>Reinstalled Mosaico:</p>
  <ul>
  <li>Uninstalled Mosaico</li>
  <li>Deleted the Mosaico directory from the ext folder
  of my server</li>
  <li>Downloaded a fresh copy of Mosaico from the CiviCRM
  website</li>
  <li>Installed Mosaico</li>
  </ul>
  <p>Upgraded to the latest version of ImageMagick (also made sure the extension was not commented out)</p>
  <p>Verified file permissions (I actually set everything to 777 inside the wp-content/uploads/civicrm directory for testing)</p>
  <p>Disabled Asset Caching</p>
  <p>Verified Resource URLs and Directories (both set to [civicrm.files]/ext/)</p>
  <p>Can anyone help shed some light on what's going on here?</p>
  <p>Many thanks for your help!</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2020-11-15T19:04:06.630Z
Comments.Text: I was going to say this may suggest you have old urls in the db but you are saying the path did not change - and you say you checked Resource URLs so there go my suggestions.
Comments.UserDisplayName: petednz - fuzion
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2020-11-15T19:06:22.577Z
Comments.Text: and sounds like you have checked everything here (just as you are on WP perhaps it relates to path changes?) https://civicrm.stackexchange.com/a/37585/96
Comments.UserDisplayName: petednz - fuzion
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2020-11-15T19:45:22.630Z
Comments.Text: hi @petednz-fuzion.  Thanks for the suggestions.  I'm currently looking into this as a fix.  I'm not sure what they mean by PHP Backend but it sounds like it fixes the symptoms that I'm experiencing.  I will try it and report back.  https://github.com/markalston/mosaico-php-backend
Comments.UserDisplayName: Brendan Spaar
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2021-11-02T17:17:34.043Z
Comments.Text: I also applied https://github.com/markalston/mosaico-php-backend on my plesk ubuntu server. Is there a better solution for the blank screen for drupal/civicrm ?
Comments.UserDisplayName: Rar9
Tags: <mosaico><templates>
Title: Blank screen when using versafix-1 templates
ThreadText: # Blank screen when using versafix-1 templates
  
  (Asked by: username_0 on 2020-11-15)
  
  This weekend I migrated my site from one server to another. The htdocs remained the same, just the infrastructure was upgraded. I backed up my sql database and files and restored them in the new location. No paths locally or via the internet changed. Only the IP address of the server. PHP and MySQL were upgraded but only by point releases (ie. 7.3 and 8.0 were the core).
  
  After the migration it seems that I cannot create any new mailings in Mosaico using the versafix-1 template nor can I reuse existing emails based on this template. What is weird is I can use the template tedc15 and tutorial. When I select versafix-1 it goes to a blank grey screen.
  
  Console errors:
  
  ```
  TODO error!!! Trying to set a new default value for bodyTheme longTextStyle.linksColor while it already exists (current: #3f3f3f, new: #ccc)
  
  declarations.js:130 Model ensure path failed undefined name -ko-color value @longTextStyle.linksColor default #ccc element undefined
  
  parser.js:403 Exception while parsing the template Exception parsing expression @longTextStyle.linksColor TypeError: Cannot read property 'longTextStyle.linksColor' of undefined 
  
  parser.js:403 Uncaught Exception parsing expression @longTextStyle.linksColor TypeError: Cannot read property 'longTextStyle.linksColor' of undefined
  
  admin.php?page=CiviCRM&q=civicrm/mosaico/iframe&snippet=1:1 Uncaught ReferenceError: pagespeed is not defined
      at HTMLImageElement.onload (admin.php?page=CiviCRM&q=civicrm/mosaico/iframe&snippet=1:1)
  
  ```
  
  Here's what I've done to troubleshoot:
  
  Reinstalled Mosaico:
  
  * Uninstalled Mosaico
  * Deleted the Mosaico directory from the ext folder
    of my server
  * Downloaded a fresh copy of Mosaico from the CiviCRM
    website
  * Installed Mosaico
  
  Upgraded to the latest version of ImageMagick (also made sure the extension was not commented out)
  
  Verified file permissions (I actually set everything to 777 inside the wp-content/uploads/civicrm directory for testing)
  
  Disabled Asset Caching
  
  Verified Resource URLs and Directories (both set to [civicrm.files]/ext/)
  
  Can anyone help shed some light on what's going on here?
  
  Many thanks for your help!
  
  **Tags:** mosaico, templates
  
  > **Comments:**
  > **username_1**: I was going to say this may suggest you have old urls in the db but you are saying the path did not change - and you say you checked Resource URLs so there go my suggestions.  
  > **username_1**: and sounds like you have checked everything here (just as you are on WP perhaps it relates to path changes?) https://civicrm.stackexchange.com/a/37585/96  
  > **username_0**: hi @username_1.  Thanks for the suggestions.  I'm currently looking into this as a fix.  I'm not sure what they mean by PHP Backend but it sounds like it fixes the symptoms that I'm experiencing.  I will try it and report back.  https://github.com/markalston/mosaico-php-backend  
  > **username_2**: I also applied https://github.com/markalston/mosaico-php-backend on my plesk ubuntu server. Is there a better solution for the blank screen for drupal/civicrm ?  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_0 on 2020-11-15. Score: 2
  
  For reasons that I am still unsure of, I needed to apply the mosaico-php-backend script located here:
  <https://github.com/markalston/mosaico-php-backend>
  
  I did change operating environments from Ubuntu to Debian so something on the backend may have been different but regardless, applying this script fixed my issue.
  
  
  ---
  
  ### Answer by username_3 on 2022-11-22. Score: 1
  
  Came across this question when looking for the same problem. For me, the answer was to directly change the metadata for the template in the database. It is found in civicrm\_mosaico\_template.
  
  I can't see why the metadata needs to include the full URL rather than a more portable relative path!
  
  
  ---
  
  