• Resolved emanuelsan

    (@emanuelsan)


    Hello to you and the plugin community,

    I’ve recently discovered the Plugin Organizer and it seems to have all the functionality required in order to optimize my multi-site WordPress installation.

    I’ll get right to the point:
    After installing the plugin, the Organizer showed up properly on my websites’ administrative panel. Now, after activating “Selective Plugin Loading” I get a lot of warnings in my header (on the public side of the website). I’ll paste them all here:

    Warning: Invalid argument supplied for foreach() in /nfs/c09/h03/mnt/136962/domains/*MY-DOMAIN-NAME*.com/html/wp-includes/query.php on line 1702

    Warning: Invalid argument supplied for foreach() in /nfs/c09/h03/mnt/136962/domains/*MY-DOMAIN-NAME*.com/html/wp-includes/query.php on line 1702

    Warning: Invalid argument supplied for foreach() in /nfs/c09/h03/mnt/136962/domains/*MY-DOMAIN-NAME*.com/html/wp-includes/query.php on line 1702

    Warning: Invalid argument supplied for foreach() in /nfs/c09/h03/mnt/136962/domains/*MY-DOMAIN-NAME*.com/html/wp-includes/query.php on line 1702

    Warning: Invalid argument supplied for foreach() in /nfs/c09/h03/mnt/136962/domains/*MY-DOMAIN-NAME*.com/html/wp-includes/query.php on line 1702

    Warning: Invalid argument supplied for foreach() in /nfs/c09/h03/mnt/136962/domains/*MY-DOMAIN-NAME*.com/html/wp-includes/query.php on line 1702

    Warning: Invalid argument supplied for foreach() in /nfs/c09/h03/mnt/136962/domains/*MY-DOMAIN-NAME*.com/html/wp-includes/query.php on line 1702

    Warning: Invalid argument supplied for foreach() in /nfs/c09/h03/mnt/136962/domains/*MY-DOMAIN-NAME*.com/html/wp-includes/query.php on line 1702

    Warning: Invalid argument supplied for foreach() in /nfs/c09/h03/mnt/136962/domains/*MY-DOMAIN-NAME*.com/html/wp-includes/query.php on line 1702

    Warning: Invalid argument supplied for foreach() in /nfs/c09/h03/mnt/136962/domains/*MY-DOMAIN-NAME*.com/html/wp-includes/query.php on line 1702

    Warning: session_start() [function.session-start]: Cannot send session cache limiter – headers already sent (output started at /nfs/c09/h03/mnt/136962/domains/*MY-DOMAIN-NAME*.com/html/wp-includes/query.php:1702) in /nfs/c09/h03/mnt/136962/domains/*MY-DOMAIN-NAME*.com/html/wp-content/plugins/bwp-recaptcha/includes/class-bwp-recaptcha.php on line 170

    I apologize for stripping out my domain name but the website is currently under development and I was not given permission to make it public yet.

    Now, looking at the very last Warning, it brings something up about the BWP reCaptcha plugin. I’m assuming there’s something wrong with that.

    I’m running the 3.0.4 version of the Plugin Organizer. I would appreciate any indication as to what I should do to make these warning disappear.

    You are truly free to request any other additional information.

    Thank you in advance!
    Emanuel

    https://www.ads-software.com/extend/plugins/plugin-organizer/

Viewing 15 replies - 1 through 15 (of 18 total)
  • Plugin Author Jeff Sterup

    (@foomagoo)

    That error comes from $GLOBALS[‘wp_taxonomies’] not being set. When I print that to the screen on my install at the top of the disable_plugins function of PluginOrganizerMU it is set. I have tried this on 3.5.1 and 3.5.2. Single and multisite.

    Plugin Author Jeff Sterup

    (@foomagoo)

    If you delete the MU plugin from the mu-plugins folder do you still get this error? Can you modify the mu plugin file and add

    print_r($GLOBALS['wp_taxonomies']);
    die();

    to the code at line 29? Then tell me what you see when you load the page.

    Thread Starter emanuelsan

    (@emanuelsan)

    Thanks for the quick answer, it’s greatly appreciated!

    I did the following:

    I pasted the code you gave me in html/wp-content/mu-plugins/PluginOrganizerMU.class.php.

    Not sure if this is where you wanted that code to go but the resulting code looked like this:

    [...]
    function disable_plugins($pluginList) {
    global $wpdb, $pagenow;
    $newPluginList = array();
    print_r($GLOBALS['wp_taxonomies']);
    die();
    [...]

    The result of this was that the website went blank. Nothing was displayed.

    I removed the following file: html/wp-content/mu-plugins/PluginOrganizerMU.class.php and the errors went away. On the Plugin Organizer settings page the Enabled radio button is still selected but I now get the following RED message on that page:

    You are missing the MU Plugin. Please use the tool provided on the settings page to move the plugin into place or manually copy /nfs/c09/h03/mnt/136962/domains/***.com/html/wp-content/plugins/plugin-organizer/lib/PluginOrganizerMU.class.php to /nfs/c09/h03/mnt/136962/domains/***.com/html/wp-content/mu-plugins/PluginOrganizerMU.class.php. If you don’t do this the plugin will not work. This message will disappear when everything is correct.

    Please correct me if I did something wrong. Thanks!

    Plugin Author Jeff Sterup

    (@foomagoo)

    Nope thats what I wanted you to do. If you got a blank page then that variable isn’t getting set. I’m not sure why your $GLOBALS[‘wp_taxonomies’] variable isn’t getting set. I don’t see that in my installs.

    Thread Starter emanuelsan

    (@emanuelsan)

    Is there any way through which I might be able to set that variable manually?

    Plugin Author Jeff Sterup

    (@foomagoo)

    Are you running any other plugins in your mu-plugins folder?

    Thread Starter emanuelsan

    (@emanuelsan)

    Surprisingly, I am: s2-2o.php

    Thread Starter emanuelsan

    (@emanuelsan)

    It’s something one of my team members added while working on something related to the S2 plugin.

    I removed that file (s2-2o.php), I restored the original PluginOrganizerMU.class.php file in the mu-plugins folder and I still get the same error messages.

    Plugin Author Jeff Sterup

    (@foomagoo)

    That variable contains all of the taxonomies used on your site. Without it you wouldn’t have categories. I don’t know how your wordpress install is running without taxonomies.

    Thread Starter emanuelsan

    (@emanuelsan)

    So I verified the variable. I var_dumped it in page.php and it displayed a huge block of text representing what that variable contains. So I’m assuming that it is set.

    After that, I var_dumped it on line 29 where you told me before and I get a “NULL” displayed.

    Not sure if this is relevant information for you.

    Plugin Author Jeff Sterup

    (@foomagoo)

    It certainly is and thank you for walking through it with me. I will have to track down where that is set to figure out why you don’t have it. You haven’t changed any of the core code have you?

    Thread Starter emanuelsan

    (@emanuelsan)

    Nope. I installed the plugin for the first time today and I never touched the code in it.

    Plugin Author Jeff Sterup

    (@foomagoo)

    No I meant the wordpress core.

    Thread Starter emanuelsan

    (@emanuelsan)

    Unfortunately I can’t be sure of that. I started working on this website after some other programmer messed around with it. Realistically, I think some files have been tampered with.

    Plugin Author Jeff Sterup

    (@foomagoo)

    Upgrade to version 3.0.5. I set $GLOBALS[‘wp_taxonomies’] to an empty array now if it isn’t set.

Viewing 15 replies - 1 through 15 (of 18 total)
  • The topic ‘Warnings with BWP reCaptcha’ is closed to new replies.