Hi David,
I'm trying to set up a new site using PT. I've installed it in a sub-directory on my main site which has an add-on domain pointed to it. As I access the installation from the new domain name I left all the BASEHREF parms as /
Problem is I can search on categories, brand and merchant if I type them as a prefix into the search box but if I go to the merchant, category or brands pages and click on an item there it says the page doesn't exist. Can you suggest how I need to edit my rewrite rules to fix this ?
Thanks.
I tried both options - the one in the distribution works - I stupidly tried to access the categories.php script instead of using mydomain.co.uk/category/ which works fine. However I am now getting error messages in the admin panel when accessing it from the add-on domain rather than the main domain and the subfolder. (My config file uses the add-on domain when it references the site)
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/netpri/public_html/undies/includes/database.php on line 21
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/netpri/public_html/undies/includes/database.php on line 26
Warning: Cannot modify header information - headers already sent by (output started at /home/netpri/public_html/undies/includes/database.php:21) in /home/netpri/public_html/undies/admin/feeds_import.php on line 29
Is there something I need to changer to prevent this as I keep having to retype the url into the browser to get back to the admin home page after doing an import (which works incidentally.)
Thanks
Hello Jannii,
I'll also email you a debug version of database.php that will reveal the problem...
Cheers,
David.
I've run the debug version and it's telling me the productsmap table doesn't exist. Do you have the MySQL statement I can use to create it please ?
Thanks
Jan
I've found the definition for the productsmap table now, sorry to have bothered you.
I've created the productsmap table and I now don't get the warning messages and it goes back to the Admin Home Page after it completes an import as expected, but none of my Affiliate Window feeds show any products imported. Wondering if they have a problem with their feeds again. I used version 2 XML feeds so I'm going to try downloading version 1 instead and see if that helps.
Hello Janni,
If you are installed into a sub-directory, it might be necessary to modify RewriteBase in .htaccess as well as $config_baseHREF.
For example, if you have installed the script into a sub-directory called "shopping", then in .htaccess you would have:
RewriteBase /shopping/
(it is / as it stands in the distrubution)
However, i'm not sure about this because of the way you have it setup, as you mention, with a separate domain pointing to that directory. If the above doesn't help if you could email me a link to the site i'll take a look and see if I can tell what's going on...
Cheers,
David.