Polylang search issue

#80927
  • Resolved Jakub Novák
    Rank Math free

    Hi,
    we use polylang and rankmath, but we are not able to access search page in different language
    when we deactivate RankMath, then everything works

    Accessing
    https://web.com/fr/?s
    generates

    [27-Aug-2020 13:41:44 UTC] PHP Fatal error:  Uncaught Error: Call to undefined method RankMathPaperSearch::set_object() in /wp-content/plugins/seo-by-rank-math/includes/frontend/paper/class-paper.php:110
    Stack trace:
    #0 /wp-content/plugins/seo-by-rank-math/includes/frontend/paper/class-paper.php(90): RankMathPaperPaper->setup()
    #1 /wp-content/plugins/seo-by-rank-math/includes/frontend/class-frontend.php(97): RankMathPaperPaper::get()
    #2 /wp-includes/class-wp-hook.php(287): RankMathFrontendFrontend->integrations(Object(WP))
    #3 /wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters(NULL, Array)
    #4 /wp-includes/plugin.php(544): WP_Hook->do_action(Array)
    #5 /wp-includes/class-wp.php(758): do_action_ref_array('wp', Array)
    #6 /wp-includes/functions.php(1285): WP->main('')
    #7 /wp-content/plugins/seo-by-rank-math/includes/frontend/paper/class-paper.php on line 110
Viewing 10 replies - 1 through 10 (of 10 total)
  • Alberto
    Rank Math business

    Hello,

    Thank you for contacting Rank Math and sorry for any inconvenience that might have been caused due to that.

    We might need to take a closer look at the settings. Please edit the first post on this ticket and include your WP logins in the designated Sensitive Data section.
    Sensitive Data Section

    It is completely secure and only our support staff has access to that section. If you want, you can use the below plugin to generate a temporary login URL to your website and share that with us instead:

    https://wordpress.org/plugins/temporary-login-without-password/

    You can use the above plugin in conjunction with the WP Security Audit Log to monitor what changes our staff might make on your website (if any):

    https://wordpress.org/plugins/wp-security-audit-log/

    We really look forward to helping you.

    Jakub Novák
    Rank Math free

    Hello,

    I have updated the sensitive data as requested. Can you please check further?

    Thank you.

    Hello,

    I see the issue on your site but I couldn’t reproduce it on my setup even after downloading the theme and copying all the settings from your site. Can you please add your site’s FTP access in the Sensitive Data Section so we could debug this by changing some plugin files?

    Looking forward to helping you.

    Jakub Novák
    Rank Math free

    Hello,

    I have updated the sensitive data as requested. Can you please check further?

    Thank you.

    Hello,

    Sorry for not following up quickly and any inconvenience that might have been caused due to that.

    I don’t see any files on your server when I connect using the FTP details you added in the Sensitive Data Section. It look like there are some restrictions? Please check the screenshot I added in the Sensitive Data Section.

    Looking forward to helping you.

    Jakub Novák
    Rank Math free

    Are you serious?
    IP address has always 4 numbers, not 3
    And there is also port 21
    You are connecting to non-existing host without first number (5) and you have empty port

    Hello,

    
    IP address has always 4 numbers, not 3
    And there is also port 21
    

    The host you see in my screenshot is from the Quick connection. I am not connecting the site using the Quick Connection, I connected it using the FTP panel where I had used the host with 5. The server wouldn’t have connected without the proper host. Also, by default, the FTP port is set to 21 so we don’t have to add it. The problem was in the Encryption type. I was trying to connect using FTP over TLS. With an insecure type, I can access the files.

    To fix the Search form issue on your site, I have changed following code in /wp-content/plugins/seo-by-rank-math/includes/frontend/paper/class-paper.php file on line 108

    Replaced:
    } elseif ( Post::is_simple_page() ) {
    with:
    } elseif ( Post::is_simple_page() && method_exists( $this->paper, 'set_object' ) ) {

    This seemed to have fixed the issue. Can you please confirm?

    Thank you.

    Jakub Novák
    Rank Math free

    Yes, well I’m not familiar with FileZilla, so only think I saw on that screenshot was incorrect host. But I’m glad you figured out, what’s the problem 😉

    Yes, now it works, thank you very much.
    But this is just hotfix – hardcoded change – so it will be implemented in next version or do we have to manually fix this each time?

    Thanks.

    Hello,

    We are glad that it is sorted now.

    We will be incorporating the fix in an upcoming update so you do not need to worry about the edit getting overwritten.

    Hello,

    Please update to the latest Beta version by following this tutorial:
    https://rankmath.com/kb/version-control/#beta-updates

    That should fix the issue for you.

    The final version will be released in a few weeks and you will see a notification in your dashboard when an update comes.

    Do let us know how it goes.

Viewing 10 replies - 1 through 10 (of 10 total)

You must be logged in to reply to this ticket.