Hi

I have just tested the module with the new D7 release and I met a strange problem.
All old nodes just do not work and provide the following error
Fatal error: Unsupported operand types in ..../includes/theme.inc on line 817
When I disable the module everything works fine again..

CommentFileSizeAuthor
#9 invalid-call-node-1029972-9.patch865 bytesiler

Comments

kansaj’s picture

Ok,
the problem is always related to the first node in the system !

kansaj’s picture

Status: Active » Needs review

simple solution

  $next = $result->fetchAssoc();
  if ($next) {
  return $next;
  }
bryancasler’s picture

Kansaj, where would I put that?

kansaj’s picture

slidebox.module

function slidebox_data($node) {

....
 $next = $result->fetchAssoc();
+  if ($next) {
  return $next;
 + }

bryancasler’s picture

This is what I have

  $next = $result->fetchAssoc();
  if ($next) {
	return $next;
  }
}

It seemed to work for a while but now the problem is cropping up again.

kansaj’s picture

could you describe how is cropping up again ?

bryancasler’s picture

Sorry about not linking this originally. #1049250: Error on oldest instance of a "Basic page"

zi’s picture

Hi, I'm using the Omega theme too and am encountering the exact same problem. Slidebox works the way it should on all pages other than the first node. I tried kansaj's suggestion in #4 and nothing happened. Same error message. Unfortunately I have no programming knowledge so I have my fingers crossed that someone might have another solution. Help!

iler’s picture

StatusFileSize
new865 bytes

Attached a patch which should solve this problem.

Anonymous’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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