Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When attempting to view a README file, the following error message is displayed: "The website encountered an unexpected error. Please try again later." I've attached a patch which fixes this issue.
Comment | File | Size | Author |
---|---|---|---|
#9 | 2804625-string-offset-error.patch | 612 bytes | metzlerd |
#7 | advance-help-readme.png | 89.06 KB | amit.drupal |
#3 | readme_issue-2804625.patch | 1.61 KB | bribread22 |
Comments
Comment #2
bribread22 CreditAttribution: bribread22 as a volunteer commentedComment #3
bribread22 CreditAttribution: bribread22 as a volunteer commentedComment #4
bribread22 CreditAttribution: bribread22 as a volunteer commentedComment #5
bribread22 CreditAttribution: bribread22 as a volunteer commentedComment #6
amit.drupal CreditAttribution: amit.drupal as a volunteer and at gai Technologies Pvt Ltd for gai Technologies Pvt Ltd commentedWhen install drupal without composer "The website encountered an unexpected error. Please try again later." issues are display when use any module. for install drupal 8.x.x version install composer.
issues test on different version but issues are not display.
Use Drupal 8.1.x ,8.2.x and 8.3.x version and Advanced help(8.x-1.x-dev).
but enable to generate issues .
README file are open properly attach screanshot(advance-help-readme.png).
Comment #7
amit.drupal CreditAttribution: amit.drupal as a volunteer and at gai Technologies Pvt Ltd for gai Technologies Pvt Ltd commentedComment #8
bribread22 CreditAttribution: bribread22 as a volunteer commentedHi @amit.drupal, I find that interesting that Drupal with composer makes a difference. Do you know why this is (ex. missing a dependency)?
I forgot to mention that when I look at the recent log messages after generating this error, I get the following message before I applied my patch on my local codebase:
Error: Cannot use string offset as an array in Drupal\advanced_help\Controller\AdvancedHelpController->topicPage() (line 256 of modules\contrib\advanced_help\src\Controller\AdvancedHelpController.php).
I suspect that it may have something to do with line 252 in that file.
Comment #9
metzlerd CreditAttribution: metzlerd as a volunteer commentedI was able to reproduce some of this problem. Although since we don't have the exact errors, I suspect the error is related to the way the project declares dependencies related to the markdown processor. I've created a separate issue regarding this at [#248489].
There is definitely a bug in ViewTopic though as there is once case where it returns string data instead of a build array, so I've attached a simple patch to fix that bug, which may have something to do with the initial error experienced here.
Comment #10
metzlerd CreditAttribution: metzlerd as a volunteer commentedwoops... wrong project window... deleting.
Comment #11
gnugetThanks for your patches!
#3 had an issue (it make the README page look ok but the rest were broken) and #9 worked fine!
Also for #6 and #8 feel free to create a different issue.
I added a couple lines to fix a related problem.
Thanks!
Comment #13
gnuget