matdave / modxdarktheme

Dark theme for MODX manager
6 stars 0 forks source link

The extra breaks most of the default dashboard widgets in MODX 3 #7

Open halftrainedharry opened 1 year ago

halftrainedharry commented 1 year ago

Loading the manager start page (with the default dashboard) in MODX 3 generates the following error messages

(ERROR @ .../core/src/Revolution/Smarty/modSmarty.php : 160) Unable to load template 'file:dashboard/buttons.tpl'
(ERROR @ .../core/src/Revolution/Smarty/modSmarty.php : 160) Unable to load template 'file:dashboard/configcheck.tpl'
(ERROR @ .../core/src/Revolution/Smarty/modSmarty.php : 160) Unable to load template 'file:dashboard/updates.tpl'
(ERROR @ .../core/src/Revolution/Smarty/modSmarty.php : 160) Unable to load template 'file:dashboard/onlineusers.tpl'
(ERROR @ .../core/src/Revolution/Smarty/modSmarty.php : 160) Unable to load template 'file:dashboard/recentlyeditedresources.tpl'

and most of the default dashboard widgets aren't displayed anymore.

It looks like Smarty tries to load the widget templates from the folder manager/templates/darktheme/ (where they don't exist) instead of manager/templates/default/.

I'm not sure how this could be fixed in the extra though.


MODX 3.0.3-pl MODX Dark Theme 2.1.0-pl