There is an inline javascript on disqus/src/Controller/DisqusController.php that is returning the error bellow.
LogicException: You are not allowed to use js in #attached. in Drupal\Core\Render\HtmlResponseAttachmentsProcessor->processAttachments() (line 146 of /mnt/www/html/voicesofyouthstg/docroot/core/lib/Drupal/Core/Render/HtmlResponseAttachmentsProcessor.php).
I'm attaching the patch on my first comment.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | disqus-in-line-javascript-error-3016775-4.patch | 1.56 KB | yseki |
Comments
Comment #2
yseki commentedHere is the patch.
Comment #3
yseki commentedThe correct patch.
Comment #4
yseki commentedComment #5
damienmckennaThank you for the patch.
FYI please try to remember to set the issue status to "needs review" when you upload a patch, it lets others know that there's a patch available, and starts the testbot/drupalci to review the patch.
Lastly, please set the "assigned" option to "unassigned" after you're finished with your work, that way others know that you're finished and that others can then start reviewing it, etc.
Comment #6
gaurav.kapoor commentedNot able to understand where and now the mentioned error is being triggered.
Comment #7
gaurav.kapoor commentedComment #8
gaurav.kapoor commentedI couldn't reproduce the issue. I am not sure if the provided patch will solve the issue described in the description. The patch doesn't apply anymore as well.
Comment #9
gaurav.kapoor commented