serendipity_event_includeentry - Show RANDOM blocks
Posted: Mon Mar 04, 2013 6:20 am
Hi,
I want to report a bug in serendipity_event_includeentry plugin. I am using Serendipity 1.7-rc3 and PHP 5.3.1 with SQLite DB.
From the Serendipity Administration UI, if I go to "Configure Plugins", select "Show random blocks" to Yes and Save, and then if I go to "Back to Weblog" , it shows the following :
== TESTING ERROR MODE ==
Fatal error: Uncaught exception 'ErrorException' with message 'Serendipity error: sqlite_query() [<a href='function.sqlite-query'>function.sqlite-query</a>]: no such function: RAND' in D:\Mangesh\xampp\htdocs\serendipity\include\compat.inc.php:118
Stack trace:
#0 [internal function]: errorToExceptionHandler(2, 'sqlite_query() ...', 'D:\Mangesh\xamp...', 233, Array)
#1 D:\Mangesh\xampp\htdocs\serendipity\include\db\sqlite.inc.php(233): sqlite_query('SELECT *? ...', Resource id #18)
#2 D:\Mangesh\xampp\htdocs\serendipity\plugins\serendipity_event_includeentry\serendipity_event_includeentry.php(420): serendipity_db_query('SELECT *? ...', true, 'assoc', 1)
#3 D:\Mangesh\xampp\htdocs\serendipity\plugins\serendipity_event_includeentry\serendipity_event_includeentry.php(684): serendipity_event_includeentry->fetchStaticBlocks('block', 'RAND()', 1)
#4 D:\Mangesh\xampp\htdocs\serendipity\include\plugin_api.inc.php(1073): serendipity_event_includeentry->event_hook('frontend_displa...', Object(serendipity_property_bag), Arr in D:\Mangesh\xampp\htdocs\serendipity\include\compat.inc.php on line 118
This error shows up because probably there is no RAND function in SQLite. So we need to change it to RANDOM instead of RAND for SQLite..
- Mangesh Gokhale
I want to report a bug in serendipity_event_includeentry plugin. I am using Serendipity 1.7-rc3 and PHP 5.3.1 with SQLite DB.
From the Serendipity Administration UI, if I go to "Configure Plugins", select "Show random blocks" to Yes and Save, and then if I go to "Back to Weblog" , it shows the following :
== TESTING ERROR MODE ==
Fatal error: Uncaught exception 'ErrorException' with message 'Serendipity error: sqlite_query() [<a href='function.sqlite-query'>function.sqlite-query</a>]: no such function: RAND' in D:\Mangesh\xampp\htdocs\serendipity\include\compat.inc.php:118
Stack trace:
#0 [internal function]: errorToExceptionHandler(2, 'sqlite_query() ...', 'D:\Mangesh\xamp...', 233, Array)
#1 D:\Mangesh\xampp\htdocs\serendipity\include\db\sqlite.inc.php(233): sqlite_query('SELECT *? ...', Resource id #18)
#2 D:\Mangesh\xampp\htdocs\serendipity\plugins\serendipity_event_includeentry\serendipity_event_includeentry.php(420): serendipity_db_query('SELECT *? ...', true, 'assoc', 1)
#3 D:\Mangesh\xampp\htdocs\serendipity\plugins\serendipity_event_includeentry\serendipity_event_includeentry.php(684): serendipity_event_includeentry->fetchStaticBlocks('block', 'RAND()', 1)
#4 D:\Mangesh\xampp\htdocs\serendipity\include\plugin_api.inc.php(1073): serendipity_event_includeentry->event_hook('frontend_displa...', Object(serendipity_property_bag), Arr in D:\Mangesh\xampp\htdocs\serendipity\include\compat.inc.php on line 118
This error shows up because probably there is no RAND function in SQLite. So we need to change it to RANDOM instead of RAND for SQLite..
- Mangesh Gokhale