i had attempted to install Nodeque and Organic groups. Once I hit submit I received the following error:

Warning: Call-time pass-by-reference has been deprecated; If you would like to pass it by reference, modify the declaration of nodequeue_api_subqueues(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. in /home/.gallows/bigmack83/50cents2play.net/sites/50cents2play.net/modules/nodequeue/nodequeue_generate.module on line 141
Content-Length: 2008
Fatal error: Call to undefined function og_get_subscriptions() in /home/.gallows/bigmack83/50cents2play.net/sites/50cents2play.net/modules/og/og_access.module on line 184

Ive had the pass by reference error before. I tried going into the system table to disable it but the error was still being thrown
As for Organic groups I was unsure. I attempted to disable it also via the system table but there was no record of organic groups, or any OG/organic groups tables in the database. so I am kind of stuck on this. I tried clearing the cache tables, cron.php, but nothing.

when I go to update.php (which is the only page that shows) there is the line "Content-Length: 2008" line at the top of the page just inside of the border. . If I hit submit it says:

An unrecoverable error has occured. You can find the error message below. It is advised to copy it to the clipboard for reference. Please continue to the update summary
Content-Length: 2008 { "status": true, "percentage": 100, "message": "Updating complete" }

and selecting go to update summary it shows

The update process was aborted prematurely while running update # in .module. All other errors have been logged. You may need to check the watchdog database table manually.

and does nothing other that this. does anyone have any idea on how to fix this? Thank you ahead of time for your help.

Comments

luckysmack’s picture

the code on the line from the error are:

nodequeue_generate.module line 141

nodequeue_api_subqueues(&$queue, $node);

og_access.module line 184

if ($subscriptions = og_get_subscriptions($account->uid)) {

The block of code for nodeque is as follows:

  // Delete existing smartqueue taxonomy subqueues
  db_query("DELETE ns FROM nodequeue_subqueue ns INNER JOIN nodequeue_queue nq ON ns.qid=nq.qid WHERE nq.owner = 'smartqueue_taxonomy'");

  // Re-add those subqueues
  $node = new stdClass;
  $tree = array();
  foreach ($vids as $vid) {
    $tree += taxonomy_get_tree($vid);
  }
  $node->taxonomy = $tree;
  $queues = nodequeue_load_queues(nodequeue_get_all_qids(200));
  foreach ($queues as $queue) {
    if ($queue->owner == 'smartqueue_taxonomy') {
      nodequeue_api_subqueues(&$queue, $node);                          <--- line 141
    }
  }
}

The block of code for OG is as follows:

/**
 * Implementation of hook_node_grants().
 */
function og_access_node_grants($account, $op) { 
  if ($op == 'view') {
    $grants['og_public'][] = 0; // everyone can see a public node
  }

  // Subscribers get an admin or non-admin grant for each subscription
  if ($subscriptions = og_get_subscriptions($account->uid)) {                        <--- line 184
    foreach ($subscriptions as $key => $val) {
      // Admins don't need to receive the subscriber grant since they can perform all operations.
      if ($val['is_admin']) {
        $grants['og_admin'][] = $key;
      }
      else {
        $grants['og_subscriber'][] = $key;
      }
    }
  }
  return isset($grants) ? $grants : array();
}
yasheshb’s picture

in php.ini file.

this not encouraged though. please see -
http://in2.php.net/ini.core
http://in2.php.net/manual/en/language.references.pass.php

The code in line 141 (nodequeue_generate.module) should be imho changed to

  //nodequeue_api_subqueues(&$queue, $node);
    nodequeue_api_subqueues($queue, $node);

hth.
yashesh bhatia
http://venuslabs.co.in

Yashesh Bhatia