Version 5.1.3 causes Fatal Error on activation
-
Installed the plugin on two different environments (InstaWP with WP 6.3.1 and local setup 6.4-beta3)
The activation throws a fatal error caused by the /course-booking-system/includes/db/update.php?on line?118
deactivate_plugins( '/mp-timetable/mp-timetable.php' );
I assume this line doesn’t belong there.
After a quick check using find in folder search in Sublime Text, I found 7 matches for
mp-timetable
across two files/course-booking-system/course-booking-system.php:
474: $directory = get_template_directory().'/mp-timetable/';
/course-booking-system/includes/db/update.php:
112: $wpdb->query( "UPDATE ".$wpdb->prefix."posts SET post_content = REPLACE(post_content, '[mp-timetable', '[timetable') WHERE post_content LIKE ('%[mp-timetable%')" );
115: $wpdb->query( "UPDATE ".$wpdb->prefix."postmeta SET meta_value = REPLACE(meta_value, '[mp-timetable', '[timetable') WHERE meta_value LIKE ('%[mp-timetable%') AND meta_key = '_elementor_data'" ); // Elementor
118: deactivate_plugins( '/mp-timetable/mp-timetable.php' );
I wonder if there is a reason for not checking first if a plugin called
mp-timetable
is installed before firing thedeactivate_plugins
hook.
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Version 5.1.3 causes Fatal Error on activation’ is closed to new replies.