Hello,

After updating to biblio 1.0 (from a beta or RC Candiate, dunno) , I get the following error when viewing the biblio-list:

Fatal error: Cannot break/continue 1 level in biblio.module on line 277

Comments

a.siebel’s picture

Addition:

I updated from Biblio RC 5 which was updated from D5

rjerome’s picture

Could you try deleting line 277 out of that file, it's the line with the "break;" on it below...

Lines 275 - 282 currently look like this...

  if ($op == 'download') {
    // Only users with permission to do so may see download links to attached files.
    if (user_access('show download links') || (user_access('show own download links') && ($user->uid == $node->uid)))
    {
      return TRUE;
    }
    break;
  }

Should look like this...

  if ($op == 'download') {
    // Only users with permission to do so may see download links to attached files.
    if (user_access('show download links') || (user_access('show own download links') && ($user->uid == $node->uid)))
    {
      return TRUE;
    }
  }

I believe a cut and paste from the 5.x version introduced that error.

Ron.

rjerome’s picture

Status: Active » Fixed
a.siebel’s picture

Yes, deleting the line solved the problem.

thanks :-)

rjerome’s picture

I assumed it would and already incorporated it into the 1.1 release ;-)

Ron.

Status: Fixed » Closed (fixed)

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