Skip to content

Edit javascript files via manager not working under PHP 8.4 #16730

Open
@travisbotello

Description

@travisbotello

Bug report

Summary

Trying to view/edit certain javascript files via manager is not working under PHP 8.4

Step to reproduce

  • create a new JS file in the default file system, e.g. test.js
  • enter the following content:
(function() {
	console.log('test');
}());

IMPORTANT: Adding just console.log or some other code might not reproduce the issue.

  • click on the JS file in the sidebar either directly or via context menu

Observed behavior

  • file doesn't open
  • context menu doesn't offer quick edit

Expected behavior

File should be editable

Environment

MODX version 3.1.2, PHP 8.4, Chrome

When I downgrade to PHP 8.3 everything is working as expected. Please compare the screenshot below.

PHP 8.4 Context menu PHP 8.3 Context menu

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugThe issue in the code or project, which should be addressed.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions