Title: PHP errors and warnings.
Last modified: August 1, 2021

---

# PHP errors and warnings.

 *  [Malae](https://wordpress.org/support/users/malae/)
 * (@malae)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/php-errors-and-warnings-3/)
 * Hello,
    Can you please fix the following deprecated code cauing errors and warnings:
 *     ```
       FILE: wp-content/plugins/username-changer/vendor/widgitlabs/simple-settings/class-simple-settings.php
       ---------------------------------------------------------------------------------------------------------------------------------------
       FOUND 21 ERRORS AND 21 WARNINGS AFFECTING 21 LINES
       ---------------------------------------------------------------------------------------------------------------------------------------
         160 | WARNING | Global with anything other than bare variables is discouraged since PHP 7.0. Found ${$this->func . '_settings_page'}
         160 | ERROR   | "$this" can no longer be used with the "global" keyword since PHP 7.1.
         350 | WARNING | Global with anything other than bare variables is discouraged since PHP 7.0. Found ${$this->func . '_sections'}
         350 | ERROR   | "$this" can no longer be used with the "global" keyword since PHP 7.1.
         373 | WARNING | Global with anything other than bare variables is discouraged since PHP 7.0. Found ${$this->func . '_options'}
         373 | ERROR   | "$this" can no longer be used with the "global" keyword since PHP 7.1.
         414 | WARNING | Global with anything other than bare variables is discouraged since PHP 7.0. Found ${$this->func . '_options'}
         414 | ERROR   | "$this" can no longer be used with the "global" keyword since PHP 7.1.
         436 | WARNING | Global with anything other than bare variables is discouraged since PHP 7.0. Found ${$this->func . '_options'}
         436 | ERROR   | "$this" can no longer be used with the "global" keyword since PHP 7.1.
         576 | WARNING | Global with anything other than bare variables is discouraged since PHP 7.0. Found ${$this->func . '_options'}
         576 | ERROR   | "$this" can no longer be used with the "global" keyword since PHP 7.1.
         830 | WARNING | Global with anything other than bare variables is discouraged since PHP 7.0. Found ${$this->func . '_options'}
         830 | ERROR   | "$this" can no longer be used with the "global" keyword since PHP 7.1.
         858 | WARNING | Global with anything other than bare variables is discouraged since PHP 7.0. Found ${$this->func . '_options'}
         858 | ERROR   | "$this" can no longer be used with the "global" keyword since PHP 7.1.
         908 | WARNING | Global with anything other than bare variables is discouraged since PHP 7.0. Found ${$this->func . '_options'}
         908 | ERROR   | "$this" can no longer be used with the "global" keyword since PHP 7.1.
         960 | WARNING | Global with anything other than bare variables is discouraged since PHP 7.0. Found ${$this->func . '_options'}
         960 | ERROR   | "$this" can no longer be used with the "global" keyword since PHP 7.1.
         990 | WARNING | Global with anything other than bare variables is discouraged since PHP 7.0. Found ${$this->func . '_options'}
         990 | ERROR   | "$this" can no longer be used with the "global" keyword since PHP 7.1.
        1031 | WARNING | Global with anything other than bare variables is discouraged since PHP 7.0. Found ${$this->func . '_options'}
        1031 | ERROR   | "$this" can no longer be used with the "global" keyword since PHP 7.1.
        1068 | WARNING | Global with anything other than bare variables is discouraged since PHP 7.0. Found ${$this->func . '_options'}
        1068 | ERROR   | "$this" can no longer be used with the "global" keyword since PHP 7.1.
        1100 | WARNING | Global with anything other than bare variables is discouraged since PHP 7.0. Found ${$this->func . '_options'}
        1100 | ERROR   | "$this" can no longer be used with the "global" keyword since PHP 7.1.
        1141 | WARNING | Global with anything other than bare variables is discouraged since PHP 7.0. Found ${$this->func . '_options'}
        1141 | ERROR   | "$this" can no longer be used with the "global" keyword since PHP 7.1.
        1191 | WARNING | Global with anything other than bare variables is discouraged since PHP 7.0. Found ${$this->func . '_options'}
        1191 | ERROR   | "$this" can no longer be used with the "global" keyword since PHP 7.1.
        1221 | WARNING | Global with anything other than bare variables is discouraged since PHP 7.0. Found ${$this->func . '_options'}
        1221 | ERROR   | "$this" can no longer be used with the "global" keyword since PHP 7.1.
        1256 | WARNING | Global with anything other than bare variables is discouraged since PHP 7.0. Found ${$this->func . '_options'}
        1256 | ERROR   | "$this" can no longer be used with the "global" keyword since PHP 7.1.
        1286 | WARNING | Global with anything other than bare variables is discouraged since PHP 7.0. Found ${$this->func . '_options'}
        1286 | ERROR   | "$this" can no longer be used with the "global" keyword since PHP 7.1.
        1319 | WARNING | Global with anything other than bare variables is discouraged since PHP 7.0. Found ${$this->func . '_options'}
        1319 | ERROR   | "$this" can no longer be used with the "global" keyword since PHP 7.1.
        1383 | WARNING | Global with anything other than bare variables is discouraged since PHP 7.0. Found ${$this->func . '_settings_page'}
        1383 | ERROR   | "$this" can no longer be used with the "global" keyword since PHP 7.1.
       ```
   

The topic ‘PHP errors and warnings.’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/username-changer_89adc1.svg)
 * [Username Changer](https://wordpress.org/plugins/username-changer/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/username-changer/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/username-changer/)
 * [Active Topics](https://wordpress.org/support/plugin/username-changer/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/username-changer/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/username-changer/reviews/)

## Tags

 * [errors](https://wordpress.org/support/topic-tag/errors/)
 * [php](https://wordpress.org/support/topic-tag/php/)
 * [warnings](https://wordpress.org/support/topic-tag/warnings/)

 * 0 replies
 * 1 participant
 * Last reply from: [Malae](https://wordpress.org/support/users/malae/)
 * Last activity: [4 years, 8 months ago](https://wordpress.org/support/topic/php-errors-and-warnings-3/)
 * Status: not resolved