After installing Answers v4.0-rc1 and all of the prerequisites, i started to enable the modules one at a time. When i got to enabling, Answers Voting i got the following error message and it takes down my entire site.
The error is happening inside of the 'answers_voting.module' file's "answers_voting_views_default_views_alter()" function.
Error displayed:
Fatal error: Unsupported operand types in /home/XX/XX/sites/all/modules/answers/answers_voting/answers_voting.module on line 63
Error in Reports
Notice: Undefined index: columns in answers_voting_views_default_views_alter() (line 63 of /home/XX/XX/sites/all/modules/answers/answers_voting/answers_voting.module).
Line 63:
$handler->display->display_options['style_options']['columns'] += array(
'value' => 'value',
);
- Version: 4.0-rc1
- Recoverable: No
- Error type: Critical - takes down whole site
- Modules effected: Answers Voting, Answers Userpoints
- User type: Administrator
Reproduce:
- Install Answers and all pre-reqs
- Enable modules: "Answers" and "Answers Voting"
Recovery:
Rename the "Answers Voting" module folder (answers_voting) to something else and access the modules page to ensure that it is disabled.
Comments
Comment #1
dsuess commentedComment #2
chipcleary commentedThanks for reporting this along with the clear details.
Unfortunately, I was not able to duplicate it. Not sure why not.
As I understand, the error occurred for you while you were enabling Answers_Voting, that right? I started with a fresh install, enabled Answers, enabled Answers_Voting, created a question, created an answer, created a new user, then voted up both the question and the answer. Did not receive the error.
I wonder whether it is related to the versions we are using. What I am using:
- Drupal 7.34
- Answers 7.x-4.0-rc1
- Answers Voting 7.x-4.0-rc1
- Views 7.x-3.10
- Chaos Tools 7.x-1.6
And also (although maybe less likely to be relevant):
- Entity Reference 7.x-1.1
- Entity API 7.x-1.6
- Rate 7.x-1.7
- Voting API 7.x-2.12
Are you using the same?
Comment #3
dsuess commentedChip, good stuff and thanks for the quick response!
The odd thing is, the error is happening at a line in PHP where the code appears to be completely legit. I will re-check my PHP configuration and report back to this thread.
Configs: Mine / Yours
Drupal: 7.34 / (same)
Answers: 7.x-4.0-rc1 / (same)
Views: 7.x-3.10 / (same)
Chaos Tools: 7.x-1.6 / (same)
----
Entity Reference: 7.x-1.1 / (same)
Entity API: 7.x-1.6 / (same)
Rate: 7.x-1.7 / (same)
Voting API: 7.x-2.12 / (same)
p.s.
Great job on this project!!
Comment #4
bluegeek9 commentedUnable to reproduce