954,561 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Cannot Declare Render() function - Drupal

For the past few days I have been trying to get a Drupal 7.12 install to function on my CentOS 6 x64 VPS which is using the latest version of Webmin however no matter where I upload the files, I keep getting a server 500 error when trying to launch the Drupal install.

I've checked the Apache logs and this is the error that keeps appearing whenever I try to load the install:

Cannot redeclare render() [path to the server dirctiory] in [line number] common.inc

I pulled up the Common.inc in my editor and the function looked valid and fine so I'm not exactly sure what is going wrong.

I've tried searching however many of the posts were saying to update PEAR (which I currently have the latest version of).

Anyway assistance is greatly appreciated.

theonlylos
Newbie Poster
9 posts since Nov 2010
Reputation Points: 10
Solved Threads: 0
 
if(!function_exists('render')){
     //put your render function
     function render(){
     }
}

Try above. Anyway, what is the PHP version ? And check the system requirements for Drupal 7.12 to ensure it is compatible with your PHP version.

Zero13
Practically a Master Poster
624 posts since Jan 2009
Reputation Points: 120
Solved Threads: 139
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: