Page 1 of 1

[Closed] Error when exporting Simplex

Posted: Sat Sep 20, 2014 9:07 pm
by jissey
Hello,
when I try to export Simplex theme, an error occurs :
Could not find a physical file for '[[$font]]/simplex.eot
The file exists but $font is not resolved.

Re: Error when exporting Simplex

Posted: Sun Sep 21, 2014 8:21 am
by jce76350
Confirmed

Design Manager tab Designs / export design to XML : Simplex
If module MenuManager not installed, message :
"Cannot find any MenuManager template types (is MenuManager installed and enabled "
If module MenuManager installed , message :
"Could not find a physical file for '[[$font]]/simplex.eot' "
This message is from
if( !file_exists($fn) ) throw new CmsException('Could not find a physical file for '.$value); into class.dm_design_exporter.php

Re: Error when exporting Simplex

Posted: Sun Sep 21, 2014 6:46 pm
by calguy1000
This is because of the advanced nature of the simplex theme.

a: It uses smarty variables inside the stylesheet to represent paths. meaning in order to parse the paths the stylesheets have to be passed through smarty. This compresses the stylesheet, loosing all formatting.

b: it passes arguments to some of the filenames (particularly for the fonts). i.e: url([[$font]]/simplex.svg#simplex) which would have to be parsed out and restored.

For the time being I've changed the nature of the error message to be a bit more obvious.

Don't know if I'm gonna be able to fix this for 2.0.

Re: Error when exporting Simplex

Posted: Mon Sep 22, 2014 6:34 am
by jissey
Hi,
ok, I'm agree with your conclusion. Thanks