I get the following error when trying to enable the True WYSIWYG, Commons WYSIWYG or Aloha modules:

Parse error: syntax error, unexpected T_FUNCTION in /home/w1haris5/public_html/profiles/commons/modules/contrib/aloha/filter_true_wysiwyg/filter_true_wysiwyg.module on line 231

Comments

bjprodneyl’s picture

Title: Parse error when trying to enable modules » Fatal error when trying view group/sub community information

I have installed Drupal Commons beta (commons-7.x-3.0-alpha2) for D7. I am seeing this error anytime I click on Community home pages or events.

This just started happFatal error: Call to undefined function commons_groups_get_enabled_node_types() in /home/w1haris5/public_html/profiles/commons/modules/contrib/commons_wikis/commons_wikis.module on line 56

bjprodneyl’s picture

Component: WYSIWYG » Posts
bjprodneyl’s picture

Version: » 7.x-3.0-alpha2
Component: Posts » Wikis
ezra-g’s picture

Title: Fatal error when trying view group/sub community information » unexpected T_FUNCTION on PHP 5.2.
Status: Active » Closed (duplicate)

Aloha isn't compatible with PHP 5.2 per #1819032: Enforce PHP 5.3 requirement for Commons_WYSIWYG. That's why it's not enabled when you install Commons on PHP 5.2. Per the referenced issue, it should be impossible to enable with PHP 5.2.

ezra-g’s picture

I have installed Drupal Commons beta (commons-7.x-3.0-alpha2) for D7.

Please do a fresh install of Beta1 and file a new issue if you're having problems with that release.