Pages:

Search Bar

Ann

No avatar

2009-08-31 22:05

http://www.expressradio.com/Quick.Cart/index.php

Hello all, my search bar isn't working. I'm getting a page not found error when I put in an item. Can anyone tell me what I'm missing? I have my detailed errors showing so hopefully someone might find that useful.

» Quick.Cart v3.x

Ann Losito

beholder

Avatar: beholder

2009-09-01 01:32

Hi, try to create a new page called "Search Results", put it among "Hidden pages".
Then go to admin>settings>pages and select this new page as the search results page. Then report back here.

Ann

No avatar

2009-09-01 23:09

I created a Search Results page and unselected the status check box so that it would be hidden. Than I went to the settings page and noticed that page with Search Results was targeted to a Search results page. I switched it to the Search Results page that I created (the one that I created has a capital letter 'r' instead of a lower case r) and now my search bar has disappeared from my page.

Ann Losito

cgan

Avatar: cgan

2009-09-02 00:01

Do not unselect the status check box. Select it again. You should only choose in "Options Menu:"Hidden page" for your newly created Search Result. If you unselect the checkbox the search bar will disappear as you noticed.

cgan

Ann

No avatar

2009-09-02 14:36

Hey guys.
Cgan, I see what you're saying about the check mark box by Status, thank you. I went in and reselected that box and, just as you said it would, my search bar came back.
I tried my search bar again and I'm getting the same error. I'm searching for the phrase XPR because that is a phrase in my model numbers and after hitting submit I get directed to:

http://www.expressradio.com/Quick.Cart/&sPhrase=xpr

I'm not very familiar with PHP but shouldn't that redirect to something like
http://www.expressradio.com/Quick.Cart/SearchResults.php&sPhrase=xpr
??

Ann Losito

beholder

Avatar: beholder

2009-09-02 15:47

please try a clean install of QC in some other directory on your webserver and find out if the search works in Polish and English sections. That way we will be sure if this is a problem of subsequent changes or not.

cgan

Avatar: cgan

2009-09-02 15:48

Check that you also have choosen like this in admin/settings/pages/Page with search results:"Search Result" and choose "Hidden page" as menu for your page "Search Result".

cgan

Ann

No avatar

2009-09-08 21:52

Hello, I'm sorry that it had taken a me a while to get back to this.
cgan - I did have the page under hidden page along with the 'order page' page.
beholder- I will reinstall a new QC and attempt to search with the default. i will report my findings back here shortly

Ann Losito

cgan

Avatar: cgan

2009-09-08 23:27

It looks like your site won't work unless you go directly to the index.php. Could it be the htaccess file that causes the problem...? I mean you have installed in a subdirectory.

cgan

Ann

No avatar

2009-09-10 15:22

Okay, I've installed a brand new instance in http://expressradio.com/CleanInstall/index.php, same problem.

Yah cgan, I noticed that too. I'm not sure what you mean by the htaccess fiile. Do you mean the web.config file? Where would I find this and what would I need to change?

Ann Losito

beholder

Avatar: beholder

2009-09-10 16:22

Allright, I see the problem now. Thanks for installing it clean, it has really shown that this bug is not your own doing.

It's your web server. It's not configured to accept requests with simple ?, like for example:
http://expressradio.com/CleanInstall/?search-results,19&sPhrase=ddd

What only works on your server is this:
http://expressradio.com/CleanInstall/index.php?search-results,19&sPhrase=ddd

you can contact your webhosting provider to configure the server for you so that both alternatives are available. QuickCart extensively uses the 1st format of links so you really should do it, if you want to use it.


You may also 
try to modify core/pages.phpline:
$this->aPages[$aExp[0]]['sLinkName'] = '?'.$sLanguageUrl.change2Url$this->aPages[$aExp[0]]['sName'] ).','.$aExp[0];
to this:
$this->aPages[$aExp[0]]['sLinkName'] = strrchr($_SERVER['SCRIPT_NAME']).'?'.$sLanguageUrl.change2Url$this->aPages[$aExp[0]]['sName'] ).','.$aExp[0];

beholder

Avatar: beholder

2009-09-10 16:32

Continuing previous post:
..but maybe your webshop will also break somewhere else. You never know. Better to ask your server admin.

Do let me know here how it went.

beholder

Avatar: beholder

2009-09-10 16:33

damn, I made a mistake with strrchr, here is the correct line:

$this->aPages[$aExp[0]]['sLinkName'] = strrchr($_SERVER['SCRIPT_NAME'],"/").'?'.$sLanguageUrl.change2Url( $this->aPages[$aExp[0]]['sName'] ).','.$aExp[0];

Ann

No avatar

2009-09-14 20:15

lol okay beholder. Thank you so much. yah I'm having a problem with another program using the same type of request so I'll holler at them today and update here to let you all know how it all went :)

Ann Losito

Ann

No avatar

2009-09-14 20:36

lol okay beholder. Thank you so much. yah I'm having a problem with another program using the same type of request so I'll holler at them today and update here to let you all know how it all went :)

Ann Losito

Ann

No avatar

2009-09-14 20:38

Hey! Code worked so now my site is handling the request properly however, it's not staying in the directory. A search for tents in the CleanInstall directory returns:

http://www.expressradio.com/index.php?search-results,19

I typed in the directory before the index.php and refreshed the page and it does go to the search results page. Is there an edit to the code I can make to ensure it remains in the directory?

Thank you guys for being so much help!!!

Ann Losito

cgan

Avatar: cgan

2009-09-14 22:58

Sorry but I can't se any difference in the way your site is working now. You still must type index.php to get it to work. Can't you install it in the root directory instead of a subdirectory. Or perhaps at a different server?

cgan

cgan

Avatar: cgan

2009-09-14 23:11

Correction: I can now see that you don't have to type index.php anymore but clicking at some of the links in menu will try to find actual page in root directory. You must add sub-directory name /CleanInstall/ to get to the page.

cgan

beholder

Avatar: beholder

2009-09-15 04:39

Ann: somehow that server is even more screwed, now it seems to disregard any path information, thus sending different-than-mine or just plainly wrong path to the index.php file.

Try to do this, instead the previous edit try to make it look like this:
$this->aPages[$aExp[0]]['sLinkName'] = $_SERVER['SCRIPT_NAME'].'?'.$sLanguageUrl.change2Url( $this->aPages[$aExp[0]]['sName'] ).','.$aExp[0];

.. and report back.

cgan

Avatar: cgan

2009-09-15 07:55

beholder - do you think this could be solved by a htaccess file like Creeds answer in this topic?
http://opensolution.org/Quick.Cms/forum/?p=readTopic&nr=780&page=999

cgan

Pages:
Back to top
about us | contact