Ajay's Creations Support Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

Ajax Edit Comments is now subscription based. All support questions need to be directed to http://www.ajaxeditcomments.com/forums/

Pages: [1] 2   Go Down

Author Topic: my where did they go does not work  (Read 672 times)

ddeconin

  • Newbie
  • *
  • Offline Offline
  • Posts: 14
    • View Profile
    • Verteleens
my where did they go does not work
« on: January 16, 2010, 02:45:07 PM »

On my new blog layout on http://dev.verteleens.be where go does not work. It does not even collect the where go info in the Edit post screen. (I have None everywhere). So something is blocking where go from collecting the info.
Any hints ?

I have where did they go up and running on my main blog for the moment
http://www.verteleens.be. For the moment I have it set up so that it does not show the results yet, but I see the Where go for each post filled in.
Logged

Ajay

  • Administrator
  • Hero Member
  • *****
  • Offline Offline
  • Posts: 596
    • View Profile
    • Ajay - On the Road called Life
Re: my where did they go does not work
« Reply #1 on: January 17, 2010, 04:56:10 PM »

I released some updates yesterday, are you using 1.4.1?
Logged

ddeconin

  • Newbie
  • *
  • Offline Offline
  • Posts: 14
    • View Profile
    • Verteleens
Re: my where did they go does not work
« Reply #2 on: February 27, 2010, 01:46:44 PM »

Im running 1.4.2 in the meantime and it works now ... sort of.

Sometimes I just see the title even though the admin tab shows 5 posts for where go like here: http://www.verteleens.be/2010/02/22/wie-moet-volgens-u-de-boekenleeuw-en-boekenpauw-krijgen/

Any hints ?

I am running W3 Total cache on www.verteleens.be , but I have the same results on  my dev blog where I disabled W3TC.

For example
http://dev.verteleens.be/2009/12/16/meer-kate-dicamillo/ has 2 entries in where go, but none show up.

Any hints on how I can debug this ?
Logged

Ajay

  • Administrator
  • Hero Member
  • *****
  • Offline Offline
  • Posts: 596
    • View Profile
    • Ajay - On the Road called Life
Re: my where did they go does not work
« Reply #3 on: February 27, 2010, 08:39:18 PM »

Those two IDs you see in the Edit page. Could they be pages and not posts and you have the display only posts and not pages enabled
Logged

ddeconin

  • Newbie
  • *
  • Offline Offline
  • Posts: 14
    • View Profile
    • Verteleens
Re: my where did they go does not work
« Reply #4 on: February 27, 2010, 09:54:06 PM »

You are right, its indeed the case. :-[
I hadnt seen that one. I took a look in the code and ideally the ald_wherego should only display the title after the first post  (excluding pages if needed) has been found, but that would mean adding an if check on the first post count to display the title first. I guess ill  just add the pages then i think..

Thx for the quick help !

D.
Logged

ddeconin

  • Newbie
  • *
  • Offline Offline
  • Posts: 14
    • View Profile
    • Verteleens
Re: my where did they go does not work
« Reply #5 on: February 28, 2010, 04:22:30 AM »

Hi I looked somewhat further and I still have issues. I find that when I go from a page this gets recorded, but when I go from a post to another post nothing gets added anymore.
Is there a way I can 'log' what goes on inside the plugin so that I can see where things go wrong ?
Any other things I can do ?
Logged

ddeconin

  • Newbie
  • *
  • Offline Offline
  • Posts: 14
    • View Profile
    • Verteleens
Re: my where did they go does not work
« Reply #6 on: February 28, 2010, 12:05:13 PM »

Ok, now I disabled all other plugins except for where go. and still I only get where go hits if I go from a post to a page and not when I go from a post to another post :-(. Im running wordpress 2.9.2.
Logged

ddeconin

  • Newbie
  • *
  • Offline Offline
  • Posts: 14
    • View Profile
    • Verteleens
Re: my where did they go does not work
« Reply #7 on: February 28, 2010, 01:26:49 PM »

I edited the plugin code somewhat to try things on my dev blog and it seems that I never hit is_single in my site  :(. What could be wrong ?

in the add_wheregocount  I added the following code

   $myFile = "testFile.txt";
   $fh = fopen($myFile, 'a') or die("can't open file");
   if (is_single()) {
      $stringData = "single\n";
      fwrite($fh, $stringData);
   }
   elseif (is_page()) {
      $stringData = "page\n";
      fwrite($fh, $stringData);
   }
   else {
      $stringData = "somethingelse\n";
      fwrite($fh, $stringData);
   }
   $stringData = $whergo_id."\n";
   fwrite($fh, $stringData);
   fclose($fh);

and the result of browsing trough the site is

somethingelse
1389
somethingelse

somethingelse
1378
somethingelse
889
somethingelse
1351
page
694
somethingelse
1319
somethingelse

somethingelse
1303
somethingelse
1061
somethingelse

somethingelse
428




Logged

Ajay

  • Administrator
  • Hero Member
  • *****
  • Offline Offline
  • Posts: 596
    • View Profile
    • Ajay - On the Road called Life
Re: my where did they go does not work
« Reply #8 on: February 28, 2010, 04:54:46 PM »

Please check if your single.php has the wp_footer() call. Your page.php definitely has this.
Logged

ddeconin

  • Newbie
  • *
  • Offline Offline
  • Posts: 14
    • View Profile
    • Verteleens
Re: my where did they go does not work
« Reply #9 on: February 28, 2010, 10:01:47 PM »

Im digging  deeper in my theme code. Turns out that at some point in the sidebar.php the conditional tag is no longer true  for is_single() but for is_category() because it shows some excerpts of categories in there. So when I reach the footer is_single() never returns true and so single views never are logged in your plugin.
So Im opening a ticket with my theme vendor.
Thx for the help & for the great plugins.
D.
Logged

Ajay

  • Administrator
  • Hero Member
  • *****
  • Offline Offline
  • Posts: 596
    • View Profile
    • Ajay - On the Road called Life
Re: my where did they go does not work
« Reply #10 on: February 28, 2010, 10:23:46 PM »

Do let me know if you come up with a solution for this
Logged

ddeconin

  • Newbie
  • *
  • Offline Offline
  • Posts: 14
    • View Profile
    • Verteleens
Re: my where did they go does not work
« Reply #11 on: March 01, 2010, 09:01:48 PM »

I have opened a ticket with the vendor of my theme. But I was wondering if this could be an issue for all blogs having a loop inside the sidebar? I would assume that all of these end up with is_single()  being false by the time you reach wp_footer(), no ?
Logged

Ajay

  • Administrator
  • Hero Member
  • *****
  • Offline Offline
  • Posts: 596
    • View Profile
    • Ajay - On the Road called Life
Re: my where did they go does not work
« Reply #12 on: March 01, 2010, 10:48:41 PM »

I believe this could be the case.

Can you send me the snippet of code that powers this loop?
Logged

ddeconin

  • Newbie
  • *
  • Offline Offline
  • Posts: 14
    • View Profile
    • Verteleens
Re: my where did they go does not work with my sidebar with a loop
« Reply #13 on: March 02, 2010, 03:32:32 AM »

Here are the code pieces I have running on dev.verteleens.be

single.php , sidebar.php, footer.php

in each of them, I added some code in some places , like below to output the result of is_single() and is_category() on screen. When the loop inside the sidebar starts, the output changes from single to category and stays that way.

Logged

ddeconin

  • Newbie
  • *
  • Offline Offline
  • Posts: 14
    • View Profile
    • Verteleens
Re: my where did they go does not work
« Reply #14 on: March 04, 2010, 03:21:56 AM »

The loop code in my sidebar that seems to cause this is set up by calling
query_posts(array(
’showposts’ => 1,
‘cat’ => $cp_pC,
‘category__not_in’ => array($ar_headline,$ar_featured),
‘post__not_in’ => $ar_ID,
)); ?>

I already tried putting $temp_query = clone $wp_query ; in front of it , and
$wp_query = clone $temp_query; after I finished using the loop to get he original query back, but it doesnt seem to work.

I cant figure out why it doesn’t work.   :(
Logged
Pages: [1] 2   Go Up