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

    (@pedroghandi)

    Hi macdonaldr93, thanks for using this plugin!

    you mean GET variables ( i.e. ?somevar=value& … ) or query variables from the $wp_query itself?

    Thread Starter macdonaldr93

    (@macdonaldr93)

    No problem! It’s a great plugin; I’ve used it on a bunch of projects.

    And GET variables. For example:

    https://www.mywebsite.com/testpage?RandomVar=Test

    I’m using get_query_var(‘RandomVar’) to retrieve the value Test but when qTranslate slug is enabled, it returns empty.

    Thread Starter macdonaldr93

    (@macdonaldr93)

    Hi Pedro,

    Just checking back in on this. Have you had a chance to look into this issue?

    Thanks!

    Anonymous User 13812167

    (@anonymized-13812167)

    Has anyone looked further into this? I have the same problem with the current versions of WP, qtranslate-slug, qtranslate-X.

    I was able to determine that the problems lies in filter_request function of this plugin. On the lines 987-989 of class-qtranslate-slug.php file.

    if((isset($wp->matched_query) || empty($query)) && ! isset($query['s']) ) {
        $query = wp_parse_args($wp->matched_query);
    }

    Commenting this one out seems to fix the problem. As far as I understand $wp->matched_query holds query string up until ? appears. Namely query without custom variables.

    Hi there I got the same problem. Talking to qTranslate-X author … we figure out the problem is Qtranslate Slug issue. But still can’t figure out a solution but disable “Qtranslate Slug” ??

    Any help? Don’t want to touch core files but if there is no option … i’ll do that …

    Thanks in advance.

    EDIT ——————————

    Doing aliuskon suggestion i got several 404 error pages every time i change language. So sad … ??

    Thread Starter macdonaldr93

    (@macdonaldr93)

    Yeah, I haven’t heard anything new about this and I haven’t really had time to dive into a solution. No one else has any sort of temporary fix?

    Plugin Author Pedro Carvalho

    (@pedroghandi)

    auch, has it been 6 months already?

    everyone, I’ll have a look tonight!

    Many thanks!

    Thread Starter macdonaldr93

    (@macdonaldr93)

    Wow! Thanks so much. We really appreciate it.

    Plugin Author Pedro Carvalho

    (@pedroghandi)

    hi everyone!

    would you mind testing the latest version from github?

    https://github.com/not-only-code/qtranslate-slug

    Hi.

    Having the same issue. It was there with the verion from the github in the latest post as well. Any update on this?

    Many thanks

    Plugin Author Pedro Carvalho

    (@pedroghandi)

    Hi everyone!

    can you please test the latest version on github?

    i believe it is fixed, but please let me know what you think:

    https://github.com/not-only-code/qtranslate-slug

    thanks!

    Thread Starter macdonaldr93

    (@macdonaldr93)

    For sure. I’m hoping to get around to testing this week. Thanks for this!

    Plugin Author Pedro Carvalho

    (@pedroghandi)

    Thanks! ??

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘Can't retrieve public query variables’ is closed to new replies.