PHP Notice in Customizer

Homepage Community Forums Aspire Theme Support PHP Notice in Customizer

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #22579
    brian3
    Customer

      When I installed Aspire Pro, visited the Customizer, I was greeted with many PHP messages:
      https://3cd.co/2a2T3W0F3g02

      Related to using “add_tab” in the customize.php file (lines 52, 53, 56)

      Apparently the function is deprecated. Using Aspire version 1.2

      Full stack trace:

      [10-Apr-2018 16:27:13 UTC] PHP Notice: WP_Customize_Image_Control::add_tab is deprecated since version 4.1.0 with no alternative available. in /wp-includes/functions.php on line 3842
      [10-Apr-2018 16:27:13 UTC] PHP Stack trace:
      [10-Apr-2018 16:27:13 UTC] PHP 1. {main}() /wp-admin/customize.php:0
      [10-Apr-2018 16:27:13 UTC] PHP 2. require_once() /wp-admin/customize.php:13
      [10-Apr-2018 16:27:13 UTC] PHP 3. require_once() /wp-admin/admin.php:31
      [10-Apr-2018 16:27:13 UTC] PHP 4. require_once() /wp-load.php:42
      [10-Apr-2018 16:27:13 UTC] PHP 5. require_once() -config.php:9
      [10-Apr-2018 16:27:13 UTC] PHP 6. do_action() /wp-settings.php:471
      [10-Apr-2018 16:27:13 UTC] PHP 7. WP_Hook->do_action() /wp-includes/plugin.php:453
      [10-Apr-2018 16:27:13 UTC] PHP 8. WP_Hook->apply_filters() /wp-includes/class-wp-hook.php:310
      [10-Apr-2018 16:27:13 UTC] PHP 9. WP_Customize_Manager->wp_loaded() /wp-includes/class-wp-hook.php:286
      [10-Apr-2018 16:27:13 UTC] PHP 10. do_action() /wp-includes/class-wp-customize-manager.php:926
      [10-Apr-2018 16:27:13 UTC] PHP 11. WP_Hook->do_action() /wp-includes/plugin.php:453
      [10-Apr-2018 16:27:13 UTC] PHP 12. WP_Hook->apply_filters() /wp-includes/class-wp-hook.php:310
      [10-Apr-2018 16:27:13 UTC] PHP 13. aspire_customizer_register() /wp-includes/class-wp-hook.php:286
      [10-Apr-2018 16:27:13 UTC] PHP 14. Child_Aspire_Image_Control->__construct() /wp-content/themes/aspire-pro/lib/customize.php:93
      [10-Apr-2018 16:27:13 UTC] PHP 15. WP_Customize_Image_Control->add_tab() /wp-content/themes/aspire-pro/lib/customize.php:52
      [10-Apr-2018 16:27:13 UTC] PHP 16. _deprecated_function() /wp-includes/customize/class-wp-customize-image-control.php:36
      [10-Apr-2018 16:27:13 UTC] PHP 17. trigger_error() /wp-includes/functions.php:3842

      #22581
      Wes
      Moderator

        Wow, not sure why that happened. Fortunately, I’m already in the process of updating a couple files inside this theme and a few others as well.

        The Customizer.php and the Output.php files are one of the few being updated to the latest WP standards. Although I am surprised that error popped up for you, as it hasn’t shown up for me on any of the sites I have it installed on.

        Are you running the latest version of WordPress and the Genesis Framework? Do you have any other plugins active at the moment? Even though this file is being updated, I was just curious to see if there’s something conflicting with it. If you want me to login and take a quick look just let me know.

        I plan to have the updates ready this week. They’ll be applied to this theme (Aspire) and a few others as well.

        #22586
        Wes
        Moderator

          Didn’t know if you saw my recent reply, but I have an update ready that I wanted to see if you can test on your end.

          Just let me know.

          #22865
          Rob
          Customer

            I’m getting this same error Wes. Elevate theme

            #22911
            Rob
            Customer

              Wes?

              I’m still getting this error as well.

              #22946
              Wes
              Moderator

                @Rob which version are you running?

                #22953
                Rob
                Customer

                  Elevate 1.0.0.

                  Just checked and that’s the latest version available for download it seems.

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