Undefined index

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

Re: [Roj] Undefined index

By Dave - February 2, 2009

Hi Roj,

My first guess is that you have multiple viewers in your page and they're trying to load the record number on the end of the url from their sections.

If you have viewers for single record sections try removing the "where" line or commenting it out for those.

If that doesn't work feel free to attach your viewer and post urls if you can and I'll take a look.

Hope that helps!
Dave Edis - Senior Developer
interactivetools.com

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/