Skip to content

Unknown database error when trying to activate Booking Calendar Extension #112

@hahnn

Description

@hahnn

I tried to activate Booking Calendar Extension after installing it.

The extension claimed it cannot be enabled because of a FATAl ERROR.

Unfortunately, there is absolutely nothing about that in pg4wp_errors.log file.

Then i took a look at my Apache HTTPD error log file and here is what I found about this issue:

[Sun Mar 10 16:36:16.018762 2024] [php:error] [pid 19935] [client XX.XX.XX.XX:50944] PHP Fatal error:  Uncaught Exception: Invalid or unsupported SQL statement. in wp-content/pg4wp/driver_pgsql_rewrite.php:26\n
Stack trace:\n
#0 wp-content/pg4wp/driver_pgsql_rewrite.php(40): createSQLRewriter()\n
#1 wp-content/pg4wp/driver_pgsql.php(523): pg4wp_rewrite()\n
#2 wp-content/pg4wp/core.php(34) : eval()'d code(2349): wpsqli_query()\n
#3 wp-content/pg4wp/core.php(34) : eval()'d code(2263): wpdb2->_do_query()\n
#4 wp-content/pg4wp/core.php(34) : eval()'d code(3146): wpdb2->query()\n
#5 wp-content/plugins/booking/core/wpbc_functions.php(2960): wpdb2->get_results()\n
#6 wp-content/plugins/booking/core/wpbc-activation.php(660): wpbc_is_field_in_table_exists()\n
#7 wp-content/plugins/booking/core/wpbc-core.php(97): wpbc_booking_activate()\n
#8 wp-content/plugins/booking/core/any/activation.php(263): make_bk_action()\n
#9 wp-content/plugins/booking/core/any/activation.php(236): WPBC_Install->wpbc_activate()\n
#10 wp-includes/class-wp-hook.php(324): WPBC_Install->wpbc_activate_initial()\n
#11 wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()\n
#12 wp-includes/plugin.php(517): WP_Hook->do_action()\n
#13 wp-admin/includes/plugin.php(693): do_action()\n
#14 wp-admin/plugins.php(58): activate_plugin()\n
#15 {main}\n  thrown in wp-content/pg4wp/driver_pgsql_rewrite.php on line 26, referer: https://www.XXXXXXXXXXXX.XX/wp-admin/plugins.php?plugin=booking%2Fwpdev-booking.php

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions