Numeric value in URL causing problems with page PHP output

5 posts by 4 authors in: Forums > CMS Builder
Last Post: March 31, 2011   (RSS)

By gadefgaertgqe - March 30, 2011 - edited: March 30, 2011

Hey all,

This one is a bit quirky. I have a search option via drop downs. All works well, except when one of the drop downs is a numeric value greater than 1 (so anything 2 or over causes problems).

When the page is rendered the following code shows no output on the page.

<?php echo $mainRecord["dealer_title"] ?>

If there are no numbers in the URL (a numeric 1 is fine as I mentioned), then the above code works fine.

This smells of a 'record number' issue, but no idea where to go from here.

Url examples as follows:

Works:
peugeot-scooters-list.php?model_range=Vivacity&engine_size=&cooling_system=&colours=&submit=Search

Fails:
peugeot-scooters-list.php?model_range=Speedfight+3&engine_size=&cooling_system=&colours=&submit=Search

I have tested the number theory with other fields and get consistent results.

On a side and possibly related note, I seem unable to get useSeoUrls' => True to work.

Thanks

Paul

Re: [Pixels & Beats] Numeric value in URL causing problems with page PHP output

By robin - March 30, 2011

Hey,

Could you post your peugeot-scooters-list.php code or mail it to support@interactivetools.com? We'll take a look.

Thanks
Robin
Programmer
interactivetools.com

Re: [robin] Numeric value in URL causing problems with page PHP output

By Codee - March 30, 2011

Just curious...are you by chance putting any hyphens into your record title when you're using numbers? In quite a few versions of CMSB putting a hyphen in the title field for a record (and the outputting urls are as a standard using that field for the url output) causes the output function to break. I can perform that consistently on at least 5 versions of CMBSB...I have no fix other than to ensure there are no hyphens in my titles. Just a thought.

Re: [Pixels & Beats] Numeric value in URL causing problems with page PHP output

Hi,

Just a wild guess which probably has no relevance.

Is there an errant

'where' => whereRecordNumberInUrl(1),

in one of the record calls at the top of your page?

Jerry Kornbluth
The first CMS Builder reference book is now available on-line!







Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php