PDO is not always turned on ( esp 7.3 )
-
PDO is not always enabled on all hosts and so your plugin has a fatal error as it doesn’t check for the class existence before using it. Suggest error checking and an admin notice rather than fatal error.
[29-Oct-2019 07:50:12 UTC] PHP Fatal error: Uncaught Error: Class ‘PDO’ not found in /home/mydomain/public_html/wp-content/plugins/fluentform/app/Services/wpfluent/wpfluent.php:31
Stack trace:
#0 /home/mydomain/public_html/wp-content/plugins/fluentform/app/Modules/Registerer/Menu.php(335): wpFluent()
#1 /home/mydomain/public_html/wp-content/plugins/fluentform/app/Modules/Registerer/Menu.php(205): FluentForm\App\Modules\Registerer\Menu->renderForms()
#2 /home/mydomain/public_html/wp-includes/class-wp-hook.php(286): FluentForm\App\Modules\Registerer\Menu->renderFormAdminRoute(”)
#3 /home/mydomain/public_html/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(”, Array)
#4 /home/mydomain/public_html/wp-includes/plugin.php(465): WP_Hook->do_action(Array)
#5 /home/mydomain/public_html/wp-admin/admin.php(253): do_action(‘toplevel_page_f…’)
#6 {main}
thrown in /home/mydomain/public_html/wp-content/plugins/fluentform/app/Services/wpfluent/wpfluent.php on line 31
- The topic ‘PDO is not always turned on ( esp 7.3 )’ is closed to new replies.