wordpress customize control panel doesn't work after offline migration











up vote
0
down vote

favorite












I recetly migrate offline wordpress custom web template to online server via plugin All-in-One WP Migration. Everything works fine, except customize control panel. There is fatal erorr in debug log:



[09-Nov-2018 11:56:41 UTC] PHP Fatal error:  Uncaught Error: Class 'WP_Customize_Code_Editor_Control' not found in /wp-includes/class-wp-customize-manager.php:5317

Stack trace:
#0 wp-includes/class-wp-hook.php(286): WP_Customize_Manager->register_controls(Object(WP_Customize_Manager))
#1 wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array)
#2 wp-includes/plugin.php(453): WP_Hook->do_action(Array)
#3 wp-includes/class-wp-customize-manager.php(926): do_action('customize_regis...', Object(WP_Customize_Manager))
#4 wp-includes/class-wp-hook.php(286): WP_Customize_Manager->wp_loaded('')
#5 wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array)
#6 wp-includes/class-wp-customize-manager.php on line 5317


I tried some tuts like .htaccess problem, increase upload memory, deactivete all plugins or overwrite class-wp-customize-manager.php with original wp installation file.



Nothing worked.



Any idea? Many thanks in advance.










share|improve this question


























    up vote
    0
    down vote

    favorite












    I recetly migrate offline wordpress custom web template to online server via plugin All-in-One WP Migration. Everything works fine, except customize control panel. There is fatal erorr in debug log:



    [09-Nov-2018 11:56:41 UTC] PHP Fatal error:  Uncaught Error: Class 'WP_Customize_Code_Editor_Control' not found in /wp-includes/class-wp-customize-manager.php:5317

    Stack trace:
    #0 wp-includes/class-wp-hook.php(286): WP_Customize_Manager->register_controls(Object(WP_Customize_Manager))
    #1 wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array)
    #2 wp-includes/plugin.php(453): WP_Hook->do_action(Array)
    #3 wp-includes/class-wp-customize-manager.php(926): do_action('customize_regis...', Object(WP_Customize_Manager))
    #4 wp-includes/class-wp-hook.php(286): WP_Customize_Manager->wp_loaded('')
    #5 wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array)
    #6 wp-includes/class-wp-customize-manager.php on line 5317


    I tried some tuts like .htaccess problem, increase upload memory, deactivete all plugins or overwrite class-wp-customize-manager.php with original wp installation file.



    Nothing worked.



    Any idea? Many thanks in advance.










    share|improve this question
























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      I recetly migrate offline wordpress custom web template to online server via plugin All-in-One WP Migration. Everything works fine, except customize control panel. There is fatal erorr in debug log:



      [09-Nov-2018 11:56:41 UTC] PHP Fatal error:  Uncaught Error: Class 'WP_Customize_Code_Editor_Control' not found in /wp-includes/class-wp-customize-manager.php:5317

      Stack trace:
      #0 wp-includes/class-wp-hook.php(286): WP_Customize_Manager->register_controls(Object(WP_Customize_Manager))
      #1 wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array)
      #2 wp-includes/plugin.php(453): WP_Hook->do_action(Array)
      #3 wp-includes/class-wp-customize-manager.php(926): do_action('customize_regis...', Object(WP_Customize_Manager))
      #4 wp-includes/class-wp-hook.php(286): WP_Customize_Manager->wp_loaded('')
      #5 wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array)
      #6 wp-includes/class-wp-customize-manager.php on line 5317


      I tried some tuts like .htaccess problem, increase upload memory, deactivete all plugins or overwrite class-wp-customize-manager.php with original wp installation file.



      Nothing worked.



      Any idea? Many thanks in advance.










      share|improve this question













      I recetly migrate offline wordpress custom web template to online server via plugin All-in-One WP Migration. Everything works fine, except customize control panel. There is fatal erorr in debug log:



      [09-Nov-2018 11:56:41 UTC] PHP Fatal error:  Uncaught Error: Class 'WP_Customize_Code_Editor_Control' not found in /wp-includes/class-wp-customize-manager.php:5317

      Stack trace:
      #0 wp-includes/class-wp-hook.php(286): WP_Customize_Manager->register_controls(Object(WP_Customize_Manager))
      #1 wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array)
      #2 wp-includes/plugin.php(453): WP_Hook->do_action(Array)
      #3 wp-includes/class-wp-customize-manager.php(926): do_action('customize_regis...', Object(WP_Customize_Manager))
      #4 wp-includes/class-wp-hook.php(286): WP_Customize_Manager->wp_loaded('')
      #5 wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array)
      #6 wp-includes/class-wp-customize-manager.php on line 5317


      I tried some tuts like .htaccess problem, increase upload memory, deactivete all plugins or overwrite class-wp-customize-manager.php with original wp installation file.



      Nothing worked.



      Any idea? Many thanks in advance.







      php wordpress






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 9 at 12:11









      Don Vqlidu

      52




      52
























          1 Answer
          1






          active

          oldest

          votes

















          up vote
          0
          down vote













          You have to define your custom fuction class within function bind to 'customize_register' action because Class WP_Customize_Control is loaded only when theme customizer is acutally used.
          Sample code:



          add_action( 'customize_register', 'my_customize_register' );
          function my_customize_register($wp_customize) {
          //class definition must be within my_customie_register function
          class your_customize_fuction extends WP_Customize_Control { ... }
          }





          share|improve this answer





















          • Thank you very much for your help. Really aprreciate it. Sorry to be a little bit ignorant, but i honestly have no idea, what should i do right know (kind a noob in php). Is it possible to tell me step by step what code, where to put it and other steps to fix it? If you need some more my code, just ask.
            – Don Vqlidu
            Nov 9 at 14:11











          Your Answer






          StackExchange.ifUsing("editor", function () {
          StackExchange.using("externalEditor", function () {
          StackExchange.using("snippets", function () {
          StackExchange.snippets.init();
          });
          });
          }, "code-snippets");

          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "1"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














           

          draft saved


          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53225498%2fwordpress-customize-control-panel-doesnt-work-after-offline-migration%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          0
          down vote













          You have to define your custom fuction class within function bind to 'customize_register' action because Class WP_Customize_Control is loaded only when theme customizer is acutally used.
          Sample code:



          add_action( 'customize_register', 'my_customize_register' );
          function my_customize_register($wp_customize) {
          //class definition must be within my_customie_register function
          class your_customize_fuction extends WP_Customize_Control { ... }
          }





          share|improve this answer





















          • Thank you very much for your help. Really aprreciate it. Sorry to be a little bit ignorant, but i honestly have no idea, what should i do right know (kind a noob in php). Is it possible to tell me step by step what code, where to put it and other steps to fix it? If you need some more my code, just ask.
            – Don Vqlidu
            Nov 9 at 14:11















          up vote
          0
          down vote













          You have to define your custom fuction class within function bind to 'customize_register' action because Class WP_Customize_Control is loaded only when theme customizer is acutally used.
          Sample code:



          add_action( 'customize_register', 'my_customize_register' );
          function my_customize_register($wp_customize) {
          //class definition must be within my_customie_register function
          class your_customize_fuction extends WP_Customize_Control { ... }
          }





          share|improve this answer





















          • Thank you very much for your help. Really aprreciate it. Sorry to be a little bit ignorant, but i honestly have no idea, what should i do right know (kind a noob in php). Is it possible to tell me step by step what code, where to put it and other steps to fix it? If you need some more my code, just ask.
            – Don Vqlidu
            Nov 9 at 14:11













          up vote
          0
          down vote










          up vote
          0
          down vote









          You have to define your custom fuction class within function bind to 'customize_register' action because Class WP_Customize_Control is loaded only when theme customizer is acutally used.
          Sample code:



          add_action( 'customize_register', 'my_customize_register' );
          function my_customize_register($wp_customize) {
          //class definition must be within my_customie_register function
          class your_customize_fuction extends WP_Customize_Control { ... }
          }





          share|improve this answer












          You have to define your custom fuction class within function bind to 'customize_register' action because Class WP_Customize_Control is loaded only when theme customizer is acutally used.
          Sample code:



          add_action( 'customize_register', 'my_customize_register' );
          function my_customize_register($wp_customize) {
          //class definition must be within my_customie_register function
          class your_customize_fuction extends WP_Customize_Control { ... }
          }






          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Nov 9 at 13:25









          Ovidiu Barzaghideanu

          713




          713












          • Thank you very much for your help. Really aprreciate it. Sorry to be a little bit ignorant, but i honestly have no idea, what should i do right know (kind a noob in php). Is it possible to tell me step by step what code, where to put it and other steps to fix it? If you need some more my code, just ask.
            – Don Vqlidu
            Nov 9 at 14:11


















          • Thank you very much for your help. Really aprreciate it. Sorry to be a little bit ignorant, but i honestly have no idea, what should i do right know (kind a noob in php). Is it possible to tell me step by step what code, where to put it and other steps to fix it? If you need some more my code, just ask.
            – Don Vqlidu
            Nov 9 at 14:11
















          Thank you very much for your help. Really aprreciate it. Sorry to be a little bit ignorant, but i honestly have no idea, what should i do right know (kind a noob in php). Is it possible to tell me step by step what code, where to put it and other steps to fix it? If you need some more my code, just ask.
          – Don Vqlidu
          Nov 9 at 14:11




          Thank you very much for your help. Really aprreciate it. Sorry to be a little bit ignorant, but i honestly have no idea, what should i do right know (kind a noob in php). Is it possible to tell me step by step what code, where to put it and other steps to fix it? If you need some more my code, just ask.
          – Don Vqlidu
          Nov 9 at 14:11


















           

          draft saved


          draft discarded



















































           


          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53225498%2fwordpress-customize-control-panel-doesnt-work-after-offline-migration%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          How to pass form data using jquery Ajax to insert data in database?

          National Museum of Racing and Hall of Fame

          Guess what letter conforming each word