Jump to:
| Project: | Finder |
| Version: | 6.x-1.6 |
| Component: | Code |
| Category: | bug report |
| Priority: | critical |
| Assigned: | Unassigned |
| Status: | closed (fixed) |
Issue Summary
Installed 6.x-1.6 on my MAMP testbed in the usual manner (copied in the entire folder, ran update.php).
Any attempt to load a finder-generated page results in whitescreen; php error is:
PHP Fatal error: Cannot use object of type stdClass as array in /Applications/MAMP/htdocs/includes/common.inc on line 924
Hitting the back button gets back to the previous page, with a bunch of warnings displayed, which I assume are related to the previous page generation that failed:
warning: Illegal offset type in isset or empty in /Applications/MAMP/htdocs/includes/common.inc on line 898.
warning: Illegal offset type in /Applications/MAMP/htdocs/includes/common.inc on line 899.
warning: Illegal offset type in /Applications/MAMP/htdocs/includes/common.inc on line 902.
warning: Illegal offset type in /Applications/MAMP/htdocs/modules/locale/locale.module on line 339.
warning: mysqli_real_escape_string() expects parameter 2 to be string, array given in /Applications/MAMP/htdocs/includes/database.mysqli.inc on line 323.
warning: Illegal offset type in /Applications/MAMP/htdocs/modules/locale/locale.module on line 356.
warning: Illegal offset type in /Applications/MAMP/htdocs/modules/locale/locale.module on line 362.
warning: mysqli_real_escape_string() expects parameter 2 to be string, array given in /Applications/MAMP/htdocs/includes/database.mysqli.inc on line 323.
warning: Illegal offset type in /Applications/MAMP/htdocs/modules/locale/locale.module on line 382.
warning: Illegal offset type in /Applications/MAMP/htdocs/modules/locale/locale.module on line 388.
warning: Illegal offset type in /Applications/MAMP/htdocs/modules/locale/locale.module on line 388.
The first warning is inside the function t($string, $args = array(), $langcode = NULL) function in common.inc
Hope this helps.
Comments
#1
Additional data point:
I had Locale enabled, but not Content translation. However, enabling Content translation does not affect the results, you still get a whitescreen.
#2
And yet more -- I enabled String translation and Finder String translation, just in case they were causing the issue. No joy, I still get a whitescreen.
#3
Nor did resaving the finder and its finder elements do anything, though it did generate a lot of "created" messages.
#4
It's Finder Search, fix coming soon
#5
Yeah, I just had some time so I stuck some debugging into common.inc and backtraced the problem to line 95 in finder_search.module...
return $theme_func($results, $finder, $keywords, $pager, $params, $form_state, $no_results);
$theme_func is somehow getting set to "t".
Thanks for the quick action on this.
#6
What's really annoying is that if my wife hadn't called me to dinner my posting on this would have beaten yours.
OTOH, her homemade salad dressing is not easily ignored.
#7
OK in the 1.7 release when the theme gets rebuilt, such as when you clear the cache under 'performance', it will set everything right.
#8
Confirming this seems to work now.
#9
Automatically closed -- issue fixed for 2 weeks with no activity.