Hi,

Implementing the Quetes module right now. The idea is to show "Todays Quote" on only front page. The first time I access the page everytyhing is ok but the next (and following) time I get this error instead of the quote.

warning: Missing argument 1 for theme_quotes_quote() in /home/xxx/mysite/sites/all/modules/quotes/quotes.module on line 904.

Any idea why this happens?

Comments

nancydru’s picture

Title: Missing argument 1 for theme_quites_quote » Missing argument 1 for theme_quotes_quote
Status: Active » Postponed (maintainer needs more info)

I'm assuming this is a random quote. Your line number is way off from mine. Have you tried the -dev version?

I'm still looking to try to recreate this.

nancydru’s picture

In function quotes_view(), starting at line 414, you should see:

  // Prepare the node content.
  if (!$node->quotes_format) {
    $node = node_prepare($node);

Please change in to:

  // Prepare the node content.
  if (!isset($node->quotes_format)) {
    $node = node_prepare($node);

And let me know if that fixes the problem.

nancydru’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

No further information.

Aple’s picture

Version: 6.x-1.1 » 6.x-1.40
Status: Closed (fixed) » Active

Reopening this. I have the same problem and have tried changing how the node is prepared, but the thing is, I'm trying to implement this on my frontpage -not- a node.

Am I implementing this wrong? Thanks.

nancydru’s picture

Did you try the code in #2?

nancydru’s picture

Status: Active » Closed (cannot reproduce)

No further information.