Getting this when adding groups or other actions:
PHP Fatal error: Call to undefined function message_subscribe_process_message() in /profiles/commons/modules/contrib/commons_notify/commons_notify.module on line 50, referer: /node/add/group

Files: 

Comments

ezra-g’s picture

Project:Commons Notify» Drupal Commons
Version:7.x-3.0» 7.x-3.2
Status:Active» Postponed (maintainer needs more info)

Can you post steps to reproduce on a fresh Commons 3.2 install?

Moving to the main Commons queue.

markbannister’s picture

Tried dev release still same issue. (BTW I'm a relative newbie to all this but, when I used drush to download dev version it did not put it in the /profiles/commons/modules/contrib/commons_notify but in sites/all/modules instead)
I'll see what I can do to reproduce on a fresh install. I am using Git on the whole site (just started learning it) maybe I can find where it started with that. Some update I did recently kicked it off.

george.r.boyce’s picture

This is probably the cause, the name of the function has changed...

In message-notify...

Changes since 7.x-2.4:

Rename message_subscribe_send_message().

Antoine_k’s picture

I'm having the same issue on node creation (whatever the type).
Surprisingly, I didn't update any module.

Antoine_k’s picture

Status:Postponed (maintainer needs more info)» Needs review

@george.r.boyce, you're right, thanks!

Modifying the name of the function in commons_notify.module on line 50 and 86 to "message_subscribe_send_message" solves the issue.
A test "if(function_exists)" could temporarily handle the two versions of the message module.

markbannister’s picture

Could have sworn I checked the names....thanks for the temp fix.

ezra-g’s picture

Status:Needs review» Active

@Antoine_k, can you file a patch containing these changes for review?

japerry’s picture

Status:Active» Fixed
Zarabadoo’s picture

Status:Fixed» Needs work

I am getting an error after this latest patch.

Fatal error: Call to undefined function message_subscribe_send_message() in /Sites/commons2/profiles/commons/modules/contrib/commons_notify/commons_notify.module on line 50

This is what I get when I am installing a fresh dev build and after I enter the welcome message.

ezra-g’s picture

Issue tags:+Commons 7.x-3.3 radar

Adding 3.3 radar tag.

ezra-g’s picture

I reverted #8 for the time being so we don't block the Gizra folks who are actively working on several features that involve fresh builds of Commons: http://drupalcode.org/project/commons_notify.git/commit/e9a2029.

ezra-g’s picture

Assigned:Unassigned» japerry

Assigning to japerry to tackle.

trevorw’s picture

trevorw’s picture

Change in #8 fixed the error for me. Thanks

MatheoDJ’s picture

Priority:Critical» Major

Change in #5 worked for me. Kudos!

ezra-g’s picture

Assigned:japerry» ezra-g
ezra-g’s picture

Status:Needs work» Fixed

We needed to reinstitute this change following #1983722: April 2013 module update meta issue. Now committed - marking as fixed. http://drupalcode.org/project/commons_notify.git/commit/ec3d868

rb2k’s picture

Still running into that with the newly rolled tarball:

WD features: Reverting commons_groups / field_instance. [notice]
WD features: Revert completed for commons_groups / field_instance. [notice]
WD features: Reverting commons_wikis / og_features_permission. [notice]
WD features: Revert completed for commons_wikis / [notice]
og_features_permission.
WD features: Reverting commons_wysiwyg / user_permission. [notice]
WD features: Revert completed for commons_wysiwyg / user_permission. [notice]
WD features: Reverting commons_wysiwyg / ckeditor_profile. [notice]
WD features: Revert completed for commons_wysiwyg / ckeditor_profile. [notice]
PHP Fatal error: Call to undefined function message_subscribe_process_message() in /vagrant/commons_files/profiles/commons/modules/contrib/commons_notify/commons_notify.module on line 50
Drush command terminated abnormally due to an unrecoverable error. [error]
Error: Call to undefined function message_subscribe_process_message()
in
/vagrant/commons_files/profiles/commons/modules/contrib/commons_notify/commons_notify.module,
line 50
Installation failed :(

a1mpreza’s picture

Installing the latest dev release as of today (2013-May-09), I get the following

Fatal error: Call to undefined function message_subscribe_process_message() in profiles/commons/modules/contrib/commons_notify/commons_notify.module on line 50

It's only on the last step that it comes up with that error message.

Once I refresh, the site is there.

ezra-g’s picture

Assigned:ezra-g» japerry
Status:Fixed» Needs work

Commons Notify is using the latest release in the drupal-org.make but a specific git commit hash when packaged via build-commons-dev.make.

We need to use the same module version in both places to resolve this error.

In the meantime, you can work around the problem by updating to the dev version of Message Notify with the commons nightly dev snapshot.

a1mpreza’s picture

During a clean install of the latest dev release (2013-May-16) I get the following error message after the site configuration

Fatal error: Call to undefined function field_attach_load() in includes/entity.inc on line 321

rb2k’s picture

edit: I still can't seem to install. Generating the example content seems to error out with the before mentioned message, even after using the dev version of the module I get:

[21-May-2013 11:05:25] PHP Fatal error: Call to undefined function message_subscribe_process_message() in /mnt/www/html/marcseegerdev/docroot/profiles/commons/modules/contrib/commons_notify/commons_notify.module on line 50

ezra-g’s picture

@rb2k - Are you packaging with build-commons-dev.make?

rb2k’s picture

@ezra-g: shame on me, the -dev build didn't use the -dev.make file :(
I fixed that and the installation worked fine

a1mpreza’s picture

During a clean install of the latest dev release (2013-May-23) I get the 2 following error messages:

An AJAX HTTP error occurred. HTTP Result Code: 500 Debugging information follows. Path: install.php?profile=commons&locale=en&id=1&op=do StatusText: Internal Server Error ResponseText: 500 Internal Server Error Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request. Apache Server.

Fatal error: Call to undefined function commons_groups_get_group_content_entity_types() in profiles/commons/modules/contrib/commons_groups/commons_groups.features.field_instance.inc on line 13

SocialNicheGuru’s picture

the patch is not included in the commons dev download

Devin Carlson’s picture

Assigned:japerry» Devin Carlson
Status:Needs work» Needs review
StatusFileSize
new770 bytes

Going through Commons Notify and Message Subscribe, it looks like the only remaining issue is to update Message Subscribe to 7.x-1.0-alpha5 which includes the changed function name that Commons Notify already uses.

The attached patch updates Message Subscribe to 7.x-1.0-alpha5.

Devin Carlson’s picture

Status:Needs review» Fixed

Committed #27 to Drupal Commons 7.x-3.x.

http://drupalcode.org/project/commons.git/commit/fa6bf89

Plazmus’s picture

Version:7.x-3.2» 7.x-3.x-dev

I just tried to install latest dev version:
7.x-3.x-dev tar.gz (20.45 MB) | zip (23.24 MB) 2013-Jun-15

Same issue strikes again.

PHP Fatal error: Call to undefined function message_subscribe_process_message() in /var/www/commons/profiles/commons/modules/contrib/commons_notify/commons_notify.module on line 50, referer: http://localhost/commons/install.php?profile=commons

To fix it, I replaced in commons_notify.module:
message_subscribe_process_message
to
message_subscribe_send_message

kay_v’s picture

Issue did not occur for me with following process, fwiw:

git clone --branch 7.x-3.x http://git.drupal.org/project/commons.git
drush make build-commons-dev.make
installed with dev desktop 7.22.23 using PHP 5.4.8

Everything appears to be working normally.

@plazmus - possible you used the 'dev' clone string instead? (i.e. git clone --branch dev http://git.drupal.org/project/commons.git). I didn't explore that version, or look into whether it might be different.

Status:Fixed» Closed (fixed)

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

patrickd’s picture

Priority:Major» Critical
Status:Closed (fixed)» Active

This issue is still existing and not fixed without the tweaks mentioned above.

The problem is still easily reproducible by launching a sandbox with commons at simplytest.me:

http://simplytest.me/project/commons

ezra-g’s picture

Status:Active» Postponed

The discrepancy in this issue will be resolved with #1983606: Move some of the Commons_* modules into the Commons distro repo. Marking as postponed pending that issue.

ezra-g’s picture

Status:Postponed» Fixed
Issue tags:-Commons 7.x-3.3 radar

There's no specific action here for Commons 3.3, so removing from the radar.

Status:Fixed» Closed (fixed)

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