I was about in the modules list to activate Panels 3.0-beta1 and the corresponding CTools. First I tried to activate all at once, but I got a timeout. So I tried to do it step by step. Since my site is broken I can't look up exactly which of the several module parts I was trying to activate, but I think it was something in the views 2 section of the module list (it had s.th. to do with Panels).
After trying to activate it I got this error:
Fatal error: Unsupported operand types in .../sites/all/modules/ctools/views_content/views_content.module on line 26
I looked up the mentioned line 26, it reads
) + $base;
the line before and after:
function views_content_menu() {
$items = array();
if (!module_exists('panels')) {
$items['admin/settings/content-views'] = array(
'title' => 'Views panes',
'access arguments' => array('administer views content plugin'),
'page callback' => 'drupal_get_form',
'page arguments' => array('views_content_admin_page'),
'description' => 'Configure Views to be used as CTools content.',
'type' => MENU_NORMAL_ITEM,
) + $base;
}
return $items;
}
I don't have programming knowledge, so cannot figure why this doesn't work.
Any help is very much appreciated, since for the moment I cannot access my website anymore.
Comments
Comment #1
merlinofchaos commentedThis is a bug that's already fixed in -dev. You can just remove the '+ $base' from that line, it should not be there.
Comment #2
degure commentedThanks a lot! I am very much impressed by the speed of your answer, wow!
It works, my site is back again. :-)
(And I also learned: if an error message shows, in which line of code the problem exists, I first could download the developer version and check, whether there is a change already in that line, and only if not then putting the question here).
Comment #3
merlinofchaos commentedYou can also check http://cvs.drupal.org/viewvc.py/drupal/contributions/modules/panels/ (which is available from most projects as the 'browse CVS repository' link on the project page) and find the file in question and look at the recent commit history.
Comment #4
degure commentedThanks, thats good to know and I will keep this in mind!
P.S.: Do you perhaps have a Paypal powered "donate button" somewhere? I see that you are doing an invaluable work regarding Drupal. At angrydonats.com I could only find the Amazon-wishlist-link but no Paypal option, as e.g. some others folks have).
Comment #5
merlinofchaos commentedSorry no, I don't want to deal with the tax implications and paypal fees of accepting donations. If you truly want to do something, the amazon wishlist is much easier to deal with (and I haven't yet gotten enough gifts in a year to worry about tax implications =)
Comment #6
degure commentedI see. Ok, small item is already on the way :-)