• Hi,
    with RM 1.0.54 & WPML 4.4.7 we have a fatal error on edit/saving post or pages

    “PHP message: PHP Fatal error: Uncaught InvalidArgumentException: item should be a Collection or an array or an object in /wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/Obj.php:97

    -> with deactivated Rankmath it works’s

    Thanks & Regards
    Dieter

Viewing 10 replies - 1 through 10 (of 10 total)
  • Thread Starter Dieter Schummer

    (@ds888)

    +++

    PHP message: PHP Warning: sprintf(): Too few arguments in /wp-content/plugins/seo-by-rank-math/includes/modules/seo-analysis/seo-analysis-tests.php on line 55″

    Plugin Author Rank Math SEO

    (@rankmath)

    Hello @ds888

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

    Please update to the latest version, 1.0.54.1, that should fix the issue.

    Hope that helps.

    Hello @rankmath,

    the second problem mentioned by @ds888 does still exist in version 1.0.54.1.

    /wp-content/plugins/seo-by-rank-math/includes/modules/seo-analysis/seo-analysis-tests.php on line 55:

    'description' => sprintf( __( 'For the best SEO results, use a custom permalink structure, preferably one that includes the post title (<code>%%postname%%</code>). You can change it by navigating to <a href="%s">Settings > Permalinks</a>', 'rank-math' ), admin_url( 'options-permalink.php' ) ),

    The escaping with “%%” is not working in this combination.

    Thanks for a quick fix/patch!

    Thread Starter Dieter Schummer

    (@ds888)

    Hi, we have this in combination with RankMath & WPML Plugins enabled – on edit/saving post/pages:

    2020/12/09 07:08:03 [error] 29381#29381: *102928 FastCGI sent in stderr: “PHP message: PHP Warning: sprintf(): Too few arguments in web/wp-content/plugins/seo-by-rank-math/includes/modules/seo-analysis/seo-analysis-tests.php on line 55” while reading response header from upstream, client: xxxxxxxx, server: xxxx.xx, request: “POST /wp-admin/admin-ajax.php HTTP/2.0”, upstream: “fastcgi://unix:/var/lib/php7-fpm/web76.sock:”, host: “xxxxxx.xx”, referrer: “https://xxxxxx.xx/?complianz_scan_token=1607494071&complianz_id=1533&#8221;
    2020/12/09 07:08:14 [error] 29381#29381: *102928 FastCGI sent in stderr: “PHP message: PHP Fatal error: Uncaught InvalidArgumentException: item should be a Collection or an array or an object in /web/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/Obj.php:97
    Stack trace:
    #0 [internal function]: WPML\FP\Obj::WPML\FP\{closure}()
    #1 web/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/functions.php(152): call_user_func_array()
    #2 [internal function]: WPML\FP\Obj::WPML\FP\{closure}()
    #3 /web/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/collect/src/Illuminate/Support/Traits/Macroable.php(56): call_user_func_array()
    #4 /web/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/Obj.php(81): WPML\FP\Obj::__callStatic()
    #5 [internal function]: WPML\FP\Obj::WPML\FP\{closure}()
    #6 /web/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/functions.php(152): ca” while reading response header from upstream, client: xxxxxx, server: xxxxx.xx, request: “POST /wp-admin/post.php HTTP/2.0”, upstream: “fastcgi://unix:/var/lib/php7-fpm/web76.sock:”, host: “xxxxx.xx”, referrer: “https://xxxxxx.xx/wp-admin/post.php?post=137901&action=edit&lang=de&#8221;

    Hi, having a similar Problem. I couldn’t save changes on the homepage when rank math is activated. I am using Elementor and I am getting the error “item should be a collection or an array or an object”. I deactivated Rank Math Version 1.0.54.1 and saving the page worked. After that I reactivated Rank Math

    Plugin Author Rank Math SEO

    (@rankmath)

    Hello @hangover2cm, @ds888 & @auxalia

    Can you please confirm if all the translations are also updated?

    It seemed like a typo with the German translation.

    Looking forward to helping you. Thank you.

    How do I update translation? I updated all plug-ins related to WPML.

    Thread Starter Dieter Schummer

    (@ds888)

    all our available translation updates are done.

    At the moment our workarounds on different site (single and multisite installations) are disable rankmath plugin, saving our post/page changes and the reactivate the rankmath plugin ??

    @rankmath
    … maybe you can check this with wpml team

    https://wpml.org/errata/php-fatal-error-uncaught-invalidargumentexception-item-should-be-a-collection-or-an-array-or-an-object-in-sitepress-multilingual-cms-vendor-wpml-fp-core-obj-php97/comment-page-1/

    Thread Starter Dieter Schummer

    (@ds888)

    … our problem is solved with today updated wpml version 4.4.8

    Plugin Author Rank Math SEO

    (@rankmath)

    Hello @ds888

    Thank you for informing everyone that the latest versions of both plugins solve the issues.

    Appreciate it.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘RM 1.0.54 & WPML 4.4.7 fatal error’ is closed to new replies.