Skip Navigation

Resolved

Resolved in: 4.5.0

Overview of the issue

In some edge cases, you might see the following PHP notice appearing. This is not a stopper but a notice.

Trying to access array offset on value of type bool in sitepress-multilingual-cms/sitepress.class.php on line 4237

Workaround

We have resolved this issue and it will be properly tested and released in one of our next releases. In the meantime, you can ignore it.

12 Responses to “PHP Notice: Trying to access array offset on value of type bool”

  1. Unsure when this was posted, but we are also getting the error and we have the latest version Version 4.4.9 installed.

    PHP Notice: Trying to access array offset on value of type bool in /wp-content/plugins/sitepress-multilingual-cms/sitepress.class.php on line 4326

    Yes it is a notice, but this just means the plugin is not PHP 7.4 compliant yet.

    Please let me know when this is fixed as it seems to create a 404 Page not found error when this happens. Strange because even o n the same page it sometimes happens and sometimes does not.

    • Hello there,
      This issue is still open but we are planning to release a fix soon. If your site is experiencing anything different than a notice, it may be a good idea to open a ticket in our support forum as we will be able to help you better there:
      https://wpml.org/forums/forum/english-support/

      We will inform here once this issue is fix.
      Thank you for your understanding.

    • Unfortunately, we can’t provide you an estimated time as it totally depends on our developers and all the QA process.
      We will keep you inform here as soon as we have any updates.
      Thank you for your understanding.

    • Hello Niklas,

      This issue has been solved but we haven’t released a new version as it involves a whole QA process.
      We will keep you inform here as soon as we have any updates.

      Thank you for your understanding.

    • We apologize about this situation, we haven’t released a new version so this issue is still valid.
      We will update here as soon as we have any news.
      Thank you for your understanding.

  2. Hey there, i’ve update to the last updates of WPML (4.4.11).
    The issue still here, but on an other line :

    PHP Notice: Trying to access array offset on value of type bool in /wp-content/plugins/sitepress-multilingual-cms/sitepress.class.php on line 4327

    regards

  3. Also experiencing this error. Can you provide some info about how to fix it by changes the in the line that is creating the error?