"Parameter expected to be reference, value given" error in menu page callback I have a custom module that adds a couple action links via menu items:

function monographs_menu() {
  $items['node/%node/clone_comment'] = array(
    'access callback' =&gt; 'clone_access_cloning',
    'access arguments' =&gt; array(1),
    'page callback' =&gt; 'monographs_node_check',
    'page arguments' =&gt; array(1, 2),
    'title' =&gt; 'Create For Comment version',
    'type' =&gt; MENU_LOCAL_ACTION,
  );

  $items['node/%node/clone_authorized'] = array(
    'access callback' =&gt; 'clone_access_cloning',
    'access arguments' =&gt; array(1),
    'page callback' =&gt; 'monographs_node_check',
    'page arguments' =&gt; array(1, 2),
    'title' =&gt; 'Create Final Authorized version',
    'type' =&gt; MENU_LOCAL_ACTION,
  );

  return $items; 
}


and the function signature for the page callback is

function monographs_node_check(&amp;$node, $type)


On my local machine and my dev server, this all works just peachy.  However, on the client's server, with a clone of my db and the repo, whenever this link is clicked on, they get a WSOD and this error in watchdog:


  Warning: Parameter 1 to monographs_node_check() expected to be a reference, value given in menu_execute_active_handler() (line 517 of ...\public_html\includes\menu.inc).


Since it's on a remote server that I don't have access to, I can't debug it, but the fact that it works without error on my own local machine and dev server makes it even weirder.

What could be different in the other environment that would cause this error?

Thanks.
I got the answer from the support list, and all I needed to do was remove the reference for the node object in my callback function signature:

function monographs_node_check($node, $type)


$node is passed as an object anyway, so I don't need to mark it as being by reference in the signature.