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.
Comment | File | Size | Author |
---|---|---|---|
#2 | wysiwyg-update-7204.patch | 894 bytes | TwoD |
Comments
Comment #2
TwoDI can't reproduce this, but let's see if this patch fixes it.
Comment #3
gmclelland CreditAttribution: gmclelland commentedI 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
Comment #4
TwoDYou need to clear the cache for Drupal to pick up that class once the new version is installed.
Comment #5
gmclelland CreditAttribution: gmclelland commentedThanks, 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.
Comment #6
TwoDWhich 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. :/
Comment #7
gmclelland CreditAttribution: gmclelland commentedI'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.
Comment #8
TwoDI 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.Comment #9
gmclelland CreditAttribution: gmclelland commentedThanks TwoD
Comment #10
gonchiponchi CreditAttribution: gonchiponchi commentedI 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.
Comment #11
Ali.Geyik CreditAttribution: Ali.Geyik commented#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
Comment #12
dan.mantyla CreditAttribution: dan.mantyla commented#7 was my problem as well