Problem using module_load_include I need to use node_add(), but when I called it in my module I get the "undefined function" message. 

So I'm trying to include it using module_load_include('inc', 'node', 'node.pages'), but I'm getting the error message:


  Fatal error: Unsupported operand types in /var/www/vhosts/**.es/httpdocs/includes/common.inc on line 2946


Do you have any idea?
Maybe you are using an old version of PHP. Have you tried also running "php -l your_file.php". That will run just the parser to see if you have any php syntax problem.