Community

Three angry looking errors with the ccl_local_actions.module

New to Drupal and I thought I'd leap right in and fire up a distribution, OpenFolio

First time round I got some nasty errors - no one had any input on the OpenFolio forum, and Google revealed nothing I could understand :-(

I've started the whole thing from scratch, with a new MySQL database using PHPMyAdmin (Site is hosted on 1and1)... and I get the same three errors, suggesting I hack the code of this module... Is this normal? Feels liek really deep water for my first go at this CMS!

I have no pending updates and yet here is the error:

• Warning: array_filter() [function.array-filter]: The first argument should be an array in ccl_local_actions_menu_local_tasks_alter() (line 120 of .../profiles/openfolio/modules/contrib/ccl/ccl_local_actions/ccl_local_actions.module).
• Warning: array_filter() [function.array-filter]: The first argument should be an array in ccl_local_actions_menu_local_tasks_alter() (line 126 of .../profiles/openfolio/modules/contrib/ccl/ccl_local_actions/ccl_local_actions.module).
• Notice: Undefined index: attributes in ccl_local_actions_menu_local_tasks_alter() (line 179 of .../profiles/openfolio/modules/contrib/ccl/ccl_local_actions/ccl_local_actions.module).

[I've taken out the front of the directory path for 'profiles']

Any suggestions (other than not start with this distribution)? Thank you

Comments

You might check your php

You might check your php version on 1and1. Running Drupal on a cheap host like 1and1 is likely to be troublesome http://drupalhostingreview.com/shared-drupal-hosting/1and1. However, to be more practical, before getting into serious debugging I would try a couple of things. You could try installing this profile on a local machine if you have web development environment installed. Alternatively, If you want to keep working with it on 1and1, and if your version of php is compliant with the requirements of Drupal (at least 5.2, some modules need 5.3), you still have some options to try for a quick fix, short of serious debugging. First, always clear Drupal's caches (from Configuration > Performance, or for a more complete cache clear, using drush, the Drupal command line tool). Then if the problem persists I would disable the problem module (apparently CCL Local Actions) and check the problem is fixed. If it is I would then uninstall the problem module (using the uninstall tab on the modules page, or using drush), then re-enable the module and check whether the problem is back. If the problem is stiill there, then you are into real debugging...

Thank you for the suggestions and hints

I didn't realise I was such a cheapskate with 1and1 ;-) Just checked the PHP is version 5.2.17 ...But now I understand the significance of the MySQL not being on localhost :-(

Anyway, clearing cahes didn't fix it. And the problem module is required by just about everything else that OpenFolio is built upon, so disabling it not an option.

...so I'll try on my testing server and report back (The wheels just fell off WAMPServer, so maybe I'll go back to XAMPP afterall).

Thank you!

I am big fan of Drupal

I am big fan of Drupal Quickstart (Drupal-optimized Linux VM) for dev if you are on Windows or Mac and have enough memory to run a VM.

Here is the patch

nobody click here