You are here:  » wordpress - link widget affected by pt script


wordpress - link widget affected by pt script

Submitted by tisbris on Sat, 2011-01-29 10:30 in

Hi David

I have tried to find the solution on many wordpress forums, but they all together point that this issue is related to this external.php.

My problem is that I cannot get a default Link Widget to show on a page, where i have this external.php added.

I have tried with a wordpress default theme, still the same.
All other widgets like calender, archive and more is listed correctly, but the Link Widget (Blogroll) is missing on the pages where i have this pricetapestry script running.

Do you have any idea to what coursing this issue?

thank you:o)

//Brian

Submitted by support on Sat, 2011-01-29 11:41

Hi Brian,

It's possible a database conflict - the first thing i'd try is to modify includes/database.php in your Price Tapestry installation, look for the following code at line 14:

    $link = @mysql_connect($config_databaseServer,$config_databaseUsername,$config_databasePassword);

...and REPLACE with:

    $link = @mysql_connect($config_databaseServer,$config_databaseUsername,$config_databasePassword,TRUE);

This will make sure that a new database connection is made instead of overwriting one that may already exist...

Hope this helps!

Cheers,
David.
--
PriceTapestry.com

Submitted by tisbris on Sat, 2011-01-29 12:27

Hi David

Thank you again for helping me out :o)

this did the trick for me, but the fix has one downside - if you don't have a pricetapestry product link on a wordpress page, then the link widget is missing once again - but i won't have this problem, so this fix is okay to me.

have a nice weekend

//Brian