Hello,

I am running Drupal 5.12, MySQL 5.0.67 and PHP 5.2.8.
I have the following modules installed :

- author-pane 5.x-1.0-beta2
- Advanced Forum 5.x-1.0-rc1
- Advanced Profile Kit 5.x-1.0-rc1
- Facebook Status 5.x-1.0-rc1
- Flat comments 5.x-1.1
- User badges 5.x-1.4
- User Stats 5.x-1.0-beta4

Im just struggeling to get the autor panel visible in de forum posts.
And when i activate the author-pane block i get the following errors on the frontpage only:

* warning: Invalid argument supplied for foreach() in /usr/home/a1085/domains/q-tox.nl/public_html/construct/modules/node/node.module on line 561.

* warning: implode() [function.implode]: Invalid arguments passed in /usr/home/a1085/domains/q-tox.nl/public_html/construct/modules/node/node.module on line 565.

* user warning: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1 query: SELECT n.nid, n.vid, n.type, n.status, n.created, n.changed, n.comment, n.promote, n.sticky, r.timestamp AS revision_timestamp, r.title, r.body, r.teaser, r.log, r.format, u.uid, u.name, u.picture, u.data FROM node n INNER JOIN users u ON u.uid = n.uid INNER JOIN node_revisions r ON r.vid = n.vid WHERE in /usr/home/a1085/domains/q-tox.nl/public_html/construct/includes/database.mysql.inc on line 174.

Any help is highly appreciated

Comments

michelle’s picture

Status: Active » Postponed (maintainer needs more info)

You don't need to enable the block to get it to work with Advanced Forum; it will pick it up automatically.

That SQL error you're getting isn't anything in Author Pane.

Not sure what to suggest other than not trying to put the block on the front page. It's only mean to work on node/XX, user/XX, and blog/XX.

Michelle

Whackler’s picture

Thanx Michelle,

I forgot or didnt see at first that i had to alter template.php..
I guess that fixed the block problem and showed the author pane in the node-forum
Still not sure how to use the author pane block and/or the author information block.

But hey, im happy

Dennis

michelle’s picture

Status: Postponed (maintainer needs more info) » Fixed

The block is if you want to use it outside of APK/AF, like on peoples' blog posts and such.

Michelle

mauriziopinotti’s picture

this is the patch to solve this issue (DRUPAL-5--1-0-BETA3):

--- sites/all/modules/author_pane/author_pane.module.orig	2009-03-09 19:33:33.000000000 +0100
+++ sites/all/modules/author_pane/author_pane.module	2009-03-09 19:33:17.000000000 +0100
@@ -207,7 +207,7 @@
   }
   else {
     // We're on a node page so load the node.
-    $node = node_load(arg(1));
+    if (is_numeric(arg(1))) $node = node_load(arg(1));
 
     $allowed_types = variable_get('author_pane_block_display_types', array());
     if (empty($allowed_types[$node->type])) {

bye,
Maurizio

mauriziopinotti’s picture

Category: support » bug
Status: Fixed » Needs review
mauriziopinotti’s picture

Version: 5.x-1.0-beta2 » 5.x-1.0-beta3
michelle’s picture

Status: Needs review » Reviewed & tested by the community

That's a weird one... What path are you running into that is example.com/node/not-a-number?

I guess it won't hurt to add a check for it being numeric there but that's a strange edge case.

Michelle

michelle’s picture

Status: Reviewed & tested by the community » Fixed

Ok, I didn't quite do it that way but committed.

Michelle

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.