WordPress.org

Ready to get started?Download WordPress

Forums

qTranslate slug with widget
Error after Upgrade (13 posts)

  1. S3nd41
    Member
    Posted 2 years ago #

    Hello,

    The widget is returning the following error after update:

    Warning: mysql_real_escape_string() expects parameter 1 to be string, object given in /home/ins10001/public_html/cookgoods/wp-includes/wp-db.php on line 774

    Warning: mysql_real_escape_string() expects parameter 1 to be string, object given in /home/ins10001/public_html/cookgoods/wp-includes/wp-db.php on line 774

    Warning: mysql_real_escape_string() expects parameter 1 to be string, object given in /home/ins10001/public_html/cookgoods/wp-includes/wp-db.php on line 774

    Warning: mysql_real_escape_string() expects parameter 1 to be string, object given in /home/ins10001/public_html/cookgoods/wp-includes/wp-db.php on line 774

    What can I do to fix this?

    Thanks!

    http://wordpress.org/extend/plugins/qtranslate-slug-with-widget/

  2. grumo64
    Member
    Posted 2 years ago #

    Same bug ;)

  3. Enrico Mingardo
    Member
    Posted 2 years ago #

    same bug

  4. Enrico Mingardo
    Member
    Posted 2 years ago #

    Solved:
    open qtranslate-slug-with-widget.php, look for the following lines:

    function qTranslateSlug_category_link($link, $id){
      //TODO: implement it!
      global $wpdb, $q_config, $qts_use_language, $wp_query;

    modify as follows:

    function qTranslateSlug_category_link($link, $id){
      //TODO: implement it!
      if ( is_object($id) ) {
    	  $id = $id->id;
      }
      global $wpdb, $q_config, $qts_use_language, $wp_query;

    now it works

    cheers
    e.

  5. alsoza
    Member
    Posted 2 years ago #

    Thank you very much, Enrico, works perfectly well!

  6. bhenselmann
    Member
    Posted 2 years ago #

    @Enrico: thanx a lot!!

  7. laurentperroteau
    Member
    Posted 2 years ago #

    It works if I change permalink to: /%post_id%/%postname%.
    Thank you

  8. laurentperroteau
    Member
    Posted 2 years ago #

    Or simply /%postname%

  9. santino_b
    Member
    Posted 1 year ago #

    Wielkie dzięki za pomoc!

  10. S3nd41
    Member
    Posted 1 year ago #

    Thank you, it works perfectly.
    Can the owner of the plug-in please release a new version with this fix?

  11. The Baud
    Member
    Posted 1 year ago #

    Thanks ! It worked perfectly for me.
    :-)
    I agree. A new version would be great for new qtranslate users.

  12. bertock85
    Member
    Posted 1 year ago #

    Thank you Enrico! :-)

  13. andrescifuentesr
    Member
    Posted 1 year ago #

    uffff, thank you!!!!!!!!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic