err_log:"array_merge() [function.array-merge]: Argument #1 is not an array in /drupal/themes/slash/slash.theme on line 177."

Comments

frjo’s picture

Component: User interface » Code
Assigned: huyl » frjo

Fedora core 4 comes with PHP 5 if I'm correctly informed. It looks like Slash has a problem with PHP 5. I unfortunately don't have a box with PHP 5 for testing.

I think Drupal as a hole still works best with PHP 4 so you could try that. You can also just delete the edit link function. Changing this (line 172-179)

  if ($node->links) {
    if (user_access("administer nodes")) {
      $edit_link = l(t('edit'), "node/$node->nid/edit", array('title' => t('Edit this post.')));
    }
    $output .= "<div class=\"nodemore\">";
    $output .= theme('links', array_merge($edit_link, $node->links));
    $output .= "</div></div>\n";
  }

to this should work I think.

  if ($node->links) {
    $output .= "<div class=\"nodemore\">";
    $output .= theme('links', $node->links);
    $output .= "</div></div>\n";
  }
huyl’s picture

Assigned: frjo » huyl

thank you frjo.
it's ok after change that.

Anonymous’s picture

Anonymous’s picture

frjo’s picture

Version: » master
Status: Fixed » Closed (fixed)