• Hi, I see 3 deprecated PHP error with PHP8.2:
    Deprecated: Creation of dynamic property Pojo_A11y_Settings::$_page_title is deprecated in /wp-content/plugins/pojo-accessibility/includes/pojo-a11y-settings.php on line 636

    Deprecated: Creation of dynamic property Pojo_A11y_Settings::$_page_menu_title is deprecated in wp-content/plugins/pojo-accessibility/includes/pojo-a11y-settings.php on line 637

    Deprecated: Creation of dynamic property Pojo_A11y_Settings::$_menu_parent is deprecated in /wp-content/plugins/pojo-accessibility/includes/pojo-a11y-settings.php on line 638

    Regards.

    Jean

Viewing 5 replies - 1 through 5 (of 5 total)
  • Same problem: Deprecated: Creation of dynamic property Pojo_A11y_Settings::$_page_title is deprecated

    Solved with this change… Please update!

    // Define necessary private properties
    
    ? ? private $_page_title;
    
    ? ? private $_page_menu_title;
    
    ? ? private $_menu_parent;
    
    ? ? public function __construct() {
    
    ? ? ? ? // Initialize private properties
    
    ? ? ? ? $this->_page_title = __( 'One Click Accessibility', 'pojo-accessibility' );
    
    ? ? ? ? $this->_page_menu_title = __( 'One Click Accessibility', 'pojo-accessibility' );
    
    ? ? ? ? $this->_menu_parent = 'themes.php';
    
    ? ? ? ? add_action('admin_menu', array($this, 'admin_menu'), 20);
    
    ? ? ? ? add_action('admin_init', array($this, 'admin_init'), 20);
    
    ? ? ? ? add_action('admin_footer', array($this, 'print_js'));
    
    ? ? ? ? add_filter('plugin_action_links_' . POJO_A11Y_BASE, array($this, 'plugin_action_links'), 10, 2);
    
    ? ? }
    Thread Starter momo-fr

    (@momo-fr)

    Hi @rafamem, where do you make this changes?

    This has to go into the “includes\pojo-a11y-settings.php” file at line 635, replacing what is already there.

    Then the notices go away. Can confirm that it works.

    I just installed the plugin on the staging multisite website which is running on PHP 8.2 too, and it’s showing the same notices:

    Deprecated: Creation of dynamic property Pojo_A11y_Settings::$_page_title is deprecated in /home/ubuntu/public_html/wp-content/plugins/pojo-accessibility/includes/pojo-a11y-settings.php on line 636

    Deprecated: Creation of dynamic property Pojo_A11y_Settings::$_page_menu_title is deprecated in /home/ubuntu/public_html/wp-content/plugins/pojo-accessibility/includes/pojo-a11y-settings.php on line 637

    Deprecated: Creation of dynamic property Pojo_A11y_Settings::$_menu_parent is deprecated in /home/ubuntu/public_html/wp-content/plugins/pojo-accessibility/includes/pojo-a11y-settings.php on line 638

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.