Error: CUAR_Settings::$options is deprecated

    • Carla Espindola
      Participant
      # il y a 5 mois et 4 semaines

      Hello!

      I’ve recently overhauled my website, updated the PHP version and plugins, and now I’m getting an error from the Customer Area main plugin, as follows:

      <b>Deprecated</b>: Creation of dynamic property CUAR_Settings::$options is deprecated in <b>/home/eseni/www/editora/wp-content/plugins/customer-area/src/php/core-classes/settings.class.php</b> on line <b>1949</b>

      I’ve reinstalled all the plugins and add-ons using the latest versions, so any help solving this problem would be greatly appreciated.

      Best regards,

      Carla

    • Thomas
      Maître des clés
      # il y a 5 mois et 3 semaines

      Hello,

      Thank you for the report.

      Could you please try to connect to your FTP and edit the file wp-content/plugins/customer-area/src/php/core-classes/settings.class.php, line 1974, at the end of the file, you’ll see this:

      		/**
      		 * @var array
      		 */
      		private $default_options;

      Replace the block by that one:

      		/**
      		 * @var array
      		 */
      		private $default_options;
      
      		/**
      		 * @var array|mixed
      		 */
      		private $options;

      Let me know if this fixes the issue.

      Regards.

       

      Want to help WP Customer Area? It only takes few seconds!
      Rate & review the plugin on WordPress.org 🙂

Vous lisez 1 fil de discussion

You must be logged in to reply to this topic.