Undefined index

7 posts by 4 authors in: Forums > CMS Builder
Last Post: July 7, 2009   (RSS)

By Roj - February 2, 2009

I get an Undefined index error when I try and access any list page other than the first record.

This is my setup.

Text and images from the home page are used in the header on every page.
A drop down menu is used on every page getting data from 6 list pages

When I open the first page (i.e. section.php?page-1) everything works OK

When I open any other page ((i.e. section.php?anotherpage-2) I am unable to read the data from the home page and get an Undefined index in my header.

Hope this makes sense. Any ideas?

Roj
Roj

Re: [Dave] Undefined index

By Roj - February 3, 2009

Spot on Dave

That worked. [:)]

Thanks
Roj

Re: [Roj] Undefined index

By markr - July 4, 2009

Sorry, I'm not getting it.

So, I have a page REQUESTting 3 numeric variables in the url. Page works fine until I CMS-ify it with a viewer, then I get a "undefined index" errors for each of the other variables I am REQUESTing on the page.

I've tried using the default loading method, I tried using the advanced loading methog with a 'where' => 'num = 1' clause, I tried commenting out the where clause, but I still get the errors.

Ideas for what am I doing wrong?

Re: [markr] Undefined index

By ross - July 6, 2009

Hi there.

Thanks for posting!

I think what might be happening here is the numbers you pass in through URL are actually triggering CMS Builder's search.

Could you try adding in:

'allowSearch' => '0',

to your viewer. That should stop the numbers from effecting anything.

Give it a shot and let me know how you make out :).
-----------------------------------------------------------
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] Undefined index

By markr - July 6, 2009

Still getting error.

Re: [markr] Undefined index

By ross - July 7, 2009

Hi there.

Thanks for the update!

I'll need to take a closer look. Could you send me a link to that page and then actually attach a copy of it to your reply? Don't just paste 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/