Welcome Guest, Not a member yet? Register   Sign In
Error 500 after deployment
#1

New to the forum and to the practice of CoideIgniter, I haven't found any satisfactory post, I hope not to be redundant.
On my mutual host (ionos ex 1&1), I have a webapp with CodeIgnier 'jardin' and a subdomain 'jardin.mondomaine.com' which points to mondomaine.com/jardin/public.

If I ask for 'jardin.mondomaine.com' I receive my home page correctly, but if I ask for 'new entry', the URL seems correct: 'https://jardin.mondomaine.com/articles/new' , either subdomain/controller/method, I get a 500 error: "The server encountered an internal error or misconfiguration and was unable to complete your request.".

Base url: public string $baseURL = 'https://jardin.mondomaine.com';
Route of the link tested: $routes->get("articles/new", "Articles::new";
Controller: 
Code:
    public function new()
    {

        return view('Articles/new', [
            "article" => new Article
        ]);
    }

And in the view :
Code:
<a class="nav-link" href="<?= url_to("Articles::new") ?>" style="border:1px solid white">Nouvelle entrée</a>


I would like to know where to look to find what is wrong.

Thank you for your attention. Kind regards, Richard.
Reply
#2

It seems like a server misconfiguration or an issue with the routing. Check your server logs for more details on the 500 error. Also, ensure the 'new' method in your 'Articles' controller is correctly defined.
Reply




Theme © iAndrew 2016 - Forum software by © MyBB