Comments

drunken monkey’s picture

Status: Active » Fixed

Should be fixed.
The API of this module should not have changed, but note that you'll have to run update.php immediately after updating to circumvent a fatal error when clearing the cache (in the Facets module).
Note also that now the current dev version will only work with Entity API's latest dev version.

Shadlington’s picture

Error after attempting to run update.php:

An AJAX HTTP error occurred. HTTP Result Code: 200 Debugging information follows. Path: /update.php?id=4&op=do StatusText: OK ResponseText: 4{"status":true,"percentage":"100","message":"Completed 1 of 1.\u003cbr \/\u003eUpdating search_api module"}

drunken monkey’s picture

1) Damn!
2) If I'm reading the message correctly, the error consists of everything going perfectly well? Seems a little eccentric to me …
Are there other problems after this, or does everything work afterwards?

drunken monkey’s picture

Status: Fixed » Active
Shadlington’s picture

I was having other problems but I didn't trust my install (it had become a bit cluttered).
Tried it just now with a clean install and I still get that error during the update, but I don't appear to hit any further problems.

drunken monkey’s picture

If there really is a "4" in front of the response text, that could of course be the problem, since it would make the JSON invalid.
Of course, I'd still have no idea why there's suddenly a "4" output. As anyone can see, my update function has just a single line, and I just checked that the .install file also has no leading 4 for some reason, either.

Anyone else with this problem?
Otherwise, maybe you have some other module installed whose .install file has a leading "4"? Did other update scripts run successfully?

Shadlington’s picture

Status: Active » Closed (fixed)

...Huh.
There's a random 4 in my update.php.

I am an idiot - I had edited update.php to prevent a nasty bug that has been corrected in the current 7.3-dev of core but I must have screwed it up. Also, I must have screwed it up a while ago on my backup of a clean install that I have been restoring when I need to test something.

Really sorry about wasting your time like this - it does work!