• Resolved coconutboy

    (@megazord)


    hi support,

    i’m getting fatal error when using RTMkit with the latest Elementor. I’m also using elementor pro. Note that i’m using PHP8.2.
    Any update is very much appreciated.
    thank you

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Rometheme

    (@rometheme)

    Hi,

    Please update RTMKit to the latest version 1.6.2 and clear all caches. If the issue persists, try disabling other Elementor addons to check for conflicts. Are you also using the RTMKit PRO version? If yes, please update it to the latest version 1.0.5.
    Kindly share the exact error log so we can assist you further.

    Thread Starter coconutboy

    (@megazord)

    Hi Support, I am not using Pro version, only the free one. I wish I was able to check for conflicts but whenever I update the plugin, the whole site crashes with no access to admin. I will try again and post the log here once done.

    please go to file

    /public_html/wp-content/plugins/rometheme-for-elementor/modules/updates/updates.php

    Current (PHP 8+ only)

    static function update_is_available(self $self = new self()): bool
    {

    Fixed (PHP 7.4-compatible)

    static function update_is_available(self $self = null): bool
    {
    if ($self === null) {
    $self = new self();
    }



    and change line 198 to

    static function update_is_available(self $self = null): bool
    {
    if ($self === null) {
    $self = new self();
    }

    foreach ($self->plugins as $plugin => $data) {
        if (file_exists(WP_PLUGIN_DIR . '/' . $data['file'])) {
            $pluginInfo = $self->get_plugin_info($plugin);
            $pluginData = get_plugin_data(WP_PLUGIN_DIR . '/' . $data['file']);
            $installedVersion = $pluginData['Version'];
            $remoteVersion = $pluginInfo->version ?? null;
            if (!empty($installedVersion)) {
                $compare = version_compare($installedVersion, $remoteVersion, '<');
    
                if ($compare) {
                    return true;
                }
    
                return '';
            }
        }
    }
    
    return false;

    }

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Fatal error’ is closed to new replies.