You are here:  » Dashes in urls

Support Forum



Dashes in urls

Submitted by serviendo on Mon, 2010-03-15 23:20 in

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");
?>

Submitted by support on Tue, 2010-03-16 10:16

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.

Submitted by serviendo on Tue, 2010-03-16 12:36

Great, many thanks David.