[closed] design export: several problems / error messages

Forum rules
Only administrators can post or move items here.
Post Reply
User avatar
Franck
Dev Team Member
Dev Team Member
Posts: 259
Joined: Tue Jun 12, 2007 1:29 pm
Location: France

[closed] design export: several problems / error messages

Post by Franck »

When trying to export simplex, here is the error displayed:
An error occurred parsing the stylesheets, and/or templates of the design. The url '[[$font]]/simplex.eot' could not be located as a physical file. This probably indicates that the template and/or stylesheets of this theme are using advanced logic that the design manager cannot process.
No error for other default designs.

The same kind of error message appears when exporting a home made design with webfonts included in CSS. DataURI background image in CSS generates also the same message.

In a more general way, all urls calling images or fonts including ' or " in CSS will generate this error message.
If I remove all apostrophes, I have another laconic message (in french even if I switch prefered language to english): "Aucune données trouvées pour " meaning "no data found for"

Tested on rev9983.
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm
Location: Fernie British Columbia, Canada

Re: design export: several problems / error messages

Post by calguy1000 »

The problem is not the eot file but the smarty variables in the URL [[$font]]. We cannot (and don't pass the stylesheets or templates through smarty before exporting the data) because a parsed html/css output may be different given a number of circumstances.

We already diagnosed this, which is why there is a much more verbose than it was during the first and second betas.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
User avatar
Franck
Dev Team Member
Dev Team Member
Posts: 259
Joined: Tue Jun 12, 2007 1:29 pm
Location: France

Re: design export: several problems / error messages

Post by Franck »

OK, I see for the smarty problem.

But, how is it possible to export a design, then? Apart from temporarily remove all smarty calls in stylesheets?
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm
Location: Fernie British Columbia, Canada

Re: design export: several problems / error messages

Post by calguy1000 »

Well, your designs for sharing will have to be simpler.

This does not mean you cannot use smarty logic in your templates, or even your stylesheets.

What it does mean is that when specifying resources in templates and stylesheets you will not be able to use smarty variables or plugins. (relative URLS are okay) The design manager needs to be able to parse the stylesheets/templates and find the images, fonts, sprites, sub-templates, etc. without relying on smarty.

so:
#some_id {
background: url(some/relative/url/something.gif) /* okay for exporting */
}
#other_id {
background: url({root_url}/uploads/images/something.gif) /* not okay for exporting */
}

{Navigator template='foobar'} {* okay for exporting *}
{Navigator template=$somevariable} {* not okay for exporting *}
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
User avatar
Franck
Dev Team Member
Dev Team Member
Posts: 259
Joined: Tue Jun 12, 2007 1:29 pm
Location: France

Re: design export: several problems / error messages

Post by Franck »

OK, it's more clear for me, thank you.
Post Reply

Return to “Closed Issues”