You are here:  » installation question

Support Forum



installation question

Submitted by Raxstar on Thu, 2011-04-28 15:48 in

hi

I have installed the PT script in my server and when i browse setup.php

it showed

Checking database connection...PASS
Checking database selection...PASS
Checking database tables...FAIL [click here to install tables]

and when i click the link above then it showed

Checking database connection...PASS

Checking database selection...PASS

Checking database tables...PASS

WARNING: $config_useRewrite is TRUE but .htaccess not found.

Setup Completed!

Click here to continue...

what is that warning, can you please tell me how to correct it.

cheers
raxstar

Submitted by support on Thu, 2011-04-28 15:59

Hi raxstar,

The warning message means that you have set $config_useRewrite = TRUE; when you created your config.php (line 10) but not yet created the associated required .htaccess file.

An example .htaccess file is included in the distribution as htaccess.txt - so all you need to do is upload that file to your installation, and then rename it on the server (use your FTP program to rename the file in the remote window) as .htaccess

However, please note that if you have installed Price Tapestry into a sub-directory, then you will need to modify .htaccess and change RewriteBase (line 5) to match the installation folder name, e.g.

RewriteBase /compaison/

(if Price Tapestry is installed into the /comparison/ sub-directory)

Cheers,
David.
--
PriceTapestry.com

Submitted by moparr360 on Wed, 2012-12-26 01:55

Hello David

I have installed pt on the main domain and want to install in a sub-directory. I am using a separate database for the sub-directory install. I have installed and registered a file. On the site for the sub-directory, the links link back to the main site.

The Category / Brand / Merchant link to:
www.example.com/factory-mopar-parts/brand and same with category and Merchant, but when you go there it displays the www.example.com site..

The products link to www.example.com/products

What needs to be done to do this correctly. Reading the posts I assumed it was only in the .htaccess file.

I have this for the rewrite rule

RewriteBase /factory-mopar-parts/

Thank You
Bobby

Submitted by support on Wed, 2012-12-26 09:27

Hi Bobby,

That sounds like it might be just $config_baseHREF at line 6 of config.php of the sub-directory installation. Make sure it matches RewriteBase in .htaccess e.g.

  $config_baseHREF = "/factory-mopar-parts/";

Cheers,
David.
--
PriceTapestry.com

Submitted by moparr360 on Wed, 2012-12-26 17:17

Hello David

Config.php matches the .htaccess file for the HREF.

Now it is doing something different. I installed a template and now it shows: featured products, but I dont have any featured products set up for this site yet. Also the links for the Brand Category Merchant link to the root site. When i manually type in the address for Brand Cat. and Merch, the page doesnt look right.

Can you look at the site and let me know what it may be

root: www.example.com

Sub: www.example.com/factory-mopar-parts - This is the one I am having the issues with.

Thank You
Bobby

Submitted by moparr360 on Wed, 2012-12-26 17:29

Hello David

Sorry, please disregard previous post, I am not sure what I did, but it is working correctly now.

Thank You
Bobby

Submitted by moparr360 on Wed, 2012-12-26 17:42

Hello David,

Sorry to be a pain, but I now know what i did, I mistakenly used the same config.php for the root and the sub, this was why the sub was working.

I have now changed the config.php for the root and the sub, and the sub-directory is not working correctly.

root ; http://example.com - works correct

Sub : http://example.com/factory-mopar-parts/ - not working correctly.

Seems the sub still wants to show the root

Thank You
Bobby

Submitted by support on Thu, 2012-12-27 10:27

Hello Bobby,

Most of the sub-directory installation I think is working OK now - the only problems I could find were in the left hand menu when viewing a category page. The menu at that point shows a search box, and brand A-Z, but both appear to be submitting to the top level installation, so that tells me that $config_baseHREF isn't being used in those sections of code.

I think that section of the page is generated by leftmenu.php in your template - search for any action='' attributes of the search form and check that appears as follows:

action='<?php print $config_baseHREF."search.php'

Where you have added the Brand A-Z code, check the that the code that builds each link also begins with $config_baseHREF e.g.

  print "<a href='".$config_baseHREF."brand/".tapestry_hyphenate($row["brand"])."/'>".$row["brand"]."</a>";

If you're still not sure, if you would like to email me your file containing the search form and brand list (although I notice the entries appear to be the same as your categories but that may be a separate issue or just down to the title) and I'll check it out for you..

Cheers,
David.
--
PriceTapestry.com