populist,

Problem/Motivation

When installing from the 7.x-1.0-beta3 profile I noticed that Panopoly Search, if left enabled in the graphical/web installer, will throw an error:

Parse error: syntax error, unexpected T_PAAMAYIM_NEKUDOTAYIM in /var/www/profiles/panopoly/modules/contrib/search_api_solr/service.inc on line 854

The install at this point will not complete normally, for Panopoly.

The same goes for drush, but the error just tells me that it has trouble installing the apps, but still installs the Drupal core.

When I deselect Search the install will work just fine. Of course, not for Drush, due to the nature of the patch, which installs whatever is defaulted, by design. #1491258: Allow Panopoly to Install with Drush (Including Apps support) Assigned to: populist

Proposed resolution

Possibly, Panopoly Search could be left deselected by default?

Thanks!

Comments

jeremiahtre.in’s picture

Issue summary: View changes

clarified some points, moved a link.

jeremiahtre.in’s picture

Issue summary: View changes

proper nouns

jeremiahtre.in’s picture

Issue summary: View changes

added clarifier

jeremiahtre.in’s picture

Issue summary: View changes

edit to sentence...

omega8cc’s picture

I agree, it shouldn't be a part of default install, so we had to fix this for Drush/Aegir with simple command:

sed -i "s/^dependencies.*search_api_solr.*//g" panopoly.info

jeremiahtre.in’s picture

@omega8cc

Awesome!

Is this a part of a larger command, or did you just edit the file in place, then run drush site-install?

Example of my thought:

# sed -i "s/^dependencies.*search_api_solr.*//g" panopoly.info
# sudo drush site-install [...other stuff...]
rowbotony’s picture

YES! Thank you omega8cc!

mrf’s picture

Status: Active » Needs review
StatusFileSize
new497 bytes

Here's a patch that removes all the dependencies for the search modules. Double checked that these are all covered again by the Search app itself so I don't think they need to be here as well.

omega8cc’s picture

It is a part of a few other changes required to make it compatible with Aegir and our BOA stack:

http://drupalcode.org/project/octopus.git/blob/HEAD:/aegir/scripts/Aegir...

As you can see, we also removed redis module, because we already have it added in every Aegir platform by default and duplicate code caused WSOD, and then we download a copy of all apps, to avoid broken first site install, because without this trick the first install fails due to fatal drush errors, while all apps are in fact correctly downloaded and you can provision more sites without this issue.

[EDIT] This needs further debugging, but for now we are using this workaround to be able to include Panopoly in the next BOA-2.0.3 release.

jeremiahtre.in’s picture

@omega8cc

Interesting! Thanks for your disclosure of your clever ways ;-).

jtreinau

jeremiahtre.in’s picture

@mrf

Awesome! I'm going to give this a shot, locally.

jtreinau

omega8cc’s picture

Status: Needs review » Reviewed & tested by the community
StatusFileSize
new1010 bytes

Here is a better patch - not that you must skip also panopoly_search feature, as otherwise it will try to enable all those search modules causing fatal error anyway.

populist’s picture

Status: Reviewed & tested by the community » Fixed
StatusFileSize
new578 bytes

No reason to throw the baby out with the bathwater :) The issue here is that when Search API has a Solr setup it tries to use that for various things (i.e. #1580770: ApacheSolr error when disabling demo module) and errors when it can't connect to Solr. I suppose that is OK behavior since if you setup Solr you want it to work, but Panopoly Search ships with Solr support.

The resolution I think will work (see attached patch) is to disable the Solr indexes by default and include a NEW Search API DB backend so things still are awesome in Search but if you want solr you have to do more work. This is ready to roll for Beta 4, but holla around this.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Anonymous’s picture

Issue summary: View changes

broken eng/