I went to update to 2.3 and have encountered the following error when running update.php in the browser:

An AJAX HTTP error occurred. HTTP Result Code: 200 Debugging information follows. Path: http://imce.dev/update.php?op=selection&token=FRHa1Xteu6A-_p4946KgBC3CbfjOc4IaHL8yg3dmUvE&id=58&op=do StatusText: OK ResponseText: Fatal error: Call to undefined function wysiwyg_get_editor() in /Users/glenn/websites/imce/wwwroot/sites/all/modules/contrib/wysiwyg/wysiwyg.install on line 412

Just thought I would let you know. Let me know if you need any more information. I'm not sure what version I was upgrading from.

CommentFileSizeAuthor
#2 wysiwyg-update-7204.patch894 bytesTwoD
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

gmclelland created an issue. See original summary.

TwoD’s picture

Status: Active » Needs review
FileSize
894 bytes

I can't reproduce this, but let's see if this patch fixes it.

gmclelland’s picture

I just tried the patch you provided. It applies cleanly. I went to run the update again and get the following:

An AJAX HTTP error occurred. HTTP Result Code: 200 Debugging information follows. Path: http://imce.dev/update.php?op=selection&token=FRHa1Xteu6A-_p4946KgBC3CbfjOc4IaHL8yg3dmUvE&id=59&op=do StatusText: OK ResponseText: Fatal error: Class name must be a valid object or a string in /Users/glenn/websites/imce/wwwroot/includes/common.inc on line 8015

TwoD’s picture

You need to clear the cache for Drupal to pick up that class once the new version is installed.

gmclelland’s picture

Thanks, but I did clear the cache. I even tried doing clearing the cache several times and also did a registry rebuild via drush. Still the same message.

TwoD’s picture

Which version of Drupal core are you running?
Do you have any other modules enabled which interact with Wysiwyg?
Which PHP version are you running?

I was about to suggest you could place a small piece of code which prints out the actual class it tries to load (the class I was thinking of should not even be needed while inside the update hook), and maybe a backtrace, but the core versions I checked in have comments on lin 8015.

It's quite a bit annoying that I can't reproduce it myself, makes debugging tricky. :/

gmclelland’s picture

Status: Needs review » Closed (works as designed)

I'm sorry, I think the problem was because the wysiwyg module was disabled. I had been testing between both the wysiwyg module and the ckeditor module on this site.

As soon as I enabled the wysiwyg module, the updates worked.

TwoD’s picture

I committed that patch but the bot hasn't picked it up. Maybe because I had it in a separate branch and just merged it in so the commit date was older than the last one. Anyways, it's been applied both to 7.x-2.x and a simple drupal_load('module', 'wysiwyg'); was added to 6.x-2.x, just in case others have similar problems to the first one mentioned here.

gmclelland’s picture

Thanks TwoD

gonchiponchi’s picture

I had the same problem when i updated drupal from 7.5 to 7.53 , the problem was that the module wysiwyg was disable . i enabled it and update db worked ok , all the pathes worked.

Ali.Geyik’s picture

#7 solved the same problem for me, I was having below error after updating to 7.56

An AJAX HTTP error occurred. HTTP Result Code: 200 Debugging information follows. Path: http://www.istanbullsriders.com/update.php?op=selection&token=XXX StatusText: OK ResponseText: Fatal error: Class name must be a valid object or a string in /XXX/includes/common.inc on line 8048

Thank you @gmclelland

dan.mantyla’s picture

#7 was my problem as well