Error when activating a custom plugin on production server

Thanks to @the_hobbes and @Charles, I realized that the file Activate.php was not incorporated. By adding require_once plugin_dir_path( __FILE__ ) . ‘inc/Base/Activate.php’; to my code as shown below, it works correctly: function activate_adstoolbox_plugin() { require_once plugin_dir_path( __FILE__ ) . ‘inc/Base/Activate.php’; Inc\Base\Activate::activate(); } register_activation_hook( __FILE__, ‘activate_adstoolbox_plugin’ ); Oops! Newbie’s error …

Proper use of Output Buffer for a whole php clas

Your code does not need to use output buffering anywhere. There’s nowhere that you need it. Your shortcode function is already properly using return for the output output, so nothing needs to be captured, and your popup_bootmodal_form() function is outputting in wp_footer, which is fine, and doesn’t need to be captured either.

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