Hi,
It seems that the page can jump when i click on the visit store. How to solve this problem.
thanks
Hi David
Previously it works. But now is not. mysite is {link saved} - when click on any of the products it won't jump. only blank page.
thanks
jack
Hi,
I notice that you have added the PPC tracking modification. Did this coincide with jump.php not working?
Can you post your modified jump.php so that I can check, and then show you what debug code to add...
Cheers,
David.
<?php
require("includes/common.php");
$sql = "SELECT merchant,buy_url FROM `".$config_databaseTablePrefix."products` WHERE id=".database_safe($_GET["id"]);
database_querySelect($sql,$rows);
$product = $rows[0];
$sql = "UPDATE `".$config_databaseTablePrefix."feeds` SET clicks=clicks+1 WHERE merchant = '".$product["merchant"]."'";
database_queryModify($sql,$insertID);
$url = $product["buy_url"];
$url = str_replace("{keyword}",$_GET["keyword"],$url);
header("Location: ".$url);
exit();
?>
Hi,
It looks OK. Can you please disable tracking so we can check that the Buy URLs are correct, so in config.php:
$config_useTracking = false;
Cheers,
David.
Hi David,
Done. It works now. Is it got to do with google sitemap. cos it seems got error when creating the sitemap.
thanks
jack
Thanks, Jack.
It should be affected by using the sitemap codes. The Buy URLs look OK as well, so if you now turn it back on:
$config_useTracking = true;
...and then; can you check in your /admin/ page, look at the "Clicks" column, and see if the clicks is increased each time you try, even though it does not redirect.
This will tell us if it is a database or a redirect problem...
Thanks,
David.
Hi David,
I turn it back on. Is not working now. I can't login to admin page. I can't remember my login id & password. Wonder how to reset it.
thanks
jack
Hello Jack,
The admin username and password will be set by your own mechanism (Price Tapestry is not password protected by default). Most users turn on protection using their hosting control panel, so you might be able to do this...?
Cheers,
David.
Hi David,
The page click increased but cannot jump when i turn it on.
cheers,
jack
Hi,
For some reason the header() line does not seem to be sending the correct redirection headers. Could you try the following test script and see if it redirects to example.com correctly:
test.php
<?php
header("Location: http://www.example.com/");
exit();
?>
Cheers,
David.
Ok - can you change it to this:
<?php
require("includes/common.php");
header("Location: http://www.example.com/");
exit();
?>
Now if this DOESN'T work, then my guess is that you have gone some white space on the end of your config.php file. The file must end immediately after the closing ?> - so one thing to do is open config.php into your text editor, and go to the end and delete everything after the ?>
Cheers,
David.
Hi again,
Just trying the include files on your site I have found the one that has got the white space. It is not in config.php, it is on the end of includes/tapestry.php
As above, open this file into a text editor and delete everything before and after the PHP tags. That should fix it!!
Cheers,
David.
Hi David
Not working. config.php file ok. done. also the same. i tried using back the original jump.php and when i click on the page it still shows the keyword links url.
jack
Hi Jack,
Did you see my last comment above - I think it is your includes/tapestry.php that has got the white space outside of the PHP tags in it. Just remove them and I think you should be fine....
Cheers,
David.
Hi,
It's still got an output - now only 1 byte (it was 3)... check both the beginning and the end of the file...
Cheers,
David.
Hi David,
It works ok. Thank you so much. You are genius.
Cheers,
Jack
Hello,
Firstly - I assume that you have got tracking enabled in config.php:
$config_useTracking = true;
If this is the case, what actually happens when you click a link?
Can you email me a link to your site so I can take a look for you? Reply to your registration code or forum registration email is the easiest way to get me...
Cheers,
David.