Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Erro no Slim com o Page TPL #20

Open
LukasCCB opened this issue Mar 12, 2022 · 0 comments
Open

Erro no Slim com o Page TPL #20

LukasCCB opened this issue Mar 12, 2022 · 0 comments

Comments

@LukasCCB
Copy link

LukasCCB commented Mar 12, 2022

Olá, boa tarde.

Após testar mil e uma coisas, graças a deus o banco de dados e a rota slim funciona (quando removo a class tpl)

Quando eu comecei a fazer o projeto seguindo as aulas. tive que parar na aula 103 no minuto 16:52, porque eu tive o mesmo problema. então, achando que o erro era da minha parte, vim e baixei o projeto pronto. pannn... mesmo erro. como posso resolver? Sim, fiz composer update antes

Se eu remover a entrada da TPL o projeto fica com pagina branca, más sem erros.
image

O erro: (ignore o diretorio que ela está, o problema está vindo diretamente do TPL)

Fatal error: Uncaught ErrorException: fwrite(): write of 1042 bytes failed with errno=9 Bad file descriptor in C:\dev\ecommerce\vendor\slim\slim\Slim\LogWriter.php:73 Stack trace: #0 [internal function]: Slim\Slim::handleErrors() #1 C:\dev\ecommerce\vendor\slim\slim\Slim\LogWriter.php(73): fwrite() #2 C:\dev\ecommerce\vendor\slim\slim\Slim\Log.php(232): Slim\LogWriter->write() #3 C:\dev\ecommerce\vendor\slim\slim\Slim\Log.php(210): Slim\Log->log() #4 C:\dev\ecommerce\vendor\slim\slim\Slim\Middleware\PrettyExceptions.php(70): Slim\Log->error() #5 C:\dev\ecommerce\vendor\slim\slim\Slim\Slim.php(1159): Slim\Middleware\PrettyExceptions->call() #6 C:\dev\ecommerce\index.php(19): Slim\Slim->run() #7 {main} thrown in C:\dev\ecommerce\vendor\slim\slim\Slim\LogWriter.php on line 73

Obs: Como eu uso o IIS, tive que trocar o $_SERVER["DOCUMENT_ROOT"] para __ DIR ___

Comprei o curso faz poucos meses.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant