Plugin could not be activated because it triggered a fatal error
-
Hi team,
When I try to activate the plugin I get the error: “Plugin could not be activated because it triggered a?fatal error“
Looking at the logs, it looks like the plugin tries to use the default prefix for wordpress tables and all my websites have customised prefixes for security.
Here’s the error from the server logs:
[Wed Jun 12 04:57:11.527201 2024] [php:notice] [pid 3558585] [client 202.53.39.74:0] WordPress database error Table ‘MYDATABASE.wp_posts’ doesn’t exist for query SELECT ID FROM wp_posts WHERE post_name = ‘rent-list’ && post_status = ‘publish’ && post_type = ‘page’ made by activate_plugin, do_action(‘activate_booking-and-rental-manager-for-woocommerce/rent-manager.php’), WP_Hook->do_action, WP_Hook->apply_filters, rbfw_register_activation_func, rbfw_page_create, rbfw_exist_page_by_slug, referer: https://MYWEBSITE.com/wp-admin/plugins.php?plugin=booking-and-rental-manager-for-woocommerce%2Frent-manager.php
[Wed Jun 12 04:57:11.627269 2024] [php:error] [pid 3558585] [client 202.53.39.74:0] PHP Fatal error: Uncaught Error: Call to a member function get_option() on null in /var/www/MYWEBSITE.com/wp-content/plugins/booking-and-rental-manager-for-woocommerce/inc/rbfw_functions.php:81\nStack trace:\n#0 /var/www/MYWEBSITE.com/wp-content/plugins/booking-and-rental-manager-for-woocommerce/inc/rbfw_functions.php(99): rbfw_get_option()\n#1 /var/www/MYWEBSITE.com/wp-content/plugins/booking-and-rental-manager-for-woocommerce/inc/rbfw_shortcodes.php(138): rbfw_string()\n#2 /var/www/MYWEBSITE.com/wp-includes/shortcodes.php(433): rbfw_rent_list_shortcode_func()\n#3 [internal function]: do_shortcode_tag()\n#4 /var/www/MYWEBSITE.com/wp-includes/shortcodes.php(273): preg_replace_callback()\n#5 /var/www/MYWEBSITE.com/wp-includes/class-wp-hook.php(324): do_shortcode()\n#6 /var/www/MYWEBSITE.com/wp-includes/plugin.php(205): WP_Hook->apply_filters()\n#7 /var/www/MYWEBSITE.com/wp-content/plugins/wordpress-seo/src/builders/indexable-link-builder.php(117): apply_filters()\n#8 /var/www/MYWEBSITE.com/wp-content/plugins/wordpress-seo/src/integrations/watchers/indexable-post-watcher.php(209): Yoast\WP\SEO\Builders\Indexable_Link_Builder->build()\n#9 /var/www/MYWEBSITE.com/wp-includes/class-wp-hook.php(326): Yoast\WP\SEO\Integrations\Watchers\Indexable_Post_Watcher->build_indexable()\n#10 /var/www/MYWEBSITE.com/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()\n#11 /var/www/MYWEBSITE.com/wp-includes/plugin.php(517): WP_Hook->do_action()\n#12 /var/www/MYWEBSITE.com/wp-includes/post.php(4839): do_action()\n#13 /var/www/MYWEBSITE.com/wp-content/plugins/booking-and-rental-manager-for-woocommerce/inc/rbfw_functions.php(1525): wp_insert_post()\n#14 /var/www/MYWEBSITE.com/wp-content/plugins/booking-and-rental-manager-for-woocommerce/rent-manager.php(126): rbfw_page_create()\n#15 /var/www/MYWEBSITE.com/wp-includes/class-wp-hook.php(324): rbfw_register_activation_func()\n#16 /var/www/MYWEBSITE.com/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()\n#17 /var/www/MYWEBSITE.com/wp-includes/plugin.php(517): WP_Hook->do_action()\n#18 /var/www/MYWEBSITE.com/wp-admin/includes/plugin.php(705): do_action()\n#19 /var/www/MYWEBSITE.com/wp-admin/plugins.php(60): activate_plugin()\n#20 {main}\n thrown in /var/www/MYWEBSITE.com/wp-content/plugins/booking-and-rental-manager-for-woocommerce/inc/rbfw_functions.php on line 81, referer: https://MYWEBSITE.com/wp-admin/plugins.php?plugin=booking-and-rental-manager-for-woocommerce%2Frent-manager.phpThank you,
Bruno
- You must be logged in to reply to this topic.