Hi
I am using PHPMaker v2024.9.0
I have a problem when uploading project files to the server.
This problem occurs when creating a new table on a database and generating all files.
These [list/add/edit/delete] pages not working on the browser and get this error 404 Not Found.
When I tried to build a custom file and generate all files the same error occurred 404 Not Found.Notes 1: for old tables and custom files pages there are no problems it works well, and when testing the project locally it works well.Notes 2:
I tried to change the code on the routes.php file and wrote a function like this:
$app->map(
["GET", "POST", "PUT", "DELETE", "PATCH"],
'/{routes:.+}',
function ($request, $response, array $params) {}
);
instead of this function :
$app->map(
["GET", "POST", "PUT", "DELETE", "PATCH"],
'/{routes:.+}',
fn($request, $response, $params) => throw new HttpNotFoundException($request, str_replace("%p", $params["routes"], Container("app.language")->phrase("PageNotFound")))
);
I get this error:
vendor/slim/slim/Slim/Handlers/Strategies/RequestResponse.php(38): Slim\Handlers\Strategies\RequestResponse::__invoke(): Return value must be of type Psr\Http\Message\ResponseInterface, null returnedPHPMaker v2024.9.0
PHP version 8.2.6
webserver ApacheThank you