when I update my drupal to 4.6.2,I can't use advance search.
Location /drupal/trip_search/advanced
Message Invalid argument supplied for foreach() in /home/mars/public_html/drupal/includes/tablesort.inc on line 160.
when I update my drupal to 4.6.2,I can't use advance search.
Location /drupal/trip_search/advanced
Message Invalid argument supplied for foreach() in /home/mars/public_html/drupal/includes/tablesort.inc on line 160.
Comments
Comment #1
nedjoHmm. I haven't worked with 4.6.2 yet. Any hints as to the source of this error would be appreciated.
Comment #2
mr700 commentedI did not upgrade but I see the same error with mysql 4.1.11 (latin1) and php 5.0.3 going to drupal/trip_search/advanced shows the following warnings (repeated two times):
I get the warnings only when entering the advanced search. Hope this helps.
Comment #3
Fransie commentedUsing Drupal 4.6.2, MySQL 4.1.12 and PHP 5.0.4.
I get exactly the same errors as mr700 when using the advanced search option in trip_search.
Comment #4
Arek commentedI have the same errors as mr700 but when I upgrading drupal there was error:
warning: Invalid argument supplied for foreach() in /database/updates.inc on line 2149so that ussue can be in drupal, not in trip_search
Comment #5
rjl commentedAm also having the same errors as mr700 in new installation of 4.6.3, reported this in the installation forum as http://drupal.org/node/29809 a few days ago, there is no resolve on that thread either.
Thanks for you assistance.
Comment #6
nedjoLooks like the problem is likely related to a change in the parameters for
theme_table(), see http://drupal.org/node/22218. In particular:It looks like this change crept into the 4.6.x upgrades, and that we therefore need to upgrade by changing the line
in
function trip_search_form()toI'm not able to test this right away--can someone confirm if this change solves the issue?
Comment #7
moshe weitzman commentedi'm sure that will fix it.
Comment #8
Stomp Dancer commentednedjo, the code you gave came out of the code block and with me being a beginner to php I don't want to try it without being 100% sure. What file would the changes need to be done in anyway?
Comment #9
nedjoFix applied to 4.6 and CVS head.
Comment #10
(not verified) commentedComment #11
pem commented