• Hello there,
    When we preview a post draft we get this at top of post:
    Warning: Illegal offset type in /home/k5070005/public_html/wp-content/plugins/qtranslate-slug/includes/class-qtranslate-slug.php on line 1000
    and that is followed by:
    Warning: mysql_real_escape_string() expects parameter 1 to be string, array given in /home/k5070005/public_html/wp-includes/wp-db.php on line 1129

    Maybe related?

    This is line 1000 in qtranslate-slug.php:

    $page_slug = ( isset($query['name']) && !empty($query['name']) ) ? $query['name'] : $query[$query['post_type']];

    We use latest q-translate slug (1.1.18) and latest wp (4.4.2)
    We are not developers.
    Thanks in advance for your help.

    https://www.ads-software.com/plugins/qtranslate-slug/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Pedro Carvalho

    (@pedroghandi)

    Hi, thanks for using QTS. nice catch!

    the next version will fix that, among other things.

    if you wish to test before hand, the latest code is here:
    https://github.com/not-only-code/qtranslate-slug

    Thread Starter nusa surf

    (@nusa-surf)

    Thanks for that.
    We just downloaded the code from github and uploaded it to our site overriding previous q-translate slug version. In first preview of post, the error messages are not there anymore. So I guess both error messages were related and both are fixed now.

    We’ll keep you posted if anything else comes up after publishing post.

    Cheers!

    Thread Starter nusa surf

    (@nusa-surf)

    I guess I should have checked first to see if the slug options for different languages on the top right was still there. It’s not.
    Now we also noticed that the qtranslate-slug-trunk plug in is installed in our cPanel but it doesn’t show in our WP Admin plug in section.

    How can we activate it?

    Thanks

    Plugin Author Pedro Carvalho

    (@pedroghandi)

    Hi,

    do you still the default qts installed? although they have different directory names, both will show up as “qTranslate slug”

    if so, either change the name of the plugin in
    qtranslate-slug-trunk/qtranslate-slug.php

    Plugin Name: qTranslate slug Github

    or simply remove the default one.

    Thread Starter nusa surf

    (@nusa-surf)

    Hi,
    We renamed plug in to qTranslate slug Github. It shows now on our WP ADMIN as new name.
    SLUG QTS shows now but on previewing post we still get similar error message but this time on line 1005

    } elseif( isset($query[$query['post_type']] ) ){

    Thanks

    Thread Starter nusa surf

    (@nusa-surf)

    Even if we still got the errors on preview as described above, we published the post and it all looks fine. No errors and slugs seem to be working.
    So maybe the errors are only seen on preview?

    I hope the info helps.

    Thanks!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Warning: Illegal offset type in […] qtranslate-slug.php on line 1000’ is closed to new replies.