EventON 4.4 is Live Now! - What's new?
As the subject says, the latest version of EventON Weekly View does not work with recent versions of EventON core. It will deactivate itself automatically. I have written a patch to fix this:
— eventon-weekly-view.php 2023-09-07 16:33:18
+++ eventon-weekly-view-modified.php 2023-09-07 16:33:14
@@ -32,13 +32,17 @@
return self::$_instance;
}
public function __construct(){
+ $this->super_init();
+ add_action(‘plugins_loaded’, array($this, ‘plugin_init’));
+ }
+
+ public function plugin_init(){
// check if eventon exists with addon class
if( !isset($GLOBALS[‘eventon’]) || !class_exists(‘evo_addons’) ){
add_action(‘admin_notices’, array($this, ‘notice’));
return false;
}
– $this->super_init();
$this->addon = new evo_addons($this->addon_data);
if($this->addon->evo_version_check()){
No newline at end of file
thats odd as it works on our test sites. are you using eventon core 4.4.4
Yup, I have EventOn 4.4.4 and EventON – Weekly View 2.0.1.
The Weekly View plugin displays this message without my patch:
EventON WeeklyView is NOT active! – You do not have EventON main plugin, which is REQUIRED.
My patch basically mimics the way the RSVP add-on handles checking for the core plugin.
I’m not sure if it has anything to do with the fact that with the way we install plugins, EventON core gets installed to an eventon
directory instead of eventON
(because Composer requires package names be all lowercase) and maybe that messes up the order of loading plugins. But with my patch making the weekly view add-on check for core the same way the other add-ons do it fixes it.