Hey guys,

I'm trying to update Drupal from 6.25 to 7.12 (latest version of htmlmail module in both), but when I run update.php I get this:

An AJAX HTTP error occurred. HTTP Result Code: 200 Debugging information follows. Path: http://www.domain.com/upgrade/update.php?op=selection&token=6VAOjoelaxnfZtKu8DJXh5xaHR6RWkZUTNpl-bCNXDo&id=40&op=do StatusText: OK ResponseText: Fatal error: Call to undefined function mailsystem_get() in /path/to/apache/upgrade/sites/all/modules/htmlmail/htmlmail.install on line 56

What can I do to fix this?

Comments

pillarsdotnet’s picture

StatusFileSize
new836 bytes

For now, apply this change to the htmlmail.install file:

diff --git a/htmlmail.install b/htmlmail.install
index 2834b9b01741e3ba09724feb951dea3790d0983a..d3f4a9c8e20b6445f9fd1066b09217d45a8a
--- a/htmlmail.install
+++ b/htmlmail.install
@@ -53,6 +53,7 @@ function htmlmail_update_7200() {
  * Rename HTMLMailMailSystem to HTMLMailSystem.
  */
 function htmlmail_update_7201() {
+  module_load_include('module', 'mailsystem');
   foreach (mailsystem_get() as $name => $value) {
     if ($value == 'HTMLMailMailSystem') {
       mailsystem_set(array($name => 'HTMLMailSystem'));
pillarsdotnet’s picture

Version: 7.x-2.64 » 7.x-2.x-dev
Assigned: Unassigned » pillarsdotnet
Category: support » bug
Status: Active » Needs review

And let me know if that works for you, please.

jfha73’s picture

That worked.

Thanks.

pillarsdotnet’s picture

Title: Update problem » Updating HTMLMail from 6.x to 7.x fails with Fatal error: Call to undefined function mailsystem_get() in htmlmail.install

Better title; rolling new release now.

pillarsdotnet’s picture

Version: 7.x-2.x-dev » 7.x-2.65
Status: Needs review » Fixed

Fixed in 7.x-2.65 release.

Status: Fixed » Closed (fixed)

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