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?