Error after latest Update

After updating the X Theme and Cornerstone I received this error:

Error Details

An error of type E_ERROR was caused in line 9 of the file /var/www/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/page-builders-cornerstone/src/class-wpml-cornerstone-register-strings.php. Error message: Uncaught TypeError: Argument 1 passed to WPML_Cornerstone_Register_Strings::register_strings_for_modules() must be of the type array, null given, called in /var/www/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/page-builders/src/st/compatibility/class-wpml-page-builders-register-strings.php on line 58 and defined in /var/www/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/page-builders-cornerstone/src/class-wpml-cornerstone-register-strings.php:9
Stack trace:
#0 /var/www/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/page-builders/src/st/compatibility/class-wpml-page-builders-register-strings.php(58): WPML_Cornerstone_Register_Strings->register_strings_for_modules(NULL, Array)
#1 /var/www/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/page-builders/src/st/class-page-builder-integration.php(61): WPML_Page_Builders_Register_Strings->register_strings(Object(WP_Post), Array)
#2 /var/www/wp-includes/class-wp-hook.php(286): WPML_Page_Builders_Integration->register_pb_stri


I cannot save anything I do in the translated French pages using Cornerstone. Can you help?

Hello @luxmedesigner,

Thanks for writing in!

This error usually occur when one of the plugin or theme is out of date. Could you please update to the latest versions?
Our latest versions are:

  • X theme 7.0.4
  • Cornerstone 4.0.4
  • WPML 4.2.9

This latest release contains fixes for several issues so be sure to check out the changelog (http://theme.co/changelog/).

After doing the updates, always remember to clear all caches (if you are using WP Rocket, WP SuperCache or W3 Total Cache) when updating so that the code from the latest release is always in use. This will help you to avoid any potential errors.

Please let us know how it goes.

The site is up to date. According to the people from WPML, there seems to be compatibility issues between Cornerstone and their plugin. Apparently, they are working on it, and there is nothing they can do to fix it now.

Hello @luxmedesigner,

If you are using the latest version of WPML, then I can confirm that the latest version has some incompatibility issues with the theme. For the meantime, please do the following:

1.) Disable all cache feature and plugin (I didn’t get immediate results due to this), not permanent but while you’re fixing it then it should be inactive

2.) Downgrade to these versions

WPML Multilingual CMS - 4.2.6
WPML String Translation - 2.10.4
WPML Translation Management - 2.8.5

3.) If you wish to use Yoast SEO plugin then please downgrade your WPML to these, else, you can still use the above versions.

WPML Multilingual CMS - 4.0.6
WPML String Translation - 2.8.6
WPML Translation Management - 2.6.7

Kindly let us know how it goes.

  1. I was able to get Revolution Slider working by going into the Slider > General > Find the WPML setting and turning it off.
  2. The issue related to the new translated pages was solved by duplicating the page from within the English (default page), check the box (Duplicate) across the language you want to create a page for. After the duplicate is created, go to that page and click on the button that says “Translate Independently”, or something like that. Do NOT use the + sign that appears next to the page while looking at the page under the PAGES section. This will generate the error above, plus you won’t be able to use Cornerstone to edit the page later.

Hey @luxmedesigner,

We are just glad that you have figured it out a way to correct the said issues.
Thanks for letting us know!

Best Regards.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.