Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Weird Problem With Column_left.php


muttsnuts

Recommended Posts

Posted

I have added a search box to my header.php so I deleted the search box from the left hand column.

 

Only after a while did I figure out that I was no longer able to login. When attempting to log in I am taken directly to the advanced search screen with an error message.

 

If I replace the search box then all is well and I am able to login as normal.

 

I do not want the search box in the left hand column but how do I rid my self of it without destroying the login process?

Posted

then do tell what you have done to remove it, paste the code please.

 

you just have to remove the searchbox by setting it like:

	#  include(DIR_WS_BOXES . 'search.php');

If it does not work like that, the first thing I would check is if there are no un ended forms in your column left. (like for example the mailto friend form not properly ended with:

</form>

the next question would then be if when not removed, if the searchform actually works.

 

Since the searchbox is basicly not much more than a fixed generated plain html form, so this would be my guess.

Posted
then do tell what you have done to remove it, paste the code please.

 

you just have to remove the searchbox by setting it like:

	#  include(DIR_WS_BOXES . 'search.php');

If it does not work like that, the first thing I would check is if there are no un ended forms in your column left. (like for example the mailto friend form not properly ended with:

</form>

the next question would then be if when not removed, if the searchform actually works.

 

Since the searchbox is basicly not much more than a fixed generated plain html form, so this would be my guess.

I will post the contents of the column_left.php when I get home. Yes the search boxes works, the login box works untill I delete the search box code.

 

Thanks

Posted
also a link to your site could help.

then I can see the error occur.

Sorry, I can't add a link as it's on my computer which I set up as a development server to redesign my store before uploading.

 

This is the contents of my column_left.php file which at present works:

 

<?php

/*

$Id: column_left.php,v 1.15 2003/07/01 14:34:54 hpdl Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2003 osCommerce

 

Released under the GNU General Public License

*/

include(DIR_WS_BOXES . 'categories.php');

include(DIR_WS_BOXES . 'reviews.php');

include(DIR_WS_BOXES . 'search.php');

include(DIR_WS_BOXES . 'information.php');

?>

 

Now if I simply delete "include(DIR_WS_BOXES . 'search.php');" so as it looks like:

 

<?php

/*

$Id: column_left.php,v 1.15 2003/07/01 14:34:54 hpdl Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2003 osCommerce

 

Released under the GNU General Public License

*/

include(DIR_WS_BOXES . 'categories.php');

include(DIR_WS_BOXES . 'reviews.php');

include(DIR_WS_BOXES . 'information.php');

?>

 

then when I try to login I am taken to the advanced search page with an error

 

This is bugging me as I just can't figure it out.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...