• ResolvedPlugin Author AccountClosed

    (@wistudatbe)


    Easy to use categories / tags for pages, the same as it is for posts!
    With settings page to enable/disable this feature.
    Regards, Danny

Viewing 6 replies - 1 through 6 (of 6 total)
  • Version 2.0.8 seems to have introduced an incompatibility with the plugin wpDirAuth, which complains that another plugin (Category to Pages WUD identified by disabling each plugin independently) already redefines the functions wp_authenticate and wp_setcookie. Which of course, it does not (at least directly). But I saw that there is an include on pluggable.php, I suspect that this is the problem (even thought the include is protected by a test). In my view (but I’m not a wordpress developer), pluggable should never be included by a plugin since its role is to be included last after all plugins have been loaded.

    As I need the LDAP connexion, that only choice is to disable “Category to Pages WUD”.

    @papadop, you are correct in that pluggable.php should not be included/required from within a plugin.

    In the case of this plugin, it’s being loaded if the function wp_get_current_user isn’t defined, but I’m not seeing anywhere in the plugin that this function is called. The only function I can find in this plugin that is defined in pluggable.php is wp_verify_nonce on line 127. However, that function call is enclosed within the function cattopage_wud_settings_page which is called from the add_menu_page function at line 98 which is called from the function cattopage_wud_create_menu which is attached to the admin_menu hook at line 34. So, I’m not sure why @danny WUD would have included since by the time admin_menu hook is called, all plugins are already loaded.

    HOWEVER, the concept behind pluggable.php is being phased out in favor of filters/actions. wpDirAuth has been around since v2.2.2 of WordPress, and it needs to updated to utilize the filter for wp_authenticate, which would prevent this type of conflict. It’ on my roadmap, just gotta find the time. ??

    Plugin Author AccountClosed

    (@wistudatbe)

    Hi @papadop & @gilzow
    Thank you both for the clear description about this issue.
    It’s my mistake to leave the pluggable.php call inside my script …
    Before the final release, i needed this line and forgot to remove it ??

    I will prepare this evening an new release.
    Sorry for the inconvenience it caused!!!

    Thanks again for your help!

    Regards, Danny

    Plugin Author AccountClosed

    (@wistudatbe)

    Hi @papadop & @gilzow

    New version released
    = 2.0.9 =
    * To enable short code in “widgets”, use our plugin “Shortcode Widget WUD”.
    * Removed [wudsearch], there “Shortcode Widget WUD” haves a similar function.
    * Removed call to pluggable php, which caused errors.

    Thanks again for your help!

    Regards, Danny

    Thank you very much to both of you for the analysis and the quick fix.

    Regards,

    Theo.

    Plugin Author AccountClosed

    (@wistudatbe)

    Hi Theo,

    Your welcome!
    A quick fix is necessary if some error occurs.
    Enjoy our plugin(s).

    Regards, Danny

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Category to Pages WUD’ is closed to new replies.