php - Drupal/Wordpress Fatal error: Cannot redeclare functions - Errors keep showing -


i have drupal site , inside have wordpress blog drupal_site/wordpress_blog. when did implantation seemed work fine getting following error

fatal error: cannot redeclare timer_start() (previously declared in (path_of_mysite)/includes/bootstrap.inc:456) in (path_of_mysite)/blog/wp-includes/load.php on line 197

i have renamed timer_start() got same error function.

so problem drupal's functions "overrides" wp functions , renaming every wp core function not working.

also have tried @ least errors not shown @ page, have disable them drupal dashboard, have tried via .htaccess,via index.php,also via phpmyadmin error keeps showing.

update:i found solution errors not shown,i have added

error_reporting(0); 

to wp-config.php.so @ least there something.

any clue solution?

drupal , wordpress trying declare same function names. solve type of problems php had introduced namespaces in php 5.3, more info: http://www.php.net/manual/en/language.namespaces.php, saddly drupal , wordpress did not use namespaces.

my recomendation avoid problem install drupal , wordpress in different subdomains, if domain drupal_site.com, use blog.drupal_site.com wordpress installation.


Comments