Not logged in. · Lost password · Register
Forum: Overview Bugs / Fehler RSS
problems with WordPress 2.7
Page:  previous  1  2 
Morty (Administrator) #16
User title: Author
Member since Jun 2007 · 928 posts
Group memberships: Administratoren, Mitglieder
Show profile · Link to this post
In reply to post ID 1478
When using the attached file a text should above the Emails outputting the SQL-Statement. Please post or send it to me. Especially versions that are working and those which are not.
The author has attached one file to this post:
admin_list_email.php | Save   10.2 kBytes, downloaded 18 times
mikelyon #17
Member since Dec 2008 · 24 posts
Group memberships: Mitglieder
Show profile · Link to this post
Post Notification comes up on "Info" screen.

"List addresses" link is clicked, page appears 'normally' with first 50 emails properly listed -- URL appears to be:
http://ska.org/news/wp-admin/admin.php?page=post_notification/admin.php&action=list_email
and your debug line is displayed::
The SQL: ||SELECT email_addr, gets_mail, last_modified, date_subscribed, id, act_code, subscribe_ip FROM wp_post_notification_emails WHERE email_addr LIKE '%' AND gets_mail = 1 ORDER BY id ASC LIMIT 0, 50||

Clicking "-->>" from that screen returns "No entries found!" and URL appears to be:
http://ska.org/news/wp-admin/admin.php?page=post_notification/admin.php&action=list_email
and NO debug line is displayed

-- Mike
mikelyon #18
Member since Dec 2008 · 24 posts
Group memberships: Mitglieder
Show profile · Link to this post
Morty -- I've copied your debug line after line 169 and tried again...

After "List addresses" link is clicked, page appears 'normally' with first 50 emails properly listed.  Your DEBUG LINE is:
The SQL: ||SELECT email_addr, gets_mail, last_modified, date_subscribed, id, act_code, subscribe_ip FROM wp_post_notification_emails WHERE email_addr LIKE '%' AND gets_mail = 1 ORDER BY id ASC LIMIT 0, 50||

Clicking "-->>" gives this debug line after "No entries found!":
The SQL: ||SELECT email_addr, gets_mail, last_modified, date_subscribed, id, act_code, subscribe_ip FROM wp_post_notification_emails WHERE email_addr LIKE '%' AND gets_mail = 1 ORDER BY id ASC LIMIT 50, 50||

Clicking "-->>" a second time gives this debug line after "No entries found!":
The SQL: ||SELECT email_addr, gets_mail, last_modified, date_subscribed, id, act_code, subscribe_ip FROM wp_post_notification_emails WHERE email_addr LIKE '%' AND gets_mail = 1 ORDER BY id ASC LIMIT 100, 50||

-- Mike
mikelyon #19
Member since Dec 2008 · 24 posts
Group memberships: Mitglieder
Show profile · Link to this post
OK, Morty -- sorry about that...  I've changed my new line 170 to:
echo "<p> The SQL:                ||SELECT email_addr, gets_mail, last_modified, date_subscribed, e.id AS id, act_code, subscribe_ip FROM $t_emails e, $t_cats c WHERE email_addr LIKE '$email' $wadd AND e.id = c.id AND c.cat_id IN ($sel_cats) GROUP BY e.id ORDER BY $sortsrt LIMIT $start, $limit||</p>";

Now, after bringing up first (successful) List addresses and THEN clicking "-->>" I get this (from line 170 above):
The SQL: ||SELECT email_addr, gets_mail, last_modified, date_subscribed, e.id AS id, act_code, subscribe_ip FROM wp_post_notification_emails e, wp_post_notification_cats c WHERE email_addr LIKE '%' AND gets_mail = 1 AND e.id = c.id AND c.cat_id IN (3,70,64,15,25) GROUP BY e.id ORDER BY id ASC LIMIT 50, 50||

Maybe that will help? 

So my lines 160-172 currently look like:
            echo "<p> The SQL:                ||SELECT email_addr, gets_mail, last_modified, date_subscribed, id, act_code, subscribe_ip FROM $t_emails  WHERE email_addr LIKE '$email' $wadd ORDER BY $sortsrt LIMIT $start, $limit||</p>";
            $emails = $wpdb->get_results("SELECT email_addr, gets_mail, last_modified, date_subscribed, id, act_code, subscribe_ip FROM $t_emails  WHERE email_addr LIKE '$email' $wadd ORDER BY $sortsrt LIMIT $start, $limit ");
            $total = $wpdb->get_var("SELECT COUNT(*) FROM $t_emails  WHERE email_addr LIKE '$email' $wadd");
        } else {
            $emails = $wpdb->get_results("SELECT email_addr, gets_mail, last_modified, date_subscribed, e.id AS id, act_code, subscribe_ip FROM $t_emails e, $t_cats c WHERE email_addr LIKE '$email' $wadd AND e.id = c.id AND c.cat_id IN ($sel_cats) GROUP BY e.id ORDER BY $sortsrt LIMIT $start, $limit ");
            $total = $wpdb->get_var("SELECT COUNT(e.id)  FROM $t_emails e, $t_cats c WHERE email_addr LIKE '$email' $wadd AND e.id = c.id AND c.cat_id IN ($sel_cats)");
        }
       
        if (!$emails) {
            echo '<p class="error">' . __('No entries found!', 'post_notification') . '</p>';
            echo "<p> The SQL:                ||SELECT email_addr, gets_mail, last_modified, date_subscribed, e.id AS id, act_code, subscribe_ip FROM $t_emails e, $t_cats c WHERE email_addr LIKE '$email' $wadd AND e.id = c.id AND c.cat_id IN ($sel_cats) GROUP BY e.id ORDER BY $sortsrt LIMIT $start, $limit||</p>";
            echo '</div>';
            return;
Morty (Administrator) #20
User title: Author
Member since Jun 2007 · 928 posts
Group memberships: Administratoren, Mitglieder
Show profile · Link to this post
Looks like you've got some categories selected. Try unselecting them.
mikelyon #21
Member since Dec 2008 · 24 posts
Group memberships: Mitglieder
Show profile · Link to this post
List addresses 'wakes up' with all categories which 'own' sub-categories SELECTED

Unselecting all categories (is there an easy way to do that?  I am first clicking the top selected category to select only one, then ctrl-clicking it to un-select it) DOES list the next 50, Morty...  AND it re-selects the same "categories which own sub-categories") so navigation THIS way is going to be...  Well very painful and difficult!

The SQL: ||SELECT email_addr, gets_mail, last_modified, date_subscribed, id, act_code, subscribe_ip FROM wp_post_notification_emails WHERE email_addr LIKE '%' AND gets_mail = 1 ORDER BY id ASC LIMIT 50, 50||

But since ALL emails in our list are automatically registered to ALL categories (and new categories automatically added to all emails), why should this even matter? AND...  WHY should the top-categories (where sub-categories are linked) be selected at all???

Merry Christmas, Happy New Year, Thanks so much!

Mike
Morty (Administrator) #22
User title: Author
Member since Jun 2007 · 928 posts
Group memberships: Administratoren, Mitglieder
Show profile · Link to this post
This is an logic-issue. While a post in a sub-category gets send to people having subscribed the super-category this isn't the case for the search-option.
Unselecting is done using the ctr-key. When loading the page none of the categories should be selected, which will list all. Depending on your browser and/or installed add-ons a different bahavior might be seen.
mikelyon #23
Member since Dec 2008 · 24 posts
Group memberships: Mitglieder
Show profile · Link to this post
Subject: categories selected when loading page
Hi, Morty -- Post Notification seems to be completely functional now with exception that some categories are always SELECTED when loading the page -- the SELECTED categories are all 'super-categories' (ie: EVERY category which 'owns' one or more sub-categories is already SELECTED when the List addresses page first appears and, after DE-SELECTing the selected categories and clicking "-->>" the same 'super-categories' are SELECTED again when the page loads...

See screen shot at http://ska.org/email/images/post_notification_problem.jpg

Tested with Internet Explorer 7, FireFox 3, Safari -- ALL three browsers exhibit same behavior -- this is a DIFFERENT (and bad) behavior than with WordPress prior to 2.7 which all behaved 'nicely' -- 2.7 does NOT behave nicely with Post Notification in this respect...

I THINK this is very likely a BUG in Post Notification which ought to be repaired -- not a fatal flaw, but it makes it a PAIN to navigate the emails!!!

I have put in a request, by the way, for our organization to send you a donation -- I hope that will be approved -- you've done a spectacular job on the plug-in and have given excellent support along the way!

Best for the New Year,

Mike
Morty (Administrator) #24
User title: Author
Member since Jun 2007 · 928 posts
Group memberships: Administratoren, Mitglieder
Show profile · Link to this post
Hi Mike, as I already said: I can't reproduce this behaviour on my installation, but I'll try to have another look at the code later today.
Morty (Administrator) #25
User title: Author
Member since Jun 2007 · 928 posts
Group memberships: Administratoren, Mitglieder
Show profile · Link to this post
The information with the super-cats was the missing bit of information. Once again the WP-guys changed their API. *annoyed* Not much, but enough to confuse PN. Please check whether the attached version works. I'll then release a new version.
The author has attached one file to this post:
admin_list_email.php | Save   10 kBytes, downloaded 25 times
mikelyon #26
Member since Dec 2008 · 24 posts
Group memberships: Mitglieder
Show profile · Link to this post
Morty -- new admin_list_email.php works PERFECTLY now as far as I can tell!

THANK YOU * 1000 !!!   :cool:  :blush:  :-p  :-D

Best always,

Mike
mikelyon #27
Member since Dec 2008 · 24 posts
Group memberships: Mitglieder
Show profile · Link to this post
Just installed the new (1/3/2009) Post Notification ver 1.2.28

All is working just as it should -- THANKS again and again, Morty!
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please note the verification code from the picture into the text field next to it.
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Page:  previous  1  2 
Go to forum
This board is powered by the Unclassified NewsBoard software, 1.6.4, © 2003-7 by Yves Goergen
Page created in 473.1 ms (274.2 ms) · 107 database queries in 62.7 ms
Current time: 2010-09-07, 03:10:04 (UTC +01:00)