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.
php wordpress
add a comment |
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.
php wordpress
add a comment |
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.
php wordpress
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
php wordpress
asked Nov 9 at 12:11
Don Vqlidu
52
52
add a comment |
add a comment |
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 { ... }
}
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
add a comment |
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 { ... }
}
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
add a comment |
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 { ... }
}
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
add a comment |
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 { ... }
}
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 { ... }
}
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
add a comment |
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
add a comment |
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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