Needs work
Project:
Creative Commons
Version:
7.x-1.0-alpha2
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
18 May 2012 at 00:18 UTC
Updated:
8 Aug 2012 at 16:24 UTC
Jump to comment: Most recent
Comments
Comment #1
Daguntzi commentedI get the same error with alpha2
Comment #2
Anonymous (not verified) commentedI am seeing this error with alpha2 also. The fatal error (and white screen) occurs because the Drupal 6 functions search_query_extract() and search_query_insert() are used within creativecommons.module.
The equivalent Drupal 7 functions are search_expression_extract() and search_expression_insert(). In my copy of the module I replaced each occurrence of the D6 functions with their D7 equivalents and now I see search results but I'm seeing additional errors. I'm not exactly an expert on the Drupal 7 forms API but I will keep trying to figure it out - maybe somebody could provide guidance?
Comment #3
kreynen commented@synchlayer and I will be working on the Creative Commons module at the Community Media Drupal Camp. This issue is at the top of the list.
Comment #4
Anonymous (not verified) commentedThanks, kreynen and synchlayer, I appreciate your work on this!
Comment #5
kreynen commentedI made the changes @Steve_Gregory_Colorado suggested, but there are still issues in the search. What's weird is hook_search doesn't exist in D7, so that needs to be changed too.
I did change the variable default so that it's possible to disable search and work around the error. I'm going to work on the View handler issues and come back to this.
Comment #6
Anonymous (not verified) commentedI understand that in Drupal 6 there was a single hook_search function with a parameter $op to distinguish operations, but Drupal 7 has split this functionality into 8 different hook_search_xxx functions.