Pages:

Search Bar

Ann

No avatar

2009-09-15 17:27

Good Morning guys,

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

to

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

no good :( I've left it up for you guys to take a peak at.

cgan, how would i test out a .htaccess file?

Ann Losito

cgan

Avatar: cgan

2009-09-15 17:55

Check in QC-folder at your server if there is such a file. But I'm not sure if a .htaccess file will help you.

cgan

beholder

Avatar: beholder

2009-09-15 18:19

perhaps it can, maybe htaccess is the root of the problems in the 1st place. But I'd hate to make assumptions.

beholder

Avatar: beholder

2009-09-15 18:22

Ann, instead of messing up with $_server, why not hardcode it in the 1st place:
$this->aPages[$aExp[0]]['sLinkName'] = 'CleanInstall/index.php'.'?'.$sLanguageUrl.change2Url( $this->aPages[$aExp[0]]['sName'] ).','.$aExp[0];

Please let me know what changed.

Ann

No avatar

2009-09-18 17:50

Hey cgan, I checked in each directory where QuickCart is set up and there are no .htaccess files.

beholder: So I've changed the line from
$this->aPages[$aExp[0]]['sLinkName'] = $_SERVER['SCRIPT_NAME'].'?'.$sLanguageUrl.change2Url( $this->aPages[$aExp[0]]['sName'] ).','.$aExp[0];

to

$this->aPages[$aExp[0]]['sLinkName'] = 'CleanInstall/index.php'.'?'.$sLanguageUrl.change2Url( $this->aPages[$aExp[0]]['sName'] ).','.$aExp[0];

Here's the fun part!

When you use that code it returns www.expressradio.com/CleanInstall/CleanInstall/index.php?search-results,19

so I went in and put

$this->aPages[$aExp[0]]['sLinkName'] = '/index.php'.'?'.$sLanguageUrl.change2Url( $this->aPages[$aExp[0]]['sName'] ).','.$aExp[0];

In hopes that it would continue to remain in that directory but instead it returns

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

then I tried maybe putting a '/' before Clean Install:

$this->aPages[$aExp[0]]['sLinkName'] = '/CleanInstall/index.php'.'?'.$sLanguageUrl.change2Url( $this->aPages[$aExp[0]]['sName'] ).','.$aExp[0];

and it returned:

http://www.expressradio.com/CleanInstall/&sPhrase=tent

Ann Losito

beholder

Avatar: beholder

2009-09-18 21:25

look, this could all be a problem for QC installed in a subdirectory CleanInstall.
If you do this modification for the QC that you have in your main directory, perhaps this would be gold:
$this->aPages[$aExp[0]]['sLinkName'] = '/index.php'.'?'.$sLanguageUrl.change2Url( $this->aPages[$aExp[0]]['sName'] ).','.$aExp[0];

Then you just have to go through shop ordering stuff, doing the administration, uploading pics, and while doing that just search for similar errors that you had in the beginning. Perhaps the script needs to change in other places too.

-----------

But your server is still way too f#&$^ed for normal operation, so you should definitely contact your server admin and report the original problem. Let me repeat it one more time, your server is not configured to accept requests with simple ?, like for example:
http://expressradio.com/?search-results,19&sPhrase=ddd
What only works on your server is this:
http://expressradio.com/index.php?search-results,19&sPhrase=ddd

Ann

No avatar

2009-09-21 16:52

beholder - thank you for helping me with this headache. I have told them about the problem that you pointed out and they really didn't understand what I was talking about so I'll bring it up to them again. I guess for now, I'll attempt moving everything to the main directory and pray it all runs smoothly.

Ann Losito

beholder

Avatar: beholder

2009-09-21 19:53

Let's hope The Matrix ('they') will sort this out eventually.

Ann

No avatar

2009-09-30 14:32

LoL Okay, well, I've switched not only hosting companies but I've switched from a Windows server that was supposed to be able to handle php to a Linux server.

I've deleted the Clean Install directory but I still have the Cop Shop directory.

I am happy to report that the searchbar is now working :)

Ann Losito

beholder

Avatar: beholder

2009-09-30 19:50

this is the correct answer for semi-retarded server setting that some 'providers' give their customers. Other please note the confident satisfaction Ann has after changing the hosting service to one with Linux server.

mirijan

Avatar: mirijan

2013-01-05 23:05

I deletaed my search page. I dont know haw to reover it. What do I have to do?
I use Quick cart pro 3.5

123456

Pages:
Back to top
about us | contact