Problem/Motivation
An AJAX HTTP error occurred. HTTP Result Code: 500 Debugging information follows. Path: https://audiorents.com/update.php?op=selection&token=5kpotmePyYYm1NSnmJc... StatusText: error ResponseText: Error: Call to undefined function visitors_is_ip_valid() in visitors_update_7140() (line 157 of /home/audior10/public_html/sites/all/modules/visitors/visitors.install).
Steps to reproduce
update 7.12 to 7.14 apply db update
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | 3318816-update-fail-6.patch | 1.37 KB | bluegeek9 |
| #2 | Status report _ Audio Rents.pdf | 116.73 KB | jg352 |
| Screen Shot 2022-11-02 at 7.09.48 PM.png | 389.11 KB | jg352 | |
| Screen Shot 2022-11-02 at 7.10.12 PM.png | 428.26 KB | jg352 |
Issue fork visitors-3318816
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
jg352 commentedComment #3
bluegeek9 commentedThank jg352 for reporting the bug. I will have a fixed released soon.
Comment #4
joelpittet@bluegeek9 that same update hook looks like an infinite loop or something, but I'm seeing this error which is correct
$packedit doesn't exist.Maybe it was supposed to be "$ip_address"?
Comment #5
joelpittetGoing to bump to critical because that update hook could do some damage considering it's updating the db with wrong data.
Comment #6
bluegeek9 commentedI am testing this patch before making a new release.
Comment #7
joelpittetThanks @bluegeek, the update took 5min (on my fast M1 mac). The good news, it completes without error!
Maybe consider not running the
db_updatewhen there is no change? Or limiting the search? Just a thought but testing those two didn't yield much faster results because they all need to change...Anyways, thank you again!
I'll let @jg352 RTBC, but otherwise I'd commit the change and make a release as soon as you can.
Comment #10
bluegeek9 commentedAdded if statement to skip if the address is already valid.