• Hi there,
    First of all, I’d like to thank you for the great plugin you’ve created.

    Now, the problem… ??

    Basically, since yesterday (at least, although it might be since the latest plugin update), I’ve been unable to edit my pages using the frontend builder (Divi, in this case) unless I enter the exact URL of the page with all the strings that the frontend builder adds (which – I haven’t checked – I may be able to get from the HTTP request).
    Whenever I go to the “All pages” view and I click on any page I’m taken to the usual WordPress editing interface, and then I click the button to edit the page on the frontend builder and it starts loading and after a while, the browser redirects to /wp-admin/post.php

    Then I get an email from WordPress about the error being caused by Polylang (I’ll paste it below). So I uninstalled the plugin (and everything started working again) and reinstalled it right after a quick test, but the issue persisted.

    I’ve checked the file that’s mentioned on the WordPress email about the error but everything seems OK. The error stated in the email is a follows:

    Error Details
    =============
    An error of type E_ERROR was caused in line 221 of the file /home/<…>/wp-content/plugins/polylang/admin/admin-filters.php. Error message: Uncaught ArgumentCountError: Too few arguments to function PLL_Admin_Filters::sanitize_title(), 1 passed in /home/<…>/wp-includes/class-wp-hook.php on line 287 and exactly 3 expected in /home/<…>/wp-content/plugins/polylang/admin/admin-filters.php:221
    Stack trace:
    #0 /home/<…>/wp-includes/class-wp-hook.php(287): PLL_Admin_Filters->sanitize_title(‘auto-draft’)
    #1 /home/<…>/wp-includes/plugin.php(206): WP_Hook->apply_filters(‘auto-draft’, Array)

    Hope you can help.

    Thanks in advance,

    Nuno

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hey there,

    i’m using Polylang Pro and i have the same issues with the following error:

    Fatal error: Uncaught ArgumentCountError: Too few arguments to function PLL_Admin_Filters::sanitize_title(), 1 passed in /html/xxx/wp-includes/class-wp-hook.php on line 287 and exactly 3 expected in /html/xxx/wp-content/plugins/polylang-pro/admin/admin-filters.php:221 Stack trace: #0 /html/xxx/wp-includes/class-wp-hook.php(287): PLL_Admin_Filters->sanitize_title(‘xxx…’) #1 /html/xxx/wp-includes/plugin.php(206): WP_Hook->apply_filters(‘xxx…’, Array) #2 /html/xxx/wp-content/plugins/seo-by-rank-math/includes/class-cmb2.php(292): apply_filters(‘sanitize_title’, ‘xxx…’) #3 /html/xxx/wp-content/plugins/seo-by-rank-math/vendor/cmb2/cmb2/includes/CMB2_Field.php(486): RankMath\CMB2::sanitize_permalink(‘xxx…’, Array, Object(CMB2_Field)) #4 /html/xxx/wp-content/plugins/seo-by-rank-math/vendor/cmb2/cmb2/includes/CMB2_Field.php(545): CMB2_Field->sanitization_cb(‘xxx…’) #5 /html/xxx/wp-content/plugins/seo-by-rank-math/vendor/cmb2/cmb2/includes/CMB2_Field.php( in /html/amis/wp-content/plugins/polylang-pro/admin/admin-filters.php on line 221

    Thanks in advance,
    dakkk

    Thread Starter poisonvox

    (@poisonvox)

    Well, after seeing your message I further troubleshoot this and the issue is definitely related to the Rank Math plugin

    Plugin Author Chouby

    (@chouby)

    Hello,

    @dakkk It is not allowed to support Premium plugins on this forum. You must contact the dedicated support for any issue with Polylang Pro.

    @poisonvox I confirm that the filter sanitize_title has 3 parameters and Polylang uses of all them. Sometimes, 3rd party plugins apply WordPress filters with a different number of parameters and that’s wrong.

    • This reply was modified 4 years, 9 months ago by Chouby. Reason: Typos
    Thread Starter poisonvox

    (@poisonvox)

    @chouby thanks for stepping in. Are you saying that the issue is not being caused by Polylang, but Rank Math instead? In any case there are workarounds so this is not the end of the world, but any help you can provide will be greatly appreciated.

    As I mentioned on the Rank Math support page, if any of the two affected plugins (Polylang or Rank Math) is disabled the issue goes away, so it has to be some incompatibility between the two. Too bad I need both… ??

    Thanks in advance for your time.

    Best regards,
    Nuno

    Thread Starter poisonvox

    (@poisonvox)

    Just adding Rank Math’s response:
    ____________________________________________
    Rank Math wrote:

    Hello @dakkk & @poisonvox

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

    We have fixed it internally and will release an update soon with the fix.

    We will let you know as soon as the fix is released. It should be in a few hours.

    In the meantime, maybe you can request Polylang’s team to add the compatibility for the Rank Math’s Sitemap functionality that we submitted almost a year back to them:
    https://github.com/polylang/polylang/pull/373

    We have not heard from them yet.

    It might be hurting the SEO of everyone using both the plugins together as we have not tested them both extensively as we have done with other translation plugins.

    We seek your patience and understanding in this matter.

    In the meantime, if anyone wants, they can rollback to the older version by following this tutorial:
    https://rankmath.com/kb/version-control/#a-how-to-rollback-rank-math-to-a-previous-version

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Unable to edit pages / Always redirected to /wp-admin/post.php’ is closed to new replies.