Open masetto opened 1 year ago
We have a suspiciously similar problem on a drupal 7 install. Instead of pointing to https://mysite.com/sites/default/files/civicrm/extensions/uk.co.vedaconsulting.mosaico/packages/mosaico/templates/versafix-1/template-versafix-1.html
, instead it's looking for the template in https://mysite.com/templates/versafix-1/template-versafix-1.html
. For now we've bodged it by symlinking the versafix-1 folder, but there's clearly a bug here!
We've recently installed monthly patch cycle, but no major version of PHP.
This might be related to #543 and/or #553.
Environment information: CiviCRM 5.57.1 on Wordpress 6.1 installed with Bedrock
When I try to edit a Mosaico Template (https://mysite.com/wp/wp-admin/admin.php?page=CiviCRM&q=civicrm%2Fmosaico-template-list) a black screen is displayed because it loads the template here: https://mysite.com/wp//app/uploads/civicrm/ext/uk.co.vedaconsulting.mosaico/packages/mosaico/templates/versafix-1/template-versafix-1.html instead of https://mysite.com/app/uploads/civicrm/ext/uk.co.vedaconsulting.mosaico/packages/mosaico/templates/versafix-1/template-versafix-1.html.
CIVICRM_UF_BASEURL
is set ashttps://mysite.com/wp
My
.env
file is:I have many installations done that and so far I have had no problems.
The problem is on row 81 of
/var/www/crm/web/app/uploads/civicrm/ext/uk.co.vedaconsulting.mosaico/api/v3/MosaicoTemplate.php
:CRM_Utils_System::baseURL()
ishttps://mysite.com/wp
, but in this context it should behttps://mysite.com
(without /wp).