• Salam, I get this error and the WordPress error output says the following. It completely breaks the site upon activation and I have to go to by file manager and delete the plugin to get the site back. (I’m putting “-” instead of my url because the site is still under development and not live yet.)

    Fatal error: Uncaught Error: Call to a member function is_rtl() on null in /home/customer/www/-/public_html/wp-content/plugins/wp-hijri/main.php:825

    Stack trace:

    #0 /home/customer/www/-/public_html/wp-content/plugins/wp-hijri/main.php(664): WP_Hijri->wp_hijri_format(Object(DateTime), ‘D _j _F _Y\\A\\H …’)

    #1 /home/customer/www/-/public_html/wp-content/plugins/wp-hijri/main.php(438): WP_Hijri->wp_hijri_date(‘D _j _F _Y\\A\\H …’, 1649165069, Object(DateTimeZone))

    #2 /home/customer/www/-/public_html/wp-includes/class-wp-hook.php(307): WP_Hijri->handle_wp_date(‘Tue _5 _April _…’, ‘D _j _F _Y\\A\\H …’, 1649165069, Object(DateTimeZone))

    #3 /home/customer/www/-/public_html/wp-includes/plugin.php(189): WP_Hook->apply_filters(‘Tue _5 _April _…’, Array)

    #4 /home/customer/www/-/public_html/wp-includes/functions.php(315): apply_filters(‘wp_d in /home/customer/www/…/public_html/wp-content/plugins/wp-hijri/main.php on line 825

    JAK.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Mohammad I. Okfie

    (@okfie)

    Hello @callistabr,
    Did you install the last release 1.5.1?
    Try to download again from this link:
    https://downloads.www.ads-software.com/plugin/wp-hijri.1.5.1.zip

    If the problem still not solved, then please share with us your PHP version and WP version to help you.

    Mohammad,

    Thread Starter callistabr

    (@callistabr)

    Yes, that’s the version I installed at first. Then I installed the version linked in the other fatal error support ticket. I just tried again using that link and the same error.

    Fatal error: Uncaught Error: Call to a member function is_rtl() on null in /home/customer/www/-/public_html/wp-content/plugins/wp-hijri/main.php:825 Stack trace: #0 /home/customer/www/c-/public_html/wp-content/plugins/wp-hijri/main.php(664): WP_Hijri->wp_hijri_format(Object(DateTime), 'D _j _F _Y\\A\\H ...') #1 /home/customer/www/-/public_html/wp-content/plugins/wp-hijri/main.php(438): WP_Hijri->wp_hijri_date('D _j _F _Y\\A\\H ...', 1649166592, Object(DateTimeZone)) #2 /home/customer/www/-/public_html/wp-includes/class-wp-hook.php(307): WP_Hijri->handle_wp_date('Tue _5 _April _...', 'D _j _F _Y\\A\\H ...', 1649166592, Object(DateTimeZone)) #3 /home/customer/www/-/public_html/wp-includes/plugin.php(189): WP_Hook->apply_filters('Tue _5 _April _...', Array) #4 /home/customer/www/-/public_html/wp-includes/functions.php(315): apply_filters('wp_d in /home/customer/www/-/public_html/wp-content/plugins/wp-hijri/main.php on line 825

    WordPress version: WordPress 5.9.2 (“You have the latest version of WordPress.”)

    PHP 7.4.28 (“You are using our Managed PHP service, which means that we will automatically update your PHP version once a newer stable version is available. Alternatively, you can choose to manually change your PHP version.”)

    JAK!

    Thread Starter callistabr

    (@callistabr)

    Salam,
    Wordpress released an update, so I installed it and tried to install the plugin and got the same error again when I activated. I now have WP 5.9.3. The error is the same as above, except the number is 1649202040 in #1 and 2.
    JAK.

    Plugin Contributor hubaishan

    (@hubaishan)

    I can’t reproduce this bug.
    can you try to change line 825 in wp-content/plugins/wp-hijri/main.php to
    if (is_rtl()) {
    and give me feedback

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Fatal error: Uncaught Error: Call to a member function is_rtl() on null in’ is closed to new replies.