Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
field system
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
2 Nov 2013 at 00:33 UTC
Updated:
30 Apr 2024 at 17:39 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
sweetchuckThis patch is tested with PHP 5.5.5
Comment #2
chx commentedNice catch!
Comment #3
chx commentedComment #4
chx commentedComment #5
xano1: drupal-2125725-field-ui-xpath.patch queued for re-testing.
Comment #6
dries commentedCommitted to 8.x. Thanks.
Comment #8
pfrenssenThis also occurs on 7.x when testing with PHP 5.5.15.
Comment #9
pfrenssenI tried a direct port of the 8.x patch but it failed because the XPath expression yielded a table cell containing the text "No fields are present yet.". I have modified the XPath to accommodate for this.
Tests are now green on PHP 5.5.15:
Comment #10
lokapujyaRTBC, but why did it work prior to PHP5.5? was the [1] ignored by prior versions?
Comment #11
lokapujyaWhat I asked above is very unlikely; I doubt that xpath changed positional predicates. Probably php5.5 is changing the document?
Comment #12
lokapujyaAlso, the fix used in D8 also works in D7 since the labels are always in the first column. I tried it.
//tr/td[1]Don't know why pfrenssen was getting "No fields are present yet." But, that seems like a different problem.
So, shoudn't we just use the same fix that was used for D8?
Comment #13
devin carlson commentedA straight backport of #1.
I'm not sure how this currently passes on Drupal.org as I see this with a fresh install of D7 regardless of the version of PHP used.
Comment #18
poker10 commentedThanks for working on this. Most recent Drupal 7 versions were passing tests even on PHP 5.5, so I think this is no longer an issue for Drupal 7. Therefore moving back to Drupal 8 as Fixed, so that credits are assigned correctly.
If this is still an issue on D7 on one of the supported PHP versions (5.6+), feel free to create a new issue. However, Drupal 7 GitlabCI pipelines are green on all PHP versions, see: https://git.drupalcode.org/project/drupal/-/pipelines/148241, so in such case we would need a detailed steps to reproduce the issue. Thanks!