Ticket #667 (closed tarefa: fixed)

Opened 15 years ago

Last modified 15 years ago

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:1 Changed 15 years ago by rodsouza

  • Keywords Cannot redeclare class added

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:4 follow-up: ↓ 5 Changed 15 years ago by niltonneto

  • Milestone set to Expresso 2.1

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.

Note: See TracTickets for help on using tickets.