Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHP8.2 – Deprecated PHP error #99

Open
rafamem opened this issue May 19, 2024 · 1 comment
Open

PHP8.2 – Deprecated PHP error #99

rafamem opened this issue May 19, 2024 · 1 comment

Comments

@rafamem
Copy link

rafamem commented May 19, 2024

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

Solved with this change on includes/pojo-a11y-settings.php… 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);
    }
@itay-sho
Copy link

having the same issue.
@rafamem the repo seems inactive. how did you solve it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants