Harro Verton wrote on Wednesday 20th of July 2011:Fuel only loads the defined 404 page if the requested controller, or the controller method can not be located. If you have established that the controller method is correctly called, it is not Fuel that loads the 404 view, it must be related to your application code.
Harro Verton wrote on Wednesday 20th of July 2011:Start debugging the application. If you can establish (for example by placing a die() before your if) that on the server your controller and action method is correctly called, you can rule out any issue with Fuel, with routing, and with rewriting. If you then get the 404 if you move that die() to after the call to your package class, this issue must be related to the package. So next step is to dive into the package class, and debug the code of the method called. Also enable all logging, so you can see in the logfile what the sequence of request object creation is when you request the page. Maybe that will shed some light on what's going on.
public static function check() { if (\Cookie::get('location', null)==null) { return true; } return false; }it is very odd. I am sure there is a very logical explanation to this 404 error that i get but so far, I don't have any leads.
Jelmer Schreuder wrote on Wednesday 20th of July 2011:Most of the time problems like these are caused by a case insensitive testing environment and a case sensitive server. Check if all your filenames & direnames within the Fuel dirs are fully lowercase.
'Location\\Location' => __DIR__.'/classes/Location.php',
'Location\\Location' => __DIR__.'/classes/location.php',
Harro Verton wrote on Tuesday 19th of July 2011:A package can't contain controllers, and therefore routing to it is not possible. What are you trying to do? What do you expect should happen? And what does? Any errors?
Harro Verton wrote on Tuesday 19th of July 2011:Who or what gives you a 404 error? Your application? Fuel? Your webserver?
It looks like you're new here. If you want to get involved, click one of these buttons!