HEAD tag is missing in passed fragment

LogicException

Message:
HEAD tag is missing in passed fragment
Time:
2018-08-09 06:24:43
Channel:
Sitecake
Extra:
0:
{
“file”: “[SITE]/sitecake/2.4.8/src/Sitecake/Log/Formatter/PathReplaceFormatter.php”,
“line”: 27,
“function”: “translateRecord”,
“class”: “Sitecake\Log\Formatter\PathReplaceFormatter”,
“object”: “[object] (Sitecake\Log\Formatter\PathReplaceFormatter: {})”,
“type”: “->”,
“args”: [
{
“level”: 400,
“level_name”: “LogicException”,
“function”: “ensureMetaTag”,
“class”: “Sitecake\Services\PagesService”,
“type”: “->”,
“file”: “[SITE]/sitecake/2.4.8/src/Sitecake/Content/PageRenderAwareTrait.php”,
“line”: 153,
“description”: “HEAD tag is missing in passed fragment”,
“code”: 0,
“error”: “LogicException”,
“extra”: [],
“context”: [],
“message”: “HEAD tag is missing in passed fragment”,
“datetime”: “2018-08-09 06:24:43”,
“channel”: “Sitecake”
}
]
}
1:
{
“file”: “[SITE]/sitecake/2.4.8/src/Sitecake/Error/ErrorHandler.php”,
“line”: 319,
“function”: “format”,
“class”: “Sitecake\Log\Formatter\PathReplaceFormatter”,
“object”: “[object] (Sitecake\Log\Formatter\PathReplaceFormatter: {})”,
“type”: “->”,
“args”: [
{
“level”: “error”,
“level_name”: “LogicException”,
“function”: “ensureMetaTag”,
“class”: “Sitecake\Services\PagesService”,
“type”: “->”,
“file”: “[SITE]/sitecake/2.4.8/src/Sitecake/Content/PageRenderAwareTrait.php”,
“line”: 153,
“description”: “HEAD tag is missing in passed fragment”,
“code”: 0,
“error”: “LogicException”,
“extra”: [],
“context”: []
}
]
}
2:
{
“file”: “[SITE]/sitecake/2.4.8/src/Sitecake/Error/ErrorHandler.php”,
“line”: 262,
“function”: “format”,
“class”: “Sitecake\Error\ErrorHandler”,
“object”: “[object] (Sitecake\Error\ErrorHandler: {})”,
“type”: “->”,
“args”: [
{
“level”: “error”,
“level_name”: “LogicException”,
“function”: “ensureMetaTag”,
“class”: “Sitecake\Services\PagesService”,
“type”: “->”,
“file”: “[SITE]/sitecake/2.4.8/src/Sitecake/Content/PageRenderAwareTrait.php”,
“line”: 153,
“description”: “HEAD tag is missing in passed fragment”,
“code”: 0,
“error”: “LogicException”,
“extra”: [],
“context”: []
}
]
}
3:
{
“file”: “[SITE]/sitecake/2.4.8/src/Sitecake/Error/ErrorHandler.php”,
“line”: 444,
“function”: “displayError”,
“class”: “Sitecake\Error\ErrorHandler”,
“object”: “[object] (Sitecake\Error\ErrorHandler: {})”,
“type”: “->”,
“args”: [
{
“level”: “error”,
“level_name”: “LogicException”,
“function”: “ensureMetaTag”,
“class”: “Sitecake\Services\PagesService”,
“type”: “->”,
“file”: “[SITE]/sitecake/2.4.8/src/Sitecake/Content/PageRenderAwareTrait.php”,
“line”: 153,
“description”: “HEAD tag is missing in passed fragment”,
“code”: 0,
“error”: “LogicException”,
“extra”: [],
“context”: []
},
true
]
}
4:
{
“file”: “[SITE]/sitecake/2.4.8/src/Sitecake/ActionDispatcher.php”,
“line”: 166,
“function”: “handleException”,
“class”: “Sitecake\Error\ErrorHandler”,
“object”: “[object] (Sitecake\Error\ErrorHandler: {})”,
“type”: “->”,
“args”: [
{
“class”: “LogicException”,
“message”: “HEAD tag is missing in passed fragment”,
“code”: 0,
“file”: “[SITE]/sitecake/2.4.8/src/Sitecake/Content/PageRenderAwareTrait.php:153”,
“trace”: [
“[SITE]/sitecake/2.4.8/src/Sitecake/Content/PageRenderAwareTrait.php:31”,
“[SITE]/sitecake/2.4.8/src/Sitecake/Services/PagesService.php:254”,
“[SITE]/sitecake/2.4.8/src/Sitecake/Services/PagesService.php:239”,
“[SITE]/sitecake/2.4.8/src/Sitecake/Services/Service.php:135”,
“[SITE]/sitecake/2.4.8/src/Sitecake/ActionDispatcher.php:135”,
“[SITE]/sitecake/2.4.8/src/Sitecake/ActionDispatcher.php:109”,
“[SITE]/sitecake/2.4.8/src/Sitecake/Sitecake.php:534”,
“[SITE]/sitecake/2.4.8/src/Sitecake/Sitecake.php:512”,
“[SITE]/sitecake/2.4.8/vendor/symfony/http-kernel/HttpKernel.php:151”,
“[SITE]/sitecake/2.4.8/vendor/symfony/http-kernel/HttpKernel.php:68”,
“[SITE]/sitecake/2.4.8/vendor/silex/silex/src/Silex/Application.php:496”,
“[SITE]/sitecake/2.4.8/vendor/silex/silex/src/Silex/Application.php:477”,
“[SITE]/sitecake/2.4.8/src/Sitecake/Sitecake.php:500”,
“[SITE]/sitecake/2.4.8/src/app.php:16”,
“[SITE]/sitecake.php:1”
]
},
true
]
}
5:
{
“file”: “[SITE]/sitecake/2.4.8/src/Sitecake/ActionDispatcher.php”,
“line”: 109,
“function”: “invoke”,
“class”: “Sitecake\ActionDispatcher”,
“object”: “[object] (Sitecake\ActionDispatcher: {})”,
“type”: “->”,
“args”: [
“[object] (Sitecake\Services\PagesService: {})”,
“render”,
“[object] (Symfony\Component\HttpFoundation\Request: GET /ofsuknew/sitecake.php HTTP/1.1\r\nAccept: text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8\r\nAccept-Encoding: gzip, deflate\r\nAccept-Language: en-gb\r\nConnection: keep-alive\r\nCookie: PHPSESSID=fp6ncmdbjlvn90an9aqdm18a7c\r\nHost: localhost:8888\r\nUpgrade-Insecure-Requests: 1\r\nUser-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/11.1.2 Safari/605.1.15\r\nX-Php-Ob-Level: 1\r\nCookie: PHPSESSID=fp6ncmdbjlvn90an9aqdm18a7c\r\n\r\n)”
]
}
6:
{
“file”: “[SITE]/sitecake/2.4.8/src/Sitecake/Sitecake.php”,
“line”: 534,
“function”: “dispatch”,
“class”: “Sitecake\ActionDispatcher”,
“object”: “[object] (Sitecake\ActionDispatcher: {})”,
“type”: “->”,
“args”: [
“[object] (Symfony\Component\HttpFoundation\Request: GET /ofsuknew/sitecake.php HTTP/1.1\r\nAccept: text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8\r\nAccept-Encoding: gzip, deflate\r\nAccept-Language: en-gb\r\nConnection: keep-alive\r\nCookie: PHPSESSID=fp6ncmdbjlvn90an9aqdm18a7c\r\nHost: localhost:8888\r\nUpgrade-Insecure-Requests: 1\r\nUser-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/11.1.2 Safari/605.1.15\r\nX-Php-Ob-Level: 1\r\nCookie: PHPSESSID=fp6ncmdbjlvn90an9aqdm18a7c\r\n\r\n)”
]
}
7:
{
“file”: “[SITE]/sitecake/2.4.8/src/Sitecake/Sitecake.php”,
“line”: 512,
“function”: “handleRequest”,
“class”: “Sitecake\Sitecake”,
“object”: “[object] (Sitecake\Sitecake: {})”,
“type”: “->”,
“args”: [
“[object] (Silex\Application: {})”,
“[object] (Symfony\Component\HttpFoundation\Request: GET /ofsuknew/sitecake.php HTTP/1.1\r\nAccept: text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8\r\nAccept-Encoding: gzip, deflate\r\nAccept-Language: en-gb\r\nConnection: keep-alive\r\nCookie: PHPSESSID=fp6ncmdbjlvn90an9aqdm18a7c\r\nHost: localhost:8888\r\nUpgrade-Insecure-Requests: 1\r\nUser-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/11.1.2 Safari/605.1.15\r\nX-Php-Ob-Level: 1\r\nCookie: PHPSESSID=fp6ncmdbjlvn90an9aqdm18a7c\r\n\r\n)”
]
}
8:
{
“file”: “[SITE]/sitecake/2.4.8/vendor/symfony/http-kernel/HttpKernel.php”,
“line”: 151,
“function”: “Sitecake\{closure}”,
“class”: “Sitecake\Sitecake”,
“object”: “[object] (Sitecake\Sitecake: {})”,
“type”: “->”,
“args”: [
“[object] (Silex\Application: {})”,
“[object] (Symfony\Component\HttpFoundation\Request: GET /ofsuknew/sitecake.php HTTP/1.1\r\nAccept: text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8\r\nAccept-Encoding: gzip, deflate\r\nAccept-Language: en-gb\r\nConnection: keep-alive\r\nCookie: PHPSESSID=fp6ncmdbjlvn90an9aqdm18a7c\r\nHost: localhost:8888\r\nUpgrade-Insecure-Requests: 1\r\nUser-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/11.1.2 Safari/605.1.15\r\nX-Php-Ob-Level: 1\r\nCookie: PHPSESSID=fp6ncmdbjlvn90an9aqdm18a7c\r\n\r\n)”
]
}
9:
{
“file”: “[SITE]/sitecake/2.4.8/vendor/symfony/http-kernel/HttpKernel.php”,
“line”: 68,
“function”: “handleRaw”,
“class”: “Symfony\Component\HttpKernel\HttpKernel”,
“object”: “[object] (Symfony\Component\HttpKernel\HttpKernel: {})”,
“type”: “->”,
“args”: [
“[object] (Symfony\Component\HttpFoundation\Request: GET /ofsuknew/sitecake.php HTTP/1.1\r\nAccept: text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8\r\nAccept-Encoding: gzip, deflate\r\nAccept-Language: en-gb\r\nConnection: keep-alive\r\nCookie: PHPSESSID=fp6ncmdbjlvn90an9aqdm18a7c\r\nHost: localhost:8888\r\nUpgrade-Insecure-Requests: 1\r\nUser-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/11.1.2 Safari/605.1.15\r\nX-Php-Ob-Level: 1\r\nCookie: PHPSESSID=fp6ncmdbjlvn90an9aqdm18a7c\r\n\r\n)”,
1
]
}
10:
{
“file”: “[SITE]/sitecake/2.4.8/vendor/silex/silex/src/Silex/Application.php”,
“line”: 496,
“function”: “handle”,
“class”: “Symfony\Component\HttpKernel\HttpKernel”,
“object”: “[object] (Symfony\Component\HttpKernel\HttpKernel: {})”,
“type”: “->”,
“args”: [
“[object] (Symfony\Component\HttpFoundation\Request: GET /ofsuknew/sitecake.php HTTP/1.1\r\nAccept: text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8\r\nAccept-Encoding: gzip, deflate\r\nAccept-Language: en-gb\r\nConnection: keep-alive\r\nCookie: PHPSESSID=fp6ncmdbjlvn90an9aqdm18a7c\r\nHost: localhost:8888\r\nUpgrade-Insecure-Requests: 1\r\nUser-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/11.1.2 Safari/605.1.15\r\nX-Php-Ob-Level: 1\r\nCookie: PHPSESSID=fp6ncmdbjlvn90an9aqdm18a7c\r\n\r\n)”,
1,
true
]
}
11:
{
“file”: “[SITE]/sitecake/2.4.8/vendor/silex/silex/src/Silex/Application.php”,
“line”: 477,
“function”: “handle”,
“class”: “Silex\Application”,
“object”: “[object] (Silex\Application: {})”,
“type”: “->”,
“args”: [
“[object] (Symfony\Component\HttpFoundation\Request: GET /ofsuknew/sitecake.php HTTP/1.1\r\nAccept: text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8\r\nAccept-Encoding: gzip, deflate\r\nAccept-Language: en-gb\r\nConnection: keep-alive\r\nCookie: PHPSESSID=fp6ncmdbjlvn90an9aqdm18a7c\r\nHost: localhost:8888\r\nUpgrade-Insecure-Requests: 1\r\nUser-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/11.1.2 Safari/605.1.15\r\nX-Php-Ob-Level: 1\r\nCookie: PHPSESSID=fp6ncmdbjlvn90an9aqdm18a7c\r\n\r\n)”
]
}
12:
{
“file”: “[SITE]/sitecake/2.4.8/src/Sitecake/Sitecake.php”,
“line”: 500,
“function”: “run”,
“class”: “Silex\Application”,
“object”: “[object] (Silex\Application: {})”,
“type”: “->”,
“args”: []
}
13:
{
“file”: “[SITE]/sitecake/2.4.8/src/app.php”,
“line”: 16,
“function”: “run”,
“class”: “Sitecake\Sitecake”,
“object”: “[object] (Sitecake\Sitecake: {})”,
“type”: “->”,
“args”: []
}
14:
{
“file”: “[SITE]/sitecake.php”,
“line”: 1,
“args”: [
“[SITE]/sitecake/2.4.8/src/app.php”
],
“function”: “require”
}

It looks like sitecake can’t find tag in your page, and it’s need for proper functioning.

Hello,

I have the same problem with my installation.
How did you correct it please?

Hi, what version of sitecake are you using?

if you are using php, check the path to the header tags and make sure sitecake can read it.

This works fine with html but php, you get lots of error related to paths.

I use the version 2.4.10

I can have connection display, but once connected, I have a 500 error.

What environment are you running in? iis, lamp? Also check the .htaccess

@Lopale Hi, can you send site url in PM so I can check it out. Also send sitecake pass if not default.