Fatal error: Cannot redeclare render() in /var/www/.../includes/common.inc on line 5757

Ayuda por favor, sale este mensaje de error al intentar instalar drupal 7 en centos 6.1
La linea 5757 esta en blanco, no se que falta, intente cerrar el php con " ?> " porque no encontre el cierre de php, pero ningun resultado

Comments

thajekku’s picture

Try downgrading graphviz-php and graphviz like so:
yum downgrade install graphviz-php-2.26.0-4.el6 graphviz-2.26.0-4.el6
worked for me. I noticed on one box that did not have a problem with drupal 7 that I got the following running pear:

pear list
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/gv.so' - /usr/lib64/php/modules/gv.so: undefined symbol: zend_error_noreturn in Unknown on line 0

The box that had the problem did not give that PHP Warning, took me most of a day to find this after downgrading many other packages.

I suppose you could also disable the graphviz-php extension module by commenting out the extension in /etc/php.d/graphviz.ini

; Enable graphviz extension module
;extension=gv.so

joseph.olstad’s picture

Confirmed: downgrading graphviz-php works
yum downgrade install graphviz-php-2.26.0-4.el6 graphviz-2.26.0-4.el6

Thanks thajekku

jjg.denis.robert’s picture

graphviz defines a render() method in gv.so. So disabling or uninstalling the graphviz module does the trick.