Saving widget gets an undefined variable

I am willing to be that since you have not initialized the widgets pool it cannot be duplicated. So within your main class or plugin file you would add this: For Class: add_action ( ‘widgets_init’, array ( &$this, ‘my_widgets’ ) ); For .php file add_action ( ‘widgets_init’, ‘my_widgets’); then create your function public function my_widgets(){ … Read more

WP_editor problem

It doesn’t look like you’re calling add_action() correctly. It should be more like: add_action( ‘edit_page_form’, ‘wpse96952_editor’ ); function wpse96952_editor() { wp_editor( “Sample”, ‘mycontent’, array( ‘textarea_name’ => ‘mycontent’ ) ); } (content changed to mycontent after I read @vancoder’s comment)

Strange bug on post/page save

In my experience this happens when you initiate an operation (Save/Update) and then try to leave the page to do something else before the requested operation has completed. Next time you save/update a post wait until the edit page returns to normal and displays your content. Then navigate away from the edit page. Chances are … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)