Error code at the top of the document

9 posts by 3 authors in: Forums > CMS Builder
Last Post: April 1, 2009   (RSS)

By chassa2556 - March 27, 2009

I'm trying to load a multi-page record where the link is hardcoded on the end of a category menu breadcrumb. However when I load the list viewer triggered from the breadcrumb its coming up with an error message at the top of the page.

Notice: Undefined offset: 0 in /home/fhlinux142/m/mercerdesign.biz/user/htdocs/cmsAdmin/lib/viewer_functions.php on line 522 Notice: Undefined offset: 0 in /home/fhlinux142/m/mercerdesign.biz/user/htdocs/cmsAdmin/lib/viewer_functions.php on line 522 Notice: Undefined offset: 0 in /home/fhlinux142/m/mercerdesign.biz/user/htdocs/cmsAdmin/lib/viewer_functions.php on line 522

Here is my header code

<?php

require_once "/home/fhlinux142/m/mercerdesign.biz/user/htdocs/cmsAdmin/lib/viewer_functions.php";

list($teamRecords, $teamMetaData) = getRecords(array(
'tableName' => 'team',
));

list($school_2Records, $selectedCategory) = getCategories(array(
'tableName' => 'school_2',
'selectedCategoryNum' => '', // defaults to getNumberFromEndOfUrl()
'categoryFormat' => 'showall', // showall, onelevel, twolevel
));

?>


Its strangely referring to line 522 which doesn't exist?? Any ideas it seems to be drawing the page but coming up with this error at the top of the page.

Re: [chassa2556] Error code at the top of the document

By Dave - March 27, 2009

Hi Charles,

Are there any records in your database for that section yet?

Also, which version are you using?

Let us know and we'll look into this some more. Thanks!
Dave Edis - Senior Developer
interactivetools.com

Re: [Dave] Error code at the top of the document

By chassa2556 - March 27, 2009 - edited: March 27, 2009

Hi Dave&#10;&#10;Yes there are plenty of records. &#10;&#10;The version is 1.26&#10;&#10;Here is the URL&#10;&#10;http://www.mercerdesign.biz/cmsb/teamList.php&#10;&#10;I don't know if this makes a difference but the rest of the menu items are from a category menu but 'The Team' entry is a hardcoded URL at the end of the breadcrumb. Maybe it doesn't like this?

Re: [chassa2556] Error code at the top of the document

By ross - March 27, 2009

Hi

You are on a slightly older version of the software but for now, I don't think that's the problem. Would you mind attaching your whole page to a post for me so I can see all the code?

Thanks!
-----------------------------------------------------------
Cheers,
Ross Fairbairn - Consulting
consulting@interactivetools.com

Hire me! Save time by getting our experts to help with your project.
Template changes, advanced features, full integration, whatever you
need. Whether you need one hour or fifty, get it done fast with
Priority Consulting: http://www.interactivetools.com/consulting/

Re: [ross] Error code at the top of the document

By chassa2556 - March 27, 2009 - edited: March 27, 2009

Here is the document with the code
Attachments:

teamlist.php 6K

Re: [chassa2556] Error code at the top of the document

By ross - March 30, 2009

Hi Charles

I've been looking at that page and I think the problem is going to be this line:

'selectedCategoryNum' => '', // defaults to getNumberFromEndOfUrl()

that says it's going to get a number from the end of the URL and do something with it. The reason that's a problem is because when you go to your page here:

http://www.mercerdesign.biz/cmsb/teamList.php

There is no number. I think for now, just remove that line from your template and you should be good to go.
-----------------------------------------------------------
Cheers,
Ross Fairbairn - Consulting
consulting@interactivetools.com

Hire me! Save time by getting our experts to help with your project.
Template changes, advanced features, full integration, whatever you
need. Whether you need one hour or fifty, get it done fast with
Priority Consulting: http://www.interactivetools.com/consulting/

Re: [chassa2556] Error code at the top of the document

By ross - March 31, 2009

Hi.

Looks like I'll need to do a little bit more research on this one. Could you send me an email to ross@interactivetools.com with FTP details to your server?

There are a couple things I would like to test out.

Thanks!
-----------------------------------------------------------
Cheers,
Ross Fairbairn - Consulting
consulting@interactivetools.com

Hire me! Save time by getting our experts to help with your project.
Template changes, advanced features, full integration, whatever you
need. Whether you need one hour or fifty, get it done fast with
Priority Consulting: http://www.interactivetools.com/consulting/

Re: [ross] Error code at the top of the document

By chassa2556 - April 1, 2009

Hi Ross
I've sent this information to support@interactivetools.com