• Hi,

    I just installed and am loving redirection for making this process so easy. But, I’m concerned that on every redirect as well as on the top of the main plug in page, this warning is displayed. I downloaded and installed it this past week, so I’m doubting tha it’s a version issue and I haven’t seen others with this problem. I’m a novice (sorry!) so layman’s instructions would be very much appreciated!

    Warning: Missing argument 2 for wpdb::prepare(), called in /home/rosalind/public_html/wp-content/plugins/redirection/models/group.php on line 70 and defined in /home/rosalind/public_html/wp-includes/wp-db.php on line 990

    Thank you and best,

    Kate

    https://www.ads-software.com/extend/plugins/redirection/

Viewing 14 replies - 1 through 14 (of 14 total)
  • I’m experiencing the same issue stated above with the latest WordPress and version of this plugin

    I too have the issue, I have found this if it helps:

    PHP Warning: Missing argument 2 for wpdb::prepare()

    Not a big deal if you’ve read the above post, but some quick action from Urban Giraffe will be appreciated.

    @johnny5, if you’re tuned in…

    Same thing here. But I wonder.

    Have you folks seen (on your Dashboard’s side panel)
    ‘Redirect Options’ tab on the side disappear as well?

    I resolved it by passing null as second argument…

    $rows = $wpdb->get_results( $wpdb->prepare( “SELECT {$wpdb->prefix}redirection_modules.name AS module_name,{$wpdb->prefix}redirection_groups.name AS group_name,{$wpdb->prefix}redirection_groups.id FROM {$wpdb->prefix}redirection_groups INNER JOIN {$wpdb->prefix}redirection_modules ON {$wpdb->prefix}redirection_modules.id={$wpdb->prefix}redirection_groups.module_id ORDER BY {$wpdb->prefix}redirection_modules.name,{$wpdb->prefix}redirection_groups.position”, null ) );

    I am having the same problem.

    shmox,

    Thanks! Tried that and sure enough it got rid of the error!

    Unfortunately my main ‘Redirect Options’ tab on the side is still missing but heck, at least the error’s no longer there.

    May I ask shmox if you still see the ‘Redirect Options’ tab on the side?
    For anyone curious, it’s the one which brings up the “Quick Page Post Redirect Options & Settings” page.

    @lcerura

    Sorry it’s my first install with this plugin, so i don’t understand where in the side redirect options are.

    but i still have “redirection” menu under “tools” tab… have you got it too ?

    When I first installed it, that item showed up but then later disappeared.
    ‘am still able to see it on another blog of mine which is a version of WordPress just prior to 3.5

    Maybe it’s no biggie. ?

    I’m on localhost with wordpress 3.5 and i can see redirection menu under tools tab, which version of wordpress you use ? if it’s 3.5 it’s strange :/

    Well on my second blog I’m running 3.4.2

    The page for that item of which I speak features the following:

    Basic Settings
    Master Override Options
    Plugin Clean Up

    As for my blog on 3.5 ?
    Yes, it appeared there too and that how I initially created the settings. Then afterwards it disappeared. If things work out for you then as I’d mentioned, maybe that main page isn’t a big deal?

    Sorry lcerura, i really can’t see where the : Basic Settings, Master Override Options, Plugin Clean Up links are, since i don’t see them in my installation, all that i see is “redirection” link (menu) under tools tab in the sidebar.

    Like i told you i’m new to this plugin, i’m even new to wordpress.

    I don’t know if you can see the “redirection” menu link under tools tab ?
    i don’t also know if there is another link to access Basic Settings, Master Override Options, Plugin Clean Up settings, since i don’t see them, or may be they are in the redirection page (under toos tab)?

    Again sorry if i can’t help too much ??

    This is like taking out the red light telling you the car is out of gas. Variables should now be passed in as arguments to $wpdb->prepare() for SECURITY reasons. Turning off the warning accomplishes nothing.

    This issue should be handled by the plugin developer(s) and I’ll bet this will be coming soon.

    I’ve found a Trac entry that should fix this in version 2.3.2 of the plugin.

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘Warning missing argument 2…’ is closed to new replies.