Undefined index
7 posts by 4 authors in: Forums > CMS Builder
Last Post: July 7, 2009 (RSS)
By Roj - February 2, 2009
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
Re: [Roj] Undefined index
By Dave - February 2, 2009
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!
interactivetools.com
Re: [Roj] Undefined index
By markr - July 4, 2009
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
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: [markr] Undefined index
By ross - July 7, 2009
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/