Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Forum: Plugins
    In reply to: Google Sitemaps Error
    Thread Starter dinhluong

    (@dinhluong)

    Oh, and I was just informed by a reader that after he posted a comment, he got this error message:

    “Warning: mysql_query() [function.mysql-query]: Can’t connect to local MySQL server through socket ‘/var/run/mysqld/mysqld.sock’ (2) in /home/.maricara/dinhluong/dinhternet.com/wp-content/plugins/popularity-contest.php on line 544

    Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in /home/.maricara/dinhluong/dinhternet.com/wp-content/plugins/popularity-contest.php on line 544
    Can’t connect to local MySQL server through socket ‘/var/run/mysqld/mysqld.sock’ (2) on line: 544″

    I still have both plugins activated, but Google Sitemaps Generator shouldn’t be using Popularity Contest anymore.

    Forum: Plugins
    In reply to: Google Sitemaps Error
    Thread Starter dinhluong

    (@dinhluong)

    I believe the conflict is with Popularity Contest. I changed the scoring system to Comment Count instead of Popularity Contest and no longer get the error.

    Thread Starter dinhluong

    (@dinhluong)

    Thanks for the links! I didn’t see these when I did a search.

    Actually, after reading over Podz’s solution, which is basically what I came up with (but a little cleaner than mine), I went back through all of my code and realized that I had commented out the include in the header file earlier because it gave me a strange error where it printed out the HTML of my page as if I was reading it in Notepad instead of displaying it nicely.

    That’s why my slvBanner call wasn’t working… no include, so all the JavaScript functions were undefined! Anyway, uncommented the include, and I got the weird printing-out-HTML error again. Looked carefully at where the include was supposed to be, and I realized that wp-last-visit.php was getting included all right, but it was just JavaScript in the middle of HTML, so I deleted lines 62-63 and inserted this:
    <script type=’text/javascript’ language=’Javascript’>
    between lines 64 and 65. Of course, that meant I also had to add </script> between lines 121 and 122.

    After that, everything seems to be working perfectly! I hope this helps someone else who wants to use this awesome plug-in, too!

Viewing 3 replies - 1 through 3 (of 3 total)