Search problem

General project discussion. NOT for help questions.
tibbsy
New Member
New Member
Posts: 5
Joined: Tue Jun 15, 2010 5:24 pm

Search problem

Post 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
replytomk3

Re: Search problem

Post by replytomk3 »

noone can access the site - landing page
tibbsy
New Member
New Member
Posts: 5
Joined: Tue Jun 15, 2010 5:24 pm

Re: Search problem

Post 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
tibbsy
New Member
New Member
Posts: 5
Joined: Tue Jun 15, 2010 5:24 pm

Re: Search problem

Post 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
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

Re: Search problem

Post 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
tibbsy
New Member
New Member
Posts: 5
Joined: Tue Jun 15, 2010 5:24 pm

Re: Search problem

Post 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.
Attachments
results.gif
square
Forum Members
Forum Members
Posts: 51
Joined: Fri Jan 15, 2010 5:02 pm

Re: Search problem

Post 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.
klenkes
Power Poster
Power Poster
Posts: 307
Joined: Mon Sep 08, 2008 9:43 am

Re: Search problem

Post 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.
square
Forum Members
Forum Members
Posts: 51
Joined: Fri Jan 15, 2010 5:02 pm

Re: Search problem

Post 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" "
klenkes
Power Poster
Power Poster
Posts: 307
Joined: Mon Sep 08, 2008 9:43 am

Re: Search problem

Post 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...
square
Forum Members
Forum Members
Posts: 51
Joined: Fri Jan 15, 2010 5:02 pm

Re: Search problem

Post 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...
square
Forum Members
Forum Members
Posts: 51
Joined: Fri Jan 15, 2010 5:02 pm

Re: Search problem

Post by square »

I successfully activated the mod_rewrite and now it works. But it didn't solve the problem, it gave another way.
klenkes
Power Poster
Power Poster
Posts: 307
Joined: Mon Sep 08, 2008 9:43 am

Re: Search problem

Post 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?
square
Forum Members
Forum Members
Posts: 51
Joined: Fri Jan 15, 2010 5:02 pm

Re: Search problem

Post by square »

klenkes wrote: Am I missing something?
Yes, search for "database"  :D
klenkes
Power Poster
Power Poster
Posts: 307
Joined: Mon Sep 08, 2008 9:43 am

Re: Search problem

Post by klenkes »

C'mon... you are pulling my leg!
"No results found" on "database"
I did 10 searches and everything went and looked fine.
Post Reply

Return to “General Discussion”