Problems, need help? Have a tip or advice? Post it here.
2 posts Page 1 of 1
I recently downloaded PulseVote and I'm currently trying to add it to one of my pages already being managed by Couch.
But after successfully creating a separate DB for Pulse, and executing the page via UniServer localhost, i get this message
Code: Select all
Could not successfully run query: Table 'pulse.couch_templates' doesn't exist


Below are the snippets required to be added to your page in order to use PulseVote,
Code: Select all
include ("vote2/Pulse.vote.class.php");
$pulse = new Pulse();
$pulse->setFormat("{up} Like, {down} Dislike");
echo Pulse::css();
echo Pulse::javascript();

and
Code: Select all
echo $pulse->voteHTML($item_id);


the above are all in PHP so i added <cms:php> and </cms:php> accordingly
---
You live many times, but only ever remember your lives.length - 1
---
Image
Hi,

The problem is that you are using two separate databases and when the voting script does a 'mysql_select_db', it also ends up selecting the second database into Couch's connection.
Now when Couch runs a query, it looks for the tables in the wrong database and ergo the error.

That said, I had a look at the script and can tell you that it is vulnerable to both XSS as well as SQL injection exploits. I can only advise you to keep well away from it as it'll expose your server to hacking.

Thanks.
2 posts Page 1 of 1