Closed (fixed)
Project:
Apache Solr Search
Version:
6.x-1.x-dev
Component:
SolrPHP Client
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
7 Mar 2011 at 21:09 UTC
Updated:
6 Jan 2012 at 21:41 UTC
Jump to comment: Most recent file
Comments
Comment #1
pwolanin commentedOr, perhaps, move the requirements check to be just a runtime check?
and/or add a drush make file in addition or instead?
Comment #2
pwolanin commentedThis makes it just a runtime requirement.
Comment #3
elliotttf commentedThe patch works if you're configuring with Drush, but if you're enabling modules through the admin UI you'll encounter a fatal error if you click the "Search is enabled. Your site is currently 0% indexed." after enabling the modules.
Comment #4
pwolanin commentedAh, hmm, that's a good point. I didn't think it would be a fatal error, since we have an "include_once()" not "require_once()"
What fatal are you seeing in the log? Is it a "class not found" error or something else?
Comment #5
pwolanin commentedOh, there is a require_once in the Drupal_Solr_Service file.
I'm tempted to rm the drush command and add a drush_make file... what do you think?
Comment #6
elliotttf commentedFatal error: require_once() [function.require]: Failed opening required 'SolrPhpClient/Apache/Solr/Service.php' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/d6.com/sites/all/modules/apachesolr/Drupal_Apache_Solr_Service.php on line 2
Comment #7
elliotttf commentedHere's the stack trace
Comment #8
elliotttf commentedYeah, the drush command doesn't make a lot of sense unless you got into some weird case where the module was enabled but the library went away.
Drush make sounds good as a convenience though. Libraries API might provide an interface for downloading code too but can't remember off the top of my head.
Comment #9
pwolanin commentedi'm trying some more variants, but there is no easy way to do this and avoid fatal errors afaikt.
Comment #10
pwolanin commentedThis patch has more hacking around - still doesn't work. I get:
Comment #11
pwolanin commentedHere's a drush make file. It works ok if run from the directory itself, but not sure it will work recursively.
Comment #12
pwolanin commentedoops - missed needed changes to the drush inc file.
Comment #13
ruplThe patch in #12 worked for me. The makefile fetched the library properly and allowed me to drush enable apachesolr.
Comment #14
pwolanin commentedok, we should probably update the README too.
Comment #15
elliotttf commentedHere's the same patch with an update to the README file.
Comment #16
pwolanin commentedthanks elliotttf!
Comment #17
pwolanin commentedcommitted
Comment #19
kyle_mathews commentedWait... why was this committed? It broke my (and 100s of others) make files. Until Drush Make figures out how to handle recursive make files correctly #947158: Recursive makefiles can cause conflicts, modules shouldn't include actual make files in their modules. The best thing to do now is to name this make file apachesolr.make.example.
Some other issues:
#839580: Make file broken with drush make 2.0 - remove it please
#1103872: Change name of ckeditor.make to ckeditor.make.example for drush make module
Patch forthcoming.
Comment #20
kyle_mathews commentedPatch to move the make file to apachesolr.make.example
Comment #21
kyle_mathews commentedAlso update the README file with the new make file name.
Comment #22
jpmckinney commentedComment #23
pwolanin commentedWell, I found the issue above about recursive make files AFTER I committed it. Obviously I would not have put it in if I'd known ahead of time that drush make is broken when it clearly advertises support for recursive make files.
Comment #24
pwolanin commentedIn any case, please provide a normal patch, or if you want to make a git formatted one, it should only have one commit in it.
Comment #25
kyle_mathews commentedSorry. It's a bit frustrating as this sort of thing keeps happening with various contrib modules. But obviously that's Drush Make's problem not yours. What you were trying to support is how things *should* work. A new patch is attached.
Comment #26
nick_vhCommitted, thanks for the advice!
Comment #27
nick_vhComment #28
pwolanin commentedIt seems like this recursive building was working - was this change still needed?
Comment #29
nick_vh