Ticket #667 (closed tarefa: fixed)
PHP Fatal error: Cannot redeclare class
Reported by: | rodsouza | Owned by: | alguem |
---|---|---|---|
Priority: | média | Milestone: | Expresso 2.1 |
Component: | API | Version: | trunk |
Severity: | Keywords: | Cannot redeclare class | |
Cc: | WorkGroup: |
Description
[error] [client 192.168.10.240] PHP Fatal error: Cannot redeclare class error in /var/www/expresso/phpgwapi/inc/class.error.inc.php on line 15
Change History
comment:2 Changed 15 years ago by rodsouza
No arquivo "phpgwapi/inc/functions.inc.php" na linha 264, onde se lê:
include(PHPGW_INCLUDE_ROOT.'/phpgwapi/inc/class.error.inc.php');
altere para:
include_once(PHPGW_INCLUDE_ROOT.'/phpgwapi/inc/class.error.inc.php');
comment:3 Changed 15 years ago by rodsouza
- Status changed from new to closed
- Resolution set to fixed
Alterada a declaração 'include' para 'include_once' para evitar erros fatais.
Committed revision r1463.
comment:5 in reply to: ↑ 4 ; follow-up: ↓ 6 Changed 15 years ago by wmerlotto
Replying to niltonneto: Não afeta o branch2.0?
comment:6 in reply to: ↑ 5 Changed 15 years ago by niltonneto
Replying to wmerlotto:
Replying to niltonneto: Não afeta o branch2.0?
Não se trata de um erro crítico, que impacte no funcionamento normal da aplicação. Além disso, tal problema já existia muito antes da versão 2.0.