Welcome Guest, Not a member yet? Register   Sign In
Error 404 on things after "/"
#5

Thanks so far!
What I mean is, that no CSS-File, even all other files, are not loading. Sorry for my english :-)
baseURL has a trailing slash. I try this three ways to check what is going on:
Code:
<link rel="stylesheet" href="<?= base_url('dashboard/template/xyz.css');?>">

<link rel="stylesheet" href="dashboard/template/xyz.css">

<link rel="stylesheet" href="/dashboard/template/xyz.css">
I check the network traffic (F12 > Network traffic) and see only 404 errors on all loaded files. If I go to "Answer", I can see the error, which I will call the "Oops"-Error :-) Happens sometimes :-)
The answer looks as every file, even in public folder, are loaded like a controller, Because "Dashboard" and "Template" in "Message" (line 4) are the first in directories in /public like in my HTML-markup above.
PHP Code:
{
 
"title""CodeIgniter\\Exceptions\\PageNotFoundException",
 
"type""CodeIgniter\\Exceptions\\PageNotFoundException",
 
"code"404,
 
"message""Controller or its method is not found: \\App\\Controllers\\Dashboard::template",
 
"file""/var/www/vhosts/[...]/vendor/codeigniter4/framework/system/CodeIgniter.php",
 
"line"992,
 
"trace": [
 {
 
"file""/var/www/vhosts/[...]/vendor/codeigniter4/framework/system/CodeIgniter.php",
 
"line"992,
 
"function""forPageNotFound",
 
"class""CodeIgniter\\Exceptions\\PageNotFoundException",
 
"type""::",
 
"args": [
 
"Controller or its method is not found: \\App\\Controllers\\Dashboard::template"
 
]
 },
 {
 
"file""/var/www/vhosts/[...]/vendor/codeigniter4/framework/system/CodeIgniter.php",
 
"line"353,
 
"function""display404errors",
 
"class""CodeIgniter\\CodeIgniter",
 
"type""->",
 
"args": [
 {}
 ]
 },
 {
 
"file""/var/www/vhosts/[...]/index.php",
 
"line"44,
 
"function""run",
 
"class""CodeIgniter\\CodeIgniter",
 
"type""->",
 
"args": []
 }
 ]

Reply


Messages In This Thread
Error 404 on things after "/" - by sprhld - 08-08-2021, 05:52 AM
RE: Error 404 on things after "/" - by sprhld - 08-08-2021, 06:55 AM
RE: Error 404 on things after "/" - by InsiteFX - 08-09-2021, 12:59 AM
RE: Error 404 on things after "/" - by sprhld - 08-09-2021, 09:56 AM
RE: Error 404 on things after "/" - by wuuyun - 08-09-2021, 08:03 PM
RE: Error 404 on things after "/" - by wdeda - 08-09-2021, 07:28 PM
RE: Error 404 on things after "/" - by wdeda - 08-10-2021, 06:57 AM
RE: Error 404 on things after "/" - by sprhld - 08-16-2021, 02:46 AM



Theme © iAndrew 2016 - Forum software by © MyBB