Page 1 of 2

Search problem

Posted: Tue Jun 15, 2010 5:32 pm
by tibbsy
Hi peepz,

This is the first time Ive had the chance to use CMSMS and Im loving it!, so thanks to all the people that have worked so hard to bring a solution that is a great help and a great product!

My question is...

I have pretty much finished my current site which is for a recruitment company, I have adapted the NEWS module to display the latest vacancies on the home page and is working like a treat. My problem is, when I use the search box, it finds the jobs without any problem, however when you then click on the search result link I forwards to a styless page, just listing the layout with out the CSS and the actually result. I have tried creating a seperate search page to point the results at, but to no avail. You can see for yourselves here

http://www.ncnresourcing.co.uk/

try a search and then  click the link to see what I mean. 

Have I missed some config, being a noooob to the system any help is appreciated.

Thanks

Re: Search problem

Posted: Tue Jun 15, 2010 8:17 pm
by replytomk3
noone can access the site - landing page

Re: Search problem

Posted: Thu Jun 17, 2010 7:47 am
by tibbsy
ahh

sorry, you have to type the full url

http://www.ncnresourcing.co.uk/index.php

Im still trying to work out what is going wrong. Just had my CMSMS beginners gude book in the post, very usefull for quick ref, but not a great deal about the search function.

any help Please :)

thanks

Re: Search problem

Posted: Thu Jun 17, 2010 8:16 am
by tibbsy
The error I get is when you click on the search result url is -

: string(43) "Smarty error: eval: missing 'var' parameter"

Having googled it, it shows up as more a bug as hundreds of sites are indexed with the problem. Any ideas?

thanks

Re: Search problem

Posted: Thu Jun 17, 2010 9:42 am
by RonnyK
I dont see the error, but the search isnt the CMSMS search but an iframed external search engine.

Could you explain a bit more the issue you have with Search, as you mention that clicking will tell, but I see external-results...

Ronny

Re: Search problem

Posted: Fri Jun 18, 2010 10:01 am
by tibbsy
Hi Ronny

I was trying a different search option when you checked :( Im due to go live on Monday.
Its been returned to the CMSMS mod now. Ive also attatched a screen shot of the error.
Cheers for taking a look.

Re: Search problem

Posted: Tue Jun 29, 2010 9:55 pm
by square
Hi,

I've got the same probem here.  >:(

The search module does give this URL for the article "index.php?mact=News,cntnt01,detail,0&cntnt01returnid=15" whereas the right URL is "index.php?mact=News,cntnt01,detail,0&cntnt01articleid=107&cntnt01returnid=65".

"articleid=107" is missing.

All the template is not loaded it stops just before {content}

Try it : www.sfp-apa.fr
Search with keyword "SSR", click the first link and look what's happning.

Re: Search problem

Posted: Wed Jun 30, 2010 7:35 am
by klenkes
@square
I think your problem is of a different type.
Try to enable internal pretty URL or mod_rewrite and see if it still persists.

Re: Search problem

Posted: Wed Jun 30, 2010 8:09 am
by square
@klenkes

Thanks for your help,
I tried with "$config['url_rewriting'] = 'internal';" and it doesn't solved my error.
mod_rewrite doesn't work, so I can't try it but I don't think this is a url rewriting problem.
My problem is, when I use the search box, it finds the jobs without any problem, however when you then click on the search result link I forwards to a styless page, just listing the layout with out the CSS and the actually result.
To me, it sounds it's the same problem, but his error has evolved form post#1 to post#4 ": string(43) "Smarty error: eval: missing 'var' parameter" "

Re: Search problem

Posted: Wed Jun 30, 2010 8:48 am
by klenkes
strange...
I had the same problem with searchresultlinks, that parsing stopped right at the content tag and no style at all.
I switched to pretty URL and everything was fine.

The resultlink seems to miss the articleid=xx parameter:
http://www.sfp-apa.fr/cms/index.php?mac ... eturnid=15
This cannot work if no articleid is known!

With pretty URL the articleid is attached to the URL so it should work in your case too.

starnge...

Re: Search problem

Posted: Wed Jun 30, 2010 1:04 pm
by square
klenkes wrote: The resultlink seems to miss the articleid=xx parameter
Yes, it's only this parameter that's missing... And yes it's strange !

I'll try localy, but I don't see why it would be better...

Re: Search problem

Posted: Wed Jun 30, 2010 3:08 pm
by square
I successfully activated the mod_rewrite and now it works. But it didn't solve the problem, it gave another way.

Re: Search problem

Posted: Wed Jun 30, 2010 3:24 pm
by klenkes
My problem is, when I use the search box, it finds the jobs without any problem, however when you then click on the search result link I forwards to a styless page, just listing the layout with out the CSS and the actually result.
But the site just looks fine.
If I search for "weekend" and click on the resultlink the site displays fine and without any errors.

Am I missing something?

Re: Search problem

Posted: Wed Jun 30, 2010 3:49 pm
by square
klenkes wrote: Am I missing something?
Yes, search for "database"  :D

Re: Search problem

Posted: Wed Jun 30, 2010 4:09 pm
by klenkes
C'mon... you are pulling my leg!
"No results found" on "database"
I did 10 searches and everything went and looked fine.