$this->current_tag can be empty.

The attached patch fixes the notice.

Comments

Status: Needs review » Needs work

The last submitted patch, update.fetch_.inc-notice.patch, failed testing.

salvis’s picture

StatusFileSize
new1.23 KB

Another D6 patch that fails to apply. Do I need to add "-D6" to its filename?

Same patch renamed...

salvis’s picture

Status: Needs work » Needs review
cmysite’s picture

Version: 6.x-dev » 6.20
Assigned: Unassigned » cmysite

Notice: "Undefined index: in update_xml_parser->end() (line 257 of ... drupal\modules\update\update.fetch.inc)."
Enables simpletest 6.x-2.11 module also posible to bring this notices when core module: Update Status enabled.

dww’s picture

himerus’s picture

+1
Patch works for me.

salvis’s picture

Status: Closed (duplicate) » Needs review

update.fetch_.inc-notice.patch queued for re-testing.

Status: Needs review » Needs work

The last submitted patch, update.fetch_.inc-notice.patch, failed testing.

salvis’s picture

Status: Needs work » Closed (duplicate)
gr33nman’s picture

Using 6.23-dev...

I am getting numerous instances of this:
"WD php: Undefined index: in /var/www/mysite.com/modules/update/update.fetch.inc on line 256."
when I run drush from here:
/home/myuser/www/mysite.com/sites/all/modules

I should note that www at /home/myuser/www is actually a symlink for /var/www.
However when I run drush from:
/var/www/mysite.com/sites/all/modules
all the errors disappear.
This may offer a clue as to why this is happening for some users in core on some installations.

I hope this helps.

enatheabducr’s picture

Version: 6.20 » 6.22

It worked for me too exactly as it says. Thanks.

gmclelland’s picture

#2 worked for me. Thanks

dww’s picture

Note: this issue is closed. Please stop replying here. If you have anything to add, it belongs at #1006938: Remove PHP warnings from legacy PHP4 XML parser for new update status release history XML. Thanks.