Problem/Motivation

Some times a theme or module may attempt to add a JavaScript file that does not actually exist. When this happens, _locale_parse_js_file() causes a PHP warning whenever the cache is cleared and it tries to parse the non-existing file.

In the following example the theme foo attempts to add the file bar.js.

Warning: file_get_contents(sites/all/themes/foo/bar.js): failed to open stream: No such file or directory in file_get_contents() (line 1488 of /var/www/drupal/includes/locale.inc).

This is of course not a common scenario, but it can be quite bothersome when working with themes and modules out of ones own control.

Proposed resolution

Adding a simple file_exists() before file_get_contents() in locale.inc's _locale_parse_js_file() fixes the problem without any side effects. A patch containing this fix is attached.

Remaining tasks

Rework Tests For D8 so that they pass #52
Commit D8 patch

RTBC patch for D7 #33
Commit D7 patch

User interface changes

None.

API changes

None.

CommentFileSizeAuthor
#117 reroll_diff_114-117.txt1.9 KBpooja saraah
#117 1803330-117.patch3.59 KBpooja saraah
#116 1803330-nr-bot.txt5.31 KBneeds-review-queue-bot
#114 1803330-114.patch3.66 KBAnchal_gupta
#113 803330-113.patch28.54 KBAnchal_gupta
#98 1803330-98-interdiff.txt1.96 KBlokapujya
#98 1803330-98.patch3.63 KBlokapujya
#96 drupal-add-file_exists-to-1803330-96.patch4.65 KBtommycox
#96 drupal-add-file_exists-to-1803330-96-tests.patch3.97 KBtommycox
#96 interdiff.txt493 bytestommycox
#95 1803330-95.patch3.64 KBlokapujya
#95 1803330-95-interdiff.txt685 byteslokapujya
#92 1803330-92.patch3.65 KBlokapujya
#92 1803330-92-test-only.patch3.02 KBlokapujya
#92 1803330-92-interdiff.txt1.51 KBlokapujya
#89 1803330-89.patch3.7 KBlokapujya
#89 1803330-89-interdiff.txt1.4 KBlokapujya
#88 drupal-add-file_exists-to-1803330-88.png90.24 KBtommycox
#86 drupal-add-file_exists-to-1803330-85.patch4.32 KBtommycox
#86 drupal-add-file_exists-to-1803330-85-tests.patch3.74 KBtommycox
#86 interdiff.txt677 bytestommycox
#83 drupal-add-file_exists-to-1803330-83.patch6.15 KBtommycox
#80 1803330-80.patch3.27 KBlokapujya
#80 1803330-80-interdiff.txt1.8 KBlokapujya
#78 1803330-78.patch3.28 KBlokapujya
#78 1803330-78-interdiff.txt2.26 KBlokapujya
#76 1803330-75-interdiff.txt2.24 KBlokapujya
#75 1803330-add-watchdog.txt465 byteslokapujya
#75 1803330-75.patch2.9 KBlokapujya
#75 1803330-75-interdiff.txt0 byteslokapujya
#66 1803330-66.patch2.87 KBlokapujya
#66 interdiff-1803330-66.txt600 byteslokapujya
#61 interdiff-1803330-61.txt651 byteslokapujya
#61 1803330-61.patch2.87 KBlokapujya
#52 1803330-tests-with-bugfix-52.patch2.87 KBtommycox
#52 1803330-tests-without-bugfix-52.patch2.35 KBtommycox
#52 interdiff-1803330-47-52.txt1.38 KBtommycox
#49 1803330-just-the-tests-49.patch2.6 KBtommycox
#47 interdiff-1803330-45-47.txt5.11 KBtommycox
#47 1803330-47.patch3.12 KBtommycox
#45 1803330-locale-add-js-45.patch3.53 KBtayzlor
#33 1803330-33-D7.patch3.68 KBlokapujya
#21 locale-D7_locale_check_file_exists-1803330-21-BEFOREPATCHING.patch2.87 KBJaypan
#21 locale-D7_locale_check_file_exists-1803330-21.patch3.34 KBJaypan
#15 locale-D8_locale_check_file_exists-180330-15-BEFOREPATCHING.patch3.02 KBJaypan
#15 locale-D8_locale_check_file_exists-180330-15.patch3.54 KBJaypan
#18 test-patch.patch210 bytesJaypan
#5 locale-D7_locale_check_file_exists-1803330-1.patch478 bytesJaypan
#3 locale-D7_locale_check_file_exists-1803330-1.patch478 bytesJaypan
#2 locale_file_exists_d8-1803330.patch532 bytesyosh
locale_file_exists.patch478 bytesyosh
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Anonymous’s picture

Version: 7.x-dev » 8.x-dev

Is this issue fixed for 8.x-dev?

yosh’s picture

Issue remains in Drupal 8, relevant patch attached.

Warning: file_get_contents(themes/foo/bar.js): failed to open stream: No such file or directory in _locale_parse_js_file() (line 686 of core/modules/locale/locale.module).

Jaypan’s picture

Issue exists in D7. Patch for D7 attached.

Status: Needs review » Needs work

The last submitted patch, locale-D7_locale_check_file_exists-1803330-1.patch, failed testing.

Jaypan’s picture

Version: 8.x-dev » 7.x-dev
Status: Needs work » Needs review
FileSize
478 bytes

Test previously failed due to version incompatibility. Changing the version to 7 for patch testing purposes. Will switch back to 8 after patch has finished testing.

Jaypan’s picture

Version: 7.x-dev » 8.x-dev

Testing complete - changing version back to D8.

yosh’s picture

The patch for D7 attached in OP already passed testing, was there really a need to test it again?

Jaypan’s picture

I hadn't noticed it, or I wouldn't have posted it.

Gyver06’s picture

I tested this last #5 patch since I had the same error recently after installing a new module.
Just to confirm this patch effectively solves this displayed error.
Thanks

Jaypan’s picture

Status: Needs review » Reviewed & tested by the community

Yes, I've been using it and it fixes the problem for me too.

webchick’s picture

Status: Reviewed & tested by the community » Needs work
Issue tags: +Needs tests, +Needs backport to D7

Thanks for the fix! However, we like to include an automated test each time we fix a bug, because that way we don't end up re-introducing the problem at a later date. Tagging as "Needs tests." (Also tagging with needs backport, since it seems this problem occurs in D7 as well)

The original post seems to do a good job of laying out how to reproduce the bug. We just need that in code. See http://drupal.org/node/1468170 for more details.

Jaypan’s picture

Status: Needs work » Reviewed & tested by the community

I don't think you read the thread through properly. Not only are their patches for both D7 and D8 in here, both of them have passed the simpletest. You'll notice I temporarily switched the version back to D7 in order to have the simpletest run on D7, then switched it back to D8 after that.

marcingy’s picture

Status: Reviewed & tested by the community » Needs work

The patch needs new simple tests that confirms that the specific fix works.

Jaypan’s picture

Sorry, I misunderstood webchicks comments. I didn't realize tests had to be created for the patch. Makes sense.

Jaypan’s picture

Attaching patch with simpletest for D8.

Note that this is my first simpletest patch submission for Drupal, so it should probably be reviewed by someone in the know even if it passes the automated testing system.

The first patch includes the simpletest, without the patch applied (supposed to fail)
The second patch includes the simpletest with the patch applied (supposed to succeed)

The last submitted patch, locale-D8_locale_check_file_exists-180330-15.patch, failed testing.

Jaypan’s picture

Edit: I've re-tested the second patch, and it passed testing, so the comment below can be ignored.

I don't even know where to begin to fix that. The error is being reported in Views, something to do with a Views handler. But it's appearing in both tests, and the first test is simply the addition of the simpletest files (including a hidden module) which shouldn't have anything to do with Views at all, or even change anything for that matter.

Jaypan’s picture

Status: Needs work » Needs review
FileSize
210 bytes

Adding patch that should definitely work as it's only added one line of irrelevant code (1 == 1) to the index file. I'm trying to figure out whether the last failed patch is a problem in my code or in the core code.

This patch can be safely ignored by everyone.

Jaypan’s picture

Jaypan’s picture

Hmm. Looks like it must have been a system bug. My test patch worked fine, so I re-tested the second patch in post #15, and it cleared this time. So the D8 patch appears to be good to go. I will work on the D7 patch next.

Jaypan’s picture

D7 patch attached.

Note: temporarily changing the version to D7 so as to ensure the patch is tested against D7. Version will be switched back to D8 after test has been run.

The first patch includes the simpletest without the patch applied (supposed to fail)
The second patch includes the simpletest with the patch applied (supposed to succeed)

Jaypan’s picture

Version: 7.x-dev » 8.x-dev

Test passed. Setting thread back to D8.

Jaypan’s picture

Bump

scronide’s picture

I'd be wary of this patch because it would hide the fact that the module/theme actually has a problem that needs to be corrected.

Somewhat related: http://drupal.org/node/1715222

Jaypan’s picture

I'd be wary of this patch because it would hide the fact that the module/theme actually has a problem that needs to be corrected.

Let's trace this problem back a bit. First some background. The Drupal JavaScript framework provides the Drupal.t() and Drupal.formatPlural() functions. These functions works like the Drupal core functions t(), format_plural(). When the locale module is enabled, it supplies translations where these functions are called.

Any part of the system can add javascript files using drupal_add_js(). Any part of the system can also call drupal_get_js() to get the current list of javascript items. drupal_get_js() then invokes hook_js_alter() so that any module can alter the javascript object. The locale module implements this hook, and parses all javascript files to see if they have used the Drupal.t() or Drupal.formatPlural() functions. It gets the contents of these files by calling file_get_contents().

The problem here is that a module developer may attempt to add a non-existent js file using drupal_add_js(). A site builder then uses that 3rd party module, enables the locale module, and gets this error. So if the site builder wants to fix this error, they have to either hack core, or hack the 3rd party module, both of which are recommend against. [The other option would be turning off error reporting, but that's overkill to deal with this one error.]

This is what happened in my case. The module developer had some code that attempted to add a non-existent file. I reported the error, but in the meantime I was left with this error unless/until the developer chose to fix it.

Many Drupal site builders do not know how to apply patches, and/or are unable/unwilling to alter core. If we want Drupal to be accessible to the community at large, we at the very least need to be suppressing this message by calling file_exists() before attempting to add a file, and possibly implementing an API to handle this situation (writing to the dblog() and/or writing to the javascript console for example). Right now we have left a hole in the system, and are relying on PHP error reporting to catch it.

scronide’s picture

Silently catching errors undermines the purpose of PHP warnings, making it very difficult for the module maintainer to discover the bug while introducing a performance hit. Suppressing the warning and adding a new way to log it would be reinventing the wheel, as this is exactly what the error display options are for. The correct course of action is for the site builder to disable the display of error messages on their production sites, patch their copy of the module (even if only to include a stub file) and report the bug to the maintainer.

I'm sympathetic to the idea of non-technical administrators encountering this problem but, for the sake of security, production sites should not have error reporting enabled. A better argument would be to turn off error reporting by default: http://drupal.org/node/688638

Jaypan’s picture

And this is why people find Drupal unfriendly

Sorry, but I can't agree with you. This just puts Drupal out of the league of your average developer and is an elitist stance.

clemens.tolboom’s picture

Status: Needs review » Needs work

Another use case is using BASIC AUTH on the webserver. I got this error
file_get_contents(http://example.com/sites/example.com/files/js/wysiwyg/wysiwyg_tinymce_Vx...): failed to open stream: HTTP request failed! HTTP/1.1 401 Authorization Required in _locale_parse_js_file() (regel 1488 van /var/www/drupal7/includes/locale.inc).

The test for file_exists on the parsed $path will probably and thus suppress the error which is not good.

See also #1814980: file_get_contents is used on remote URIs in locale.inc for another use case.

Thanks @Jaypan for trying to solve this. Unfortunately is needs works figuring out the other path.

Is this still a bug in Drupal 8?

helmo’s picture

to elaborate on @clemens.tolboom's comment: Why should we do an http request for this? I would expect these files to be accessible via public://, so a direct file operation without a trip through the http stack, should be possible.

elianarunner’s picture

Hi, can someone explain further how to use this patch? I am relatively new with drupal and want to make sure I apply this in the correct way. Thanks!

helmo’s picture

@elianarunner: The best explanation is on https://drupal.org/patch/apply

joelpittet’s picture

Issue summary: View changes
Issue tags: +Needs reroll

The 7 patch needs a re-roll.

patching file includes/locale.inc
patching file modules/locale/locale.test
Hunk #2 FAILED at 3090.
1 out of 2 hunks FAILED -- saving rejects to file modules/locale/locale.test.rej
patching file modules/locale/tests/locale_test_add_js.info
patching file modules/locale/tests/locale_test_add_js.module
lokapujya’s picture

reroll attempt. Please review closely since it is 3AM for me.

Status: Needs review » Needs work

The last submitted patch, 33: 1803330-33-D7.patch, failed testing.

lokapujya’s picture

Issue tags: +Needs reroll

Sorry, didn't work. Feel free to take this. Otherwise, I'll try again in a few days.

lokapujya’s picture

Version: 8.x-dev » 7.x-dev
Status: Needs work » Needs review
Issue tags: -Needs reroll

Changing to 7.x for the testbot.

lokapujya’s picture

33: 1803330-33-D7.patch queued for re-testing.

howdytom’s picture

@ clemens.tolboom

#28
Yes, I am able to reproduce this. We’re running a test site using Basic Authentication. Occasionally we get the error message, too:
file_get_contents(http://example.com/sites/example.com/files/js/wysiwyg/wysiwyg_tinymce_Vx...): failed to open stream: HTTP request failed! HTTP/1.1 401 Authorization Required in _locale_parse_js_file() (regel 1488 van /var/www/drupal7/includes/locale.inc).

mgifford’s picture

Version: 7.x-dev » 8.x-dev

Changing it back so we can get this into _locale_parse_js_file() in D8. #15.

DrCord’s picture

I get this problem when a url it tries to parse begins with a "/" (a relative url for an angular app on my site).

I fixed it by adding:

    $filepath = preg_replace('#$/#', '', $filepath);

between lines 1486 and 1487,

this fixed certain things but the patch worked better...oops, sry.

lokapujya’s picture

Issue tags: +needs forwardport to D8

Well, the patch in #15 needs to be retested.

The last submitted patch, 15: locale-D8_locale_check_file_exists-180330-15.patch, failed testing.

lokapujya’s picture

Status: Needs review » Needs work
Issue tags: -needs forwardport to D8 +Needs reroll
tayzlor’s picture

Status: Needs work » Needs review
FileSize
3.53 KB

Re-rolled patch against latest D8

tommycox’s picture

Assigned: Unassigned » tommycox
Status: Needs review » Needs work

Patch has a hook_menu, drupal_add_js(), and isn't actually in a functioning state (test doesn't appear in admin/config/development/testing). Reworking this and will submit updated patch soon.

tommycox’s picture

Status: Needs work » Needs review
Issue tags: -Needs reroll
FileSize
3.12 KB
5.11 KB

Moved LocaleAddJSTest.php to core/modules/locale/src/Tests to reflect PSR-4 standards. Also converted .info file to .info.yml. This fixed the test appearing in admin/config/development/testing. Removed the hook_menu as well as the drupal_add_js and replaced with hook_page_attachments per the former functions being deprecated. Test is now functioning and can be reviewed by simply commenting out lines 1048-1050 of the locale.module and running LocaleAddJSTest from the Testing UI.

star-szr’s picture

Can we also get a version of the patch with only the test coverage uploaded? That way we can make sure the tests fail without the bugfix and will catch regressions. Thanks @Tommy Cox!

tommycox’s picture

Status: Needs review » Needs work

The last submitted patch, 49: 1803330-just-the-tests-49.patch, failed testing.

tommycox’s picture

Status: Needs work » Needs review

The tests fail sans bugfix. Ready for review!

tommycox’s picture

Converted getInfo() to PHPDoc. Removed setUp(). Cleaned up comments.

The last submitted patch, 52: 1803330-tests-without-bugfix-52.patch, failed testing.

star-szr’s picture

Issue tags: +Performance, +needs profiling

I realized I commented in #48 but since this got a bump I'm adding performance related tags since in other areas we have actually been removing calls to file_exists().

Is there another approach we can take?

Status: Needs review » Needs work

The last submitted patch, 52: 1803330-tests-with-bugfix-52.patch, failed testing.

Berdir’s picture

Issue tags: -Performance, -needs profiling

We're about to parse those JS files anyway, so a file_exists() doesn't matter for performance. See the file_get_contents() on the next line.

file_exists() is problematic when it is about php files that we could serve from opcache and won't require IO at all in some configurations. But here, it really doesn't matter.

star-szr’s picture

Fair enough, thanks @Berdir :)

MediaFormat’s picture

Issue summary: View changes

Edit Remaining Tasks in Summary

lokapujya’s picture

+++ b/core/modules/locale/tests/modules/locale_test_add_js/locale_test_add_js.module
@@ -7,24 +7,10 @@
+  $page['#attached']['js'][] =

Maybe the 'js' needs to be 'library' ?

lokapujya’s picture

Status: Needs work » Needs review
FileSize
2.87 KB
651 bytes

Will just try it.

Status: Needs review » Needs work

The last submitted patch, 61: 1803330-61.patch, failed testing.

mgifford’s picture

Was the test aborted on purpose or should this be re-queued?

joelpittet’s picture

Likely accidental, I added another test.

The last submitted patch, 61: 1803330-61.patch, failed testing.

lokapujya’s picture

Status: Needs work » Needs review
FileSize
600 bytes
2.87 KB

Status: Needs review » Needs work

The last submitted patch, 66: 1803330-66.patch, failed testing.

lokapujya’s picture

Status: Needs work » Needs review

The last submitted patch, 61: 1803330-61.patch, failed testing.

scronide’s picture

Note that error reporting is disabled by default in D8 since https://www.drupal.org/node/2226761

joelpittet’s picture

Assigned: tommycox » Unassigned

Should we add a watchdog message as this shouldn't exist as a problem but it does?

tommycox’s picture

Version: 8.0.x-dev » 8.2.x-dev
lokapujya’s picture

+++ b/core/modules/locale/src/Tests/LocaleAddJSTest.php
@@ -0,0 +1,36 @@
+ * Tests adding JavaScript when locale module is enabled

+++ b/core/modules/locale/tests/modules/locale_test_add_js/locale_test_add_js.module
@@ -0,0 +1,16 @@
+ * test for non-existence of error message
...
+ * Adds a non existent js file to the page

I think these should end with periods.

lokapujya’s picture

Status: Needs review » Needs work
lokapujya’s picture

Assigned: Unassigned » lokapujya
Status: Needs work » Needs review
FileSize
0 bytes
2.9 KB
465 bytes
lokapujya’s picture

Assigned: lokapujya » Unassigned
FileSize
2.24 KB

The actual interdiff for #75. Attached a start to the watchdog in the last post, but not sure exactly what to do about the watchdog.

tommycox’s picture

Status: Needs review » Needs work

The current test doesn't cause an error anymore without the patch, rendering it useless.

+++ b/core/modules/locale/tests/modules/locale_test_add_js/locale_test_add_js.module
@@ -0,0 +1,16 @@
+function locale_test_add_js_page_attachments(&$page) {
+  $page['#attached']['library'][] =
+    drupal_get_path('module', 'locale_test_add_js') . '/non_existent_js_file.js';
+}

This likely needs to be tested and updated. I'm guessing this is no longer the best practice for attaching JavaScript.

lokapujya’s picture

Assigned: Unassigned » lokapujya
Status: Needs work » Needs review
FileSize
2.26 KB
3.28 KB

Made some updates. Not sure why, but the test module hook doesn't seem to get called.

lokapujya’s picture

Assigned: lokapujya » Unassigned
lokapujya’s picture

The last submitted patch, 78: 1803330-78.patch, failed testing.

Status: Needs review » Needs work

The last submitted patch, 80: 1803330-80.patch, failed testing.

tommycox’s picture

This should do the trick

tommycox’s picture

Status: Needs work » Needs review
tommycox’s picture

tommycox’s picture

Whoops, included local testing module in last commit. Re-rollll

lokapujya’s picture

Thanks for figuring out the library attachment! What do you think about the watchdog?

tommycox’s picture

Issue summary: View changes
FileSize
90.24 KB

Makes sense to me.

One issue: I can't get the test patch (drupal-add-file_exists-to-1803330-85-tests.patch) to fail, which it should. If I install the test module as a regular module the issue is reproduced:
screenshot

lokapujya’s picture

Some of this is not needed, but I didn't have time to clean it. Shows the bug though, I think.

Status: Needs review » Needs work

The last submitted patch, 89: 1803330-89.patch, failed testing.

The last submitted patch, 89: 1803330-89.patch, failed testing.

lokapujya’s picture

The last submitted patch, 92: 1803330-92-test-only.patch, failed testing.

Status: Needs review » Needs work

The last submitted patch, 92: 1803330-92.patch, failed testing.

lokapujya’s picture

Status: Needs work » Needs review
FileSize
685 bytes
3.64 KB

uncomment the fix.

tommycox’s picture

Great! I just removed locale from the test setup as it's already a dependency of locale_test_add_js.module. This finally looks RTBC to me.

The last submitted patch, 96: drupal-add-file_exists-to-1803330-96-tests.patch, failed testing.

lokapujya’s picture

Comment Adjustments.

Version: 8.2.x-dev » 8.3.x-dev

Drupal 8.2.0-beta1 was released on August 3, 2016, which means new developments and disruptive changes should now be targeted against the 8.3.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.3.x-dev » 8.4.x-dev

Drupal 8.3.0-alpha1 will be released the week of January 30, 2017, which means new developments and disruptive changes should now be targeted against the 8.4.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

candelas’s picture

Path #33 still working with Drupal 7.54. Thanks @lokapujya :)

Version: 8.4.x-dev » 8.5.x-dev

Drupal 8.4.0-alpha1 will be released the week of July 31, 2017, which means new developments and disruptive changes should now be targeted against the 8.5.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.5.x-dev » 8.6.x-dev

Drupal 8.5.0-alpha1 will be released the week of January 17, 2018, which means new developments and disruptive changes should now be targeted against the 8.6.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.6.x-dev » 8.7.x-dev

Drupal 8.6.0-alpha1 will be released the week of July 16, 2018, which means new developments and disruptive changes should now be targeted against the 8.7.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.7.x-dev » 8.8.x-dev

Drupal 8.7.0-alpha1 will be released the week of March 11, 2019, which means new developments and disruptive changes should now be targeted against the 8.8.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.8.x-dev » 8.9.x-dev

Drupal 8.8.0-alpha1 will be released the week of October 14th, 2019, which means new developments and disruptive changes should now be targeted against the 8.9.x-dev branch. (Any changes to 8.9.x will also be committed to 9.0.x in preparation for Drupal 9’s release, but some changes like significant feature additions will be deferred to 9.1.x.). For more information see the Drupal 8 and 9 minor version schedule and the Allowed changes during the Drupal 8 and 9 release cycles.

Version: 8.9.x-dev » 9.1.x-dev

Drupal 8.9.0-beta1 was released on March 20, 2020. 8.9.x is the final, long-term support (LTS) minor release of Drupal 8, which means new developments and disruptive changes should now be targeted against the 9.1.x-dev branch. For more information see the Drupal 8 and 9 minor version schedule and the Allowed changes during the Drupal 8 and 9 release cycles.

Version: 9.1.x-dev » 9.2.x-dev

Drupal 9.1.0-alpha1 will be released the week of October 19, 2020, which means new developments and disruptive changes should now be targeted for the 9.2.x-dev branch. For more information see the Drupal 9 minor version schedule and the Allowed changes during the Drupal 9 release cycle.

Version: 9.2.x-dev » 9.3.x-dev

Drupal 9.2.0-alpha1 will be released the week of May 3, 2021, which means new developments and disruptive changes should now be targeted for the 9.3.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Version: 9.3.x-dev » 9.4.x-dev

Drupal 9.3.0-rc1 was released on November 26, 2021, which means new developments and disruptive changes should now be targeted for the 9.4.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Version: 9.4.x-dev » 9.5.x-dev

Drupal 9.4.0-alpha1 was released on May 6, 2022, which means new developments and disruptive changes should now be targeted for the 9.5.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

heddn’s picture

Anchal_gupta’s picture

please ignore this patch

Anchal_gupta’s picture

Rerolled patch against 9.5x. please review

Version: 9.5.x-dev » 10.1.x-dev

Drupal 9.5.0-beta2 and Drupal 10.0.0-beta2 were released on September 29, 2022, which means new developments and disruptive changes should now be targeted for the 10.1.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

needs-review-queue-bot’s picture

Status: Needs review » Needs work
FileSize
5.31 KB

The Needs Review Queue Bot tested this issue. It either no longer applies to Drupal core, or fails the Drupal core commit checks. Therefore, this issue status is now "Needs work".

Apart from a re-roll or rebase, this issue may need more work to address feedback in the issue or MR comments. To progress an issue, incorporate this feedback as part of the process of updating the issue. This helps other contributors to know what is outstanding.

Consult the Drupal Contributor Guide to find step-by-step guides for working with issues.

pooja saraah’s picture

Fixed failed commands on #114
Attached patch against Drupal 10.1.x

candelas’s picture

Path #33 still working with Drupal 7.97. Thanks @lokapujya :)

Version: 10.1.x-dev » 11.x-dev

Drupal core is moving towards using a “main” branch. As an interim step, a new 11.x branch has been opened, as Drupal.org infrastructure cannot currently fully support a branch named main. New developments and disruptive changes should now be targeted for the 11.x branch, which currently accepts only minor-version allowed changes. For more information, see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.