MySQLI error adding new entries version 2.3 beta 1

Found a bug? Tell us!!
Post Reply
corcons
Regular
Posts: 53
Joined: Sun Jun 30, 2019 11:54 pm

MySQLI error adding new entries version 2.3 beta 1

Post by corcons » Tue Jul 16, 2019 11:29 pm

Hi, I just finished my upgrade to version 2.3 beta 1 and be not able to adding new entries. I can update or delete. Error message:

Code: Select all

== ERROR-REPORT (BETA/ALPHA-BUILDS) ==
Warning: mysqli_query(): Empty query in /home/corconsc/blog.corcons.com/de/include/db/mysqli.inc.php on line 68.
For more details set $serendipity['production'] = 'debug' in serendipity_config_local.inc.php to receive a stack-trace.



Fatal error: Uncaught ErrorException: Warning: mysqli_query(): Empty query in /home/corconsc/blog.corcons.com/de/include/db/mysqli.inc.php:68
Stack trace:
#0 [internal function]: errorToExceptionHandler(2, 'mysqli_query():...', '/home/corconsc/...', 68, Array)
#1 /home/corconsc/blog.corcons.com/de/include/db/mysqli.inc.php(68): mysqli_query(Object(mysqli), '')
#2 /home/corconsc/blog.corcons.com/de/plugins/serendipity_event_metadesc/serendipity_event_metadesc.php(251): serendipity_db_query(NULL)
#3 /home/corconsc/blog.corcons.com/de/include/plugin_api.inc.php(1138): serendipity_event_metadesc->event_hook('backend_save', Object(serendipity_property_bag), Array, 0)
#4 /home/corconsc/blog.corcons.com/de/include/functions_entries.inc.php(1470): serendipity_plugin_api::hook_event('backend_save', Array, 0)
#5 /home/corconsc/blog.corcons.com/de/include/admin/entries.inc.php(90): serendipity_updertEntry(Array)
#6 /home/corconsc/blog.corcons.com/de/serendipity_admin.php(172): include('/home/corconsc/...')
#7 {main}
thrown in /home/corconsc/blog.corcons.com/de/include/db/mysqli.inc.php on line 68

== ERROR-REPORT (BETA/ALPHA-BUILDS) == 
Fatal Error: Uncaught ErrorException: Warning: mysqli_query(): Empty query in /home/corconsc/blog.corcons.com/de/include/db/mysqli.inc.php:68
Stack trace:
#0 [internal function]: errorToExceptionHandler(2, 'mysqli_query():...', '/home/corconsc/...', 68, Array)
#1 /home/corconsc/blog.corcons.com/de/include/db/mysqli.inc.php(68): mysqli_query(Object(mysqli), '')
#2 /home/corconsc/blog.corcons.com/de/plugins/serendipity_event_metadesc/serendipity_event_metadesc.php(251): serendipity_db_query(NULL)
#3 /home/corconsc/blog.corcons.com/de/include/plugin_api.inc.php(1138): serendipity_event_metadesc->event_hook('backend_save', Object(serendipity_property_bag), Array, 0)
#4 /home/corconsc/blog.corcons.com/de/include/functions_entries.inc.php(1470): serendipity_plugin_api::hook_event('backend_save', Array, 0)
#5 /home/corconsc/blog.corcons.com/de/include/admin/entries.inc.php(90): serendipity_updertEntry(Array)
#6 /home/corconsc/blog.corcons.com/de/serendipity_admin.php(172): include('/home/corconsc/...')
#7 {main}
thrown in /home/corconsc/blog.corcons.com/de/include/db/mysqli.inc.php on line 68.
For more details set $serendipity['production'] = 'debug' in serendipity_config_local.inc.php to receive a stack-trace.



Fatal error: Uncaught ErrorException: Fatal Error: Uncaught ErrorException: Warning: mysqli_query(): Empty query in /home/corconsc/blog.corcons.com/de/include/db/mysqli.inc.php:68
Stack trace:
#0 [internal function]: errorToExceptionHandler(2, 'mysqli_query():...', '/home/corconsc/...', 68, Array)
#1 /home/corconsc/blog.corcons.com/de/include/db/mysqli.inc.php(68): mysqli_query(Object(mysqli), '')
#2 /home/corconsc/blog.corcons.com/de/plugins/serendipity_event_metadesc/serendipity_event_metadesc.php(251): serendipity_db_query(NULL)
#3 /home/corconsc/blog.corcons.com/de/include/plugin_api.inc.php(1138): serendipity_event_metadesc->event_hook('backend_save', Object(serendipity_property_bag), Array, 0)
#4 /home/corconsc/blog.corcons.com/de/include/functions_entries.inc.php(1470): serendipity_plugin_api::hook_event('backend_save', Array, 0)
#5 /home/corconsc/blog.corcons.com/de/include/admin/entries.inc.php(90): serendipity_updertEntry(Array)
#6 /home/corconsc/blog.corcons.com/de/serendipity_admin.php(172): include('/home/cor in /home/corconsc/blog.corcons.com/de/include/db/mysqli.inc.php on line 68

corcons
Regular
Posts: 53
Joined: Sun Jun 30, 2019 11:54 pm

Re: MySQLI error adding new entries version 2.3 beta 1

Post by corcons » Wed Jul 17, 2019 12:38 am

I've set $expectError = true in /include/db/mysqli.inc and I be able to add new entries. This is not the way to do it. There is the second var missing before.

Post Reply