WordPress.org

Ready to get started?Download WordPress

Forums

Redirection
Warning missing argument 2... (15 posts)

  1. kizor
    Member
    Posted 1 year ago #

    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

    http://wordpress.org/extend/plugins/redirection/

  2. Oudin
    Member
    Posted 1 year ago #

    I'm experiencing the same issue stated above with the latest WordPress and version of this plugin

  3. benyafai
    Member
    Posted 1 year ago #

  4. galbaras
    Member
    Posted 1 year ago #

    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...

  5. lcerura
    Member
    Posted 1 year ago #

    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?

  6. shmox
    Member
    Posted 1 year ago #

    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 ) );

  7. Bruce Gerencser
    Member
    Posted 1 year ago #

    I am having the same problem.

  8. lcerura
    Member
    Posted 1 year ago #

    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.

  9. shmox
    Member
    Posted 1 year ago #

    @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 ?

  10. lcerura
    Member
    Posted 1 year ago #

    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. ?

  11. shmox
    Member
    Posted 1 year ago #

    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 :/

  12. lcerura
    Member
    Posted 1 year ago #

    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?

  13. shmox
    Member
    Posted 1 year ago #

    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 :(

  14. kylomylo
    Member
    Posted 1 year ago #

  15. galbaras
    Member
    Posted 1 year ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags