Error on two line

Hi!
I have an error on the site www.genniferderi.it

**Warning** : preg_match() expects parameter 2 to be string, array given in  **/web/htdocs/www.genniferderi.it/home/wp-includes/class-wp-block-parser.php**  on line  **417**

**Warning** : strlen() expects parameter 1 to be string, array given in  **/web/htdocs/www.genniferderi.it/home/wp-includes/class-wp-block-parser.php**  on line  **489**

how can they eliminate the error?
Thanks!

Hey @fra_fantasy,

Thanks for writing in! Could you please update to the latest versions?
Our latest versions are:

  • Pro theme 4.2.3
  • WordPress 5.7
  • PHP 7.4

This latest release contains fixes for several issues so be sure to check out the 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.

And please disable your debug mode. You can do this by opening wp-config.php and adding


define('WP_DEBUG', false);

/* That's all, stop editing! Happy blogging. */

When you revisit the page, you should no longer be seeing the PHP warning messages.

Please let us know how it goes.

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