Title: Plugin Error
Last modified: March 11, 2024

---

# Plugin Error

 *  [kanzbrandit123](https://wordpress.org/support/users/kanzbrandit123/)
 * (@kanzbrandit123)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/plugin-error-225/)
 * I presumed that this plugin could be the best i will use predict salat time on
   my website, but unfortunately, each time i install it to see how its free version
   work on the site to decide if i should go for the pro version, it course a critical
   error on the whole website.
 * If there is any way you can help me over this i will appreciate it
 * here is my email: [kanzbrandit@gmail.com](https://wordpress.org/support/topic/plugin-error-225/kanzbrandit@gmail.com?output_format=md)

Viewing 1 replies (of 1 total)

 *  [emregokteoe](https://wordpress.org/support/users/emregokteoe/)
 * (@emregokteoe)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/plugin-error-225/#post-17550955)
 * go and find your class-salah-loader.php and change your codes with the codes 
   written below. This will solve your problem
 * class Salah_Time_Loader { /** * Initializes the class once all plugins have loaded.*/
   static public function init() { add_action( ‘plugins_loaded’, __CLASS__ . ‘::
   setup_hooks’ ); } /** * Setup hooks if the builder is installed and activated.*/
   static public function setup_hooks() { // register script add_action(‘init’, 
   array(__CLASS__, ‘load_salah_scripts’)); add_filter(‘wp_enqueue_scripts’, array(
   __CLASS__, ‘insert_jquery’), 1); } static public function insert_jquery(){ wp_enqueue_script(‘
   jquery’, false, array(), false, false); } static public function load_salah_scripts(){
   wp_register_script( ‘PrayTimes’, SALAH_URL . ‘assets/js/PrayTimes.js’, array(‘
   jquery’),false,true ); // This outputs at header wp_register_script( ‘hijri-date’,
   SALAH_URL . ‘assets/js/hijri-date.js’, array(‘jquery’),false,true ); // This 
   outputs at header wp_enqueue_style( ‘salah-mosque-css’, SALAH_URL . ‘assets/css/
   praytime.css’, array(), ” ); $jsonMonth = file_get_contents(Salah_Time::get_salah_json_path());
   $jamat_data = json_decode($jsonMonth, true); $config_array = array( ‘siteURL’
   => site_url(), ‘siteName’ => get_bloginfo(‘name’), ‘salahTime’ => $jamat_data,);
   wp_localize_script(‘PrayTimes’, ‘salah_conf’, $config_array); } } Salah_Time_Loader::
   init();

Viewing 1 replies (of 1 total)

The topic ‘Plugin Error’ is closed to new replies.

 * ![](https://ps.w.org/salah-time-calender/assets/icon-256x256.png?rev=2445505)
 * [Salah Time Calendar](https://wordpress.org/plugins/salah-time-calender/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/salah-time-calender/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/salah-time-calender/)
 * [Active Topics](https://wordpress.org/support/plugin/salah-time-calender/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/salah-time-calender/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/salah-time-calender/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [emregokteoe](https://wordpress.org/support/users/emregokteoe/)
 * Last activity: [2 years, 2 months ago](https://wordpress.org/support/topic/plugin-error-225/#post-17550955)
 * Status: not resolved