HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux WebLive 5.15.0-79-generic #86-Ubuntu SMP Mon Jul 10 16:07:21 UTC 2023 x86_64
User: ubuntu (1000)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/html/wptoho/wp-content/themes/themify-ultra/themify/themify-startup-check.php
<?php
/**
 * Perform start up checks for Themify themes.
 * Disables the loading of the theme if requirements are not met.
 *
 * @package Themify
 */

function themify_startup_check() {

    $check = true;

    /* memory limit check */
    $tf_memory_limit = wp_convert_hr_to_bytes( ini_get( 'memory_limit' ) );
    if ( -1 !== $tf_memory_limit && $tf_memory_limit < 67108864 ) { // 64MB
        /* attempt to increase memory limit */
        if ( wp_is_ini_value_changeable( 'memory_limit' ) ) {
            ini_set( 'memory_limit', '64M' );
        } else {
            $check = new WP_Error( 'tf_memory_limit', __( 'Themify theme has been disabled due to low PHP memory limit. Please contact your host provider to increase PHP memory limit to minimum 64MB (128MB recommended).', 'themify' ) );
        }
    }

    /* PHP version check */
    if ( $check === true && version_compare( phpversion(), '7.3', '<' ) ) {
        $check = new WP_Error( 'tf_php', __( 'Please contact your host provider to upgrade PHP software. We recommend using PHP version 8 or above for greater performance and security.', 'themify' ) );
    }

    if ( is_wp_error( $check ) ) {

        if ( is_admin() ) {
            /* prevent the theme from loading */
            add_filter( 'themify_theme_includes', '__return_empty_array' );

            add_action( 'admin_notices', function() use( $check ) {
                echo '<div class="notice notice-error"><p>' . $check->get_error_message() . '</p></div>';
            } );
        }
    }

}
themify_startup_check();