Closed (fixed)
Project:
Boost
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
8 Aug 2009 at 17:31 UTC
Updated:
25 Aug 2009 at 04:50 UTC
Jump to comment: Most recent file
I just installed the 2009-Aug-06 dev version of Boost. I am getting two errors when adding new content or viewing my blogs (blogs/[uid]). I do not see the error on other pages. The error is:
* warning: mysqli_real_escape_string() expects parameter 2 to be string, array given in /home/xx/public_html/xx.com/includes/database.mysqli.inc on line 323.
* warning: mysqli_real_escape_string() expects parameter 2 to be string, array given in /home/xx/public_html/xx.com/includes/database.mysqli.inc on line 323.The errors disappear if I disable the Boost module. I only get the errors when the Boost: Pages cache status block is enabled and displayed in my theme.
I did not have the errors before when I was running Boost 6.x-1.0-rc1.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | boost-543734.1.patch | 1.95 KB | mikeytown2 |
| #1 | boost-543734.patch | 1.74 KB | mikeytown2 |
Comments
Comment #1
mikeytown2 commentedI can reproduce the bug, it happens on login as well... it has something to do with _boost_get_menu_router(), which is code I lifted from http://api.drupal.org/api/function/menu_get_item
found the problem, here is the patch
Comment #2
Tally commentedI can confirm that the above error is gone after installing the patch.
But . . . now the Boost block does not show the proper page/scope info. The block shows the following for every page, not just the ones that previously had the error:
The patch code inserted at line 1803 tests $ancestors for being an array, but that variable is always an array (at least, as far as I can tell with the devel module). This means that none of the original code below the end of the if statement is executed.
Comment #3
mikeytown2 commentedThanks for checking. I can only reproduce the bug on non subdir installs, so this is a sneaky bug...
Comment #4
Tally commentedI'm running Drupal 6.13 in the root with a multi-site setup.
Applied the patch and the Boost config block displays the correct values, and the original error does not show up. :)
Thanks.
Comment #5
mikeytown2 commentedcommitted