Problem/Motivation
The README.md file is not displaying on the Help page (/admin/help/search_api_attachments).
Warning: file_get_contents(/var/www/html/docroot/modules/contrib/search_api_attachments/README.txt): Failed to open stream: No such file or directory in /var/www/html/docroot/modules/contrib/search_api_attachments/search_api_attachments.module on line 69
Steps to reproduce
- Update module to version 9.0.1
- Visit /admin/help/search_api_attachments on your site
- Notice that the README does not load and instead throws a warning about a missing file
Proposed resolution
Update /docroot/modules/contrib/search_api_attachments/search_api_attachments.module to include README.md instead of README.txt.
Change line 69 in search_api_attachments.module to
/**
* Implements hook_help().
*/
function search_api_attachments_help($route_name, RouteMatchInterface $route_match) {
switch ($route_name) {
case 'help.page.search_api_attachments':
$text = file_get_contents(dirname(__FILE__) . '/README.md');
if (!\Drupal::moduleHandler()->moduleExists('markdown')) {
return '<pre>' . $text . '</pre>';
}| Comment | File | Size | Author |
|---|---|---|---|
| #2 | search_api_attachments-changes-readme-file-ext-3373951-0.patch | 659 bytes | hannakras |
Issue fork search_api_attachments-3373951
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
hannakras commentedThis patch fixes the small change in the README file name in the .module file.
Comment #3
keshavv commentedConfirmed that the filename is changed from README.txt to README.md.
#2 patch is good to merge.
Thank you!
Comment #6
izus commentedmerged
thanks