Solucionado (ver solução)
Solucionado
(ver solução)
3
respostas

Dúvida no Ex. 3 da Aula 7 - Implementando o Login

estou tendo um probleminha na hora que habilito a session

A PHP Error was encountered

Severity: Warning

Message: mkdir(): Invalid path

Filename: drivers/Session_files_driver.php

Line Number: 117

Backtrace:

File: /Users/ramiresmoreira/Google Drive/sites/mercado/application/controllers/Produtos.php
Line: 11
Function: __construct

File: /Users/ramiresmoreira/Google Drive/sites/mercado/index.php
Line: 292
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at /Users/ramiresmoreira/Google Drive/sites/mercado/system/core/Exceptions.php:272)

Filename: core/Common.php

Line Number: 573

Backtrace:

An uncaught Exception was encountered

Type: Exception

Message: Session: Configured save path '' is not a directory, doesn't exist or cannot be created.

Filename: /Users/ramiresmoreira/Google Drive/sites/mercado/system/libraries/Session/drivers/Session_files_driver.php

Line Number: 119

Backtrace:

File: /Users/ramiresmoreira/Google Drive/sites/mercado/application/controllers/Produtos.php
Line: 11
Function: __construct

File: /Users/ramiresmoreira/Google Drive/sites/mercado/index.php
Line: 292
Function: require_once
3 respostas

Alguém pode me ajudar com isso? porque estou tendo problemas para terminar o modulo, outra coisa que também está acontecendo é que quando uso o redirect() ta dando erro também, segue o erro.

A PHP Error was encountered

Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at /Users/ramiresmoreira/Google Drive/sites/mercado/application/controllers/Produtos.php:53)

Filename: helpers/url_helper.php

Line Number: 564

Backtrace:

File: /Users/ramiresmoreira/Google Drive/sites/mercado/application/controllers/Produtos.php
Line: 34
Function: redirect

File: /Users/ramiresmoreira/Google Drive/sites/mercado/index.php
Line: 292
Function: require_once
solução!

Oi Ramires, tudo bem? Essa dúvida foi soluciona nesse outro tópico, certo?

https://www.alura.com.br/course/codeigniter-avancado/discussions/671607

Qualquer coisa nos avise, ta bem? Um abraço, bons estudos

sim