Warning: file_get_contents(modules/contrib/navigate_to_top/js/navigate_to_top.js)

Created on 21 May 2024, 6 months ago

When installing and enabling the navigate_to_top module, I receive the following warning:
Warning: file_get_contents(modules/contrib/navigate_to_top/js/navigate_to_top.js): Failed to open stream: No such file or directory in Drupal\Core\Asset\JsOptimizer->optimize() (line 39 of core\lib\Drupal\Core\Asset\JsOptimizer.php).

I receive a warning about a missing JavaScript file. As a result, the "Navigate to Top" button does not appear on the screen.

Proposed resolution:
To resolve this issue, Rename the file navigate_to_top.j_ to navigate_to_top.js in the modules/contrib/navigate_to_top/js/ directory.

Here, I am also attaching the sreenshot of this error

📌 Task
Status

Needs review

Version

1.0

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024