Hi David
I've just installed the new version of PT in a new location (an addon domain). The standalone version was a breeze to get working as normal, but I'm having trouble getting any prices to display using pricesExternal.php in WordPress.
There is no error, no 404, just blankness! Could it be anything to do with the hyphenated domain?
<?php
$common_baseHREF = "http://www.my-domain-name.co.uk/shopping/";
$common_path = "/home/sitename/public_html/my-domain-name/shopping/";
$_GET["q"] = "Panasonic Breadmaker";
require($common_path."pricesExternal.php");
?>
Hi,
I can't imagine the hyphens causing any problem. The main reason why pricesExternal.php would not show anything is if there is no product in the database with the exact name "Panasonic Breadmaker"; but there may be something more subtle going on; and in addition WordPress may be suppressing errors.
As a first test; try browsing directly to
http://www.my-domain-name.co.uk/shopping/pricesExternal.php?q=Panasonic+Breadmaker
If that works fine (no error messages); one possibility is that there is a database conflict between WordPress and Price Tapestry. To work around this; look for the following code on line 14 of includes/database.php:
$link = @mysql_connect($config_databaseServer,$config_databaseUsername,$config_databasePassword);
...and REPLACE with:
$link = @mysql_connect($config_databaseServer,$config_databaseUsername,$config_databasePassword,TRUE);
Hope this helps!
Cheers,
David.