Problem with include

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

By willbegood - October 16, 2009

Hello Donna, i've tryed full path, and i have strange issue anyway
I'm using include for my navigation, footer and for Google Analytics

See those url

http://www.richard-riahi.com/v2/fr/interventions-sous-categorie.php?fr_parentcateg=1

on this one nav ok, google ok, footer ok

--------

http://www.richard-riahi.com/v2/fr/interventions-sous-categorie.php?fr_parentcateg=2

on this one (same page but different filter) : nav ok, google does'nt show in the source, and my footer say "Pas de contenu" (No records were found!)

for
http://www.richard-riahi.com/v2/fr/interventions-sous-categorie.php?fr_parentcateg=3
>>>same problem

http://www.richard-riahi.com/v2/fr/interventions-sous-categorie.php?fr_parentcateg=4
>>>same problem

etc etc

Why this happening?? I really don't understand!!!!
I send you all my include files and the main file.
I've already try to play with 'allowSearch' => '0', .... without no result.

Please help

Re: [Damon] Problem with include

By willbegood - November 6, 2009

Hello Damon, i've noticed, that it works only with that kind of link

http://www.richard-riahi.com/v2/fr/interventions-sous-categorie.php?fr_parentcateg=Seins

not with this :

http://www.richard-riahi.com/v2/fr/interventions-sous-categorie.php?fr_parentcateg=M%C3%A9decine%20esth%C3%A9tique

when fr_parentcateg is a simple word (one word), my footer infos are displayed, when it is 2 words or more it doesn't.

Other thing, the "remove accent" plugin does not work... i tryed to activate / desactivate it, it doesn't change anything to my problem.

I know my problem came from here (accent and/or the way fr_parentcateg is displayed in my url.

Please help

Re: [Damon] Problem with include

By willbegood - November 6, 2009

Hi again dave, i've worked around my problem and found something interesting.

See this : http://www.richard-riahi.com/v2/fr/interventions-sous-categorie.php?Silhouette-2

on this link my footer say "Pas de contenu" (No record)

If i just remove the NUM at the end of the url like this

http://www.richard-riahi.com/v2/fr/interventions-sous-categorie.php?Silhouette

My footer display my data.

So i've search on the forum if there is a way to remove the num at the end of the irl... somebody asked for this but no response.

Could you help?... this will solve my problem.

Thanks

Re: [willbegood] Problem with include

By Chris - November 11, 2009

Hi willbegood,

Did you get this sorted out? I went to the URL you gave above and didn't see the word "contenu" anywhere on the page or in the source.
All the best,
Chris

Re: [willbegood] Problem with include

By Dave - November 11, 2009

Hi willbegood,

Try removing this line from footer.php

list($pied_de_pageRecords, $pied_de_pageMetaData) = getRecords(array(
'tableName' => 'pied_de_page',
'where' => whereRecordNumberInUrl(1),
'limit' => '1',
'allowSearch' => '0',
));


Let me know if that fixes it for you.
Dave Edis - Senior Developer
interactivetools.com

Re: [Dave] Problem with include

By willbegood - November 11, 2009

just perfect. It works thanks