Support » Plugin: Proper Network Activation » [Plugin: Proper Network Activation] Bug with the AJAX-Response-SQL

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author scribu

    (@scribu)

    The query orders the blogs by registration date, yes, but it gets all them, 5 at a time.

    The only one it excludes is the main blog, under the assumption that the activation hook is automatically run there. Maybe that’s not the case?

    Hi scribu,

    maybe I wasn’t precise enough.
    It took me some time to get behind this bug. But really: It is your SQL statement, especially the order by clause. It does not see more than one blog entry with an identical registration timestamp.

    Additionally after long search I found a big logic bug with the deactivation:
    There is no way to call the deactivating functions of a plugin in an ajax call AFTER deactivating the plugin network wide. The plugin is then simply no more in the list to be included in wp-settings.
    Maybe it might work to do the network wide deactivation on ‘done’-status and skip it before. I’m testing around and your ideas are welcome.

    Anyway, I appreciate your work. Thanks a lot!

    Regards, Markus

    Plugin Author scribu

    (@scribu)

    But really: It is your SQL statement, especially the order by clause. It does not see more than one blog entry with an identical registration timestamp.

    Then that means there’s a bug in MySQL itself. The ORDER BY statement shouldn’t have any effect on which rows are returned, just on the order.

    Which version of MySQL are you running?

    There is no way to call the deactivating functions of a plugin in an ajax call AFTER deactivating the plugin network wide.

    Huh; I’ll look into that.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: Proper Network Activation] Bug with the AJAX-Response-SQL’ is closed to new replies.