This topic is locked
[SOLVED]

Error when I add meta to header.html

5/18/2021 11:41:37 AM
PHPRunner General questions
L
Lance Spurgeon author

When I add the following Meta to the headers.html I get this error, is there anything that I should be doing differently to include the stylesheet?

<link rel="sStylesheet" href="libs/typicons.font/typicons.css">;

Error: Failed to load template /pd/pagetemplates/headers.htm?tc=52070198 in templates/page.htm on line 7

stack:
Error: Failed to load template /pd/pagetemplates/headers.htm?tc=52070198 in templates/page.htm on line 7
at read (http://localhost:8085/scripts.bundle.js:429:883)
at TemplateContext.prototype.load (http://localhost:8085/scripts.bundle.js:429:8165)
at TemplateContext.prototype.render (http://localhost:8085/scripts.bundle.js:429:8866)
at Anonymous function (http://localhost:8085/scripts.bundle.js:429:9018)
at __ectTemplate (eval code:31:3)
at TemplateContext.prototype.render (http://localhost:8085/scripts.bundle.js:429:8946)
at render (http://localhost:8085/scripts.bundle.js:429:9860)
at PreviewBuilder.prototype.renderPage (http://localhost:8085/main.bundle.js:58399:13)
at Page.prototype.buildWizardPreview (http://localhost:8085/main.bundle.js:56566:9)
at WipService.prototype.buildPage (http://localhost:8085/main.bundle.js:20084:9)
at Anonymous function (http://localhost:8085/main.bundle.js:19723:67)
at ZoneDelegate.prototype.invoke (http://localhost:8085/polyfills.bundle.js:6856:13'>http://localhost:8085/polyfills.bundle.js:6856:13)
at onInvoke (http://localhost:8085/vendor.bundle.js:49946:17)
at ZoneDelegate.prototype.invoke (http://localhost:8085/polyfills.bundle.js:6856:13'>http://localhost:8085/polyfills.bundle.js:6856:13)
at Zone.prototype.run (http://localhost:8085/polyfills.bundle.js:6616:17)
at Anonymous function (http://localhost:8085/polyfills.bundle.js:7355:17)
at ZoneDelegate.prototype.invokeTask (http://localhost:8085/polyfills.bundle.js:6888:13'>http://localhost:8085/polyfills.bundle.js:6888:13)
at onInvokeTask (http://localhost:8085/vendor.bundle.js:49937:17)
at ZoneDelegate.prototype.invokeTask (http://localhost:8085/polyfills.bundle.js:6888:13'>http://localhost:8085/polyfills.bundle.js:6888:13)
at Zone.prototype.runTask (http://localhost:8085/polyfills.bundle.js:6661:21)
at drainMicroTaskQueue (http://localhost:8085/polyfills.bundle.js:7067:25)

L
Lance Spurgeon author 5/18/2021

I notice I have an extra S in stylesheet it still shows the same error on any of the other pages when I include <link rel="Stylesheet" href="libs/typicons.font/typicons.css">; according to https://www.w3.org/TR/html52/document-metadata.html

L
Lance Spurgeon author 5/20/2021

Does anyone have a workaround on how to include a stylesheet into the header META. This is especially relevent as we can't add before display on admin pages

HJB 5/20/2021

Typicons - CloudFlare links
quote excerpt

https://cdnjs.cloudflare.com/ajax/libs/typicons/2.1.1/typicons.css

unquote

Instead of calling the .css file internally from your server, you may
try to replace the css related line by the above external one.

L
Lance Spurgeon author 5/22/2021

thanks that worked nicely

A
alghanim 5/23/2021

It is best to add an external file. The file was called

require_once("header.php");

It will work without problems