Skip to content

Call to undefined function is_wp_version_compatible() #414

@alimuzzaman

Description

@alimuzzaman

https://wordpress.org/support/topic/wp-stateless-v2-3-released/#post-12149522

My site is a 4.9.12 wp version and with after update to v2.3.0 version i get:

Fatal error: Uncaught Error: Call to undefined function wpCloud\StatelessMedia\is_wp_version_compatible() in /var/www/vhosts/gevbologna.org/httpdocs/wp-content/plugins/wp-stateless/lib/classes/class-bootstrap.php:212 Stack trace: #0 /var/www/vhosts/gevbologna.org/httpdocs/wp-content/plugins/wp-stateless/vendor/udx/lib-wp-bootstrap/lib/classes/class-bootstrap-plugin.php(56): wpCloud\StatelessMedia\Bootstrap->init() #1 /var/www/vhosts/gevbologna.org/httpdocs/wp-includes/class-wp-hook.php(286): UsabilityDynamics\WP\Bootstrap_Plugin->pre_init(”) #2 /var/www/vhosts/gevbologna.org/httpdocs/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array) #3 /var/www/vhosts/gevbologna.org/httpdocs/wp-includes/plugin.php(453): WP_Hook->do_action(Array) #4 /var/www/vhosts/gevbologna.org/httpdocs/wp-settings.php(327): do_action(‘plugins_loaded’) #5 /var/www/vhosts/gevbologna.org/httpdocs/wp-config.php(84): require_once(‘/var/www/vhosts…’) #6 /var/www/vhosts/gevbologna.org/httpdocs/wp-load.php(37): require_once(‘/var/www/vh in /var/www/vhosts/gevbologna.org/httpdocs/wp-content/plugins/wp-stateless/lib/classes/class-bootstrap.php on line 212

my workaorund is:

  1. manually clear “options” field in wp_options where options_name = ‘active_plugins’
  2. edit class-bootstrap.php and comment this:

//if(is_wp_version_compatible(‘5.3-RC4-46673’)){
// add_filter( ‘intermediate_image_sizes_advanced’, array($this, ‘store_can_delete_attachment’), 10, 3 );
//}

“apparently” it works … at least with my old version of WP.

Any suggestions?

Ciao from Bologna (Italy),

Diego

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions