• The APS Catalog has been deprecated and removed from all Plesk Obsidian versions.
    Applications already installed from the APS Catalog will continue working. However, Plesk will no longer provide support for APS applications.
  • Please be aware: with the Plesk Obsidian 18.0.78 release, the support for the ngx_pagespeed.so module will be deprecated and removed from the sw-nginx package.

Resolved Issue after Plesk 18.0.77 update: Code Editor opening in new window & losing directory path

BenP

New Pleskian
Server operating system version
Ubuntu 22.04
Plesk version and microupdate number
18.0.77
Hello,

Since updating to Plesk 18.0.77, I’m experiencing two major workflow issues with the File Manager:
  1. Window Handling: The Code Editor now opens in a completely new page/tab instead of the usual in-frame view.
  2. Redirect Loop: When I click "Save", I am redirected back to the root directory instead of staying in the current folder. Having to navigate back to the file location every time is very inefficient.
Is there a setting to restore the previous behavior, or is this a known bug in this version?

Best regards,
Benjamin
 
Hi Sebahat,
Thank you for the quick reply and the provided solution. That's exactly what I was looking for.

Best regards,
Benjamin
 
Hello,

Meanwhile, we are published the update 18.0.77.1, which should address the issue with code editor.
 
Hello,

Meanwhile, we are published the update 18.0.77.1, which should address the issue with code editor.
Still not working. I have Plesk Obsidian 18.0.77 Update #2 and I'm having the same issue, which is happening on a subdomain. Multiple tabs open with each file, and when saving, it often overwrites a different open file than the one I'm working under and I have to scan back through to see which one that happened with. If I hit the x to close the open file tab, they don't close and are still there on refresh. I also have the issue with clicking on a file folder above in the header takes me back to the root, which is also a problem.

This is brutal, and definitely disturbs the workflow since I'm concerned about what I'm doing not saving to the right file. It's gotten to the point where I have to logout and log back in before I open one file and after editing, l log back out and log back in to work on the next one. This is the first issue I think I've ever had with Plesk, so really hope you guys can get it resolved.
 
Still not working. I have Plesk Obsidian 18.0.77 Update #2 and I'm having the same issue, which is happening on a subdomain. Multiple tabs open with each file, and when saving, it often overwrites a different open file than the one I'm working under and I have to scan back through to see which one that happened with. If I hit the x to close the open file tab, they don't close and are still there on refresh. I also have the issue with clicking on a file folder above in the header takes me back to the root, which is also a problem.

This is brutal, and definitely disturbs the workflow since I'm concerned about what I'm doing not saving to the right file. It's gotten to the point where I have to logout and log back in before I open one file and after editing, l log back out and log back in to work on the next one. This is the first issue I think I've ever had with Plesk, so really hope you guys can get it resolved.

There is nothing to fix, this behavior will continue in future versions. Therefore, the only viable solution is the one mentioned earlier.

Edit the panel.ini file and add the following:

Code:
[fileManager]
codeEditor.pageEnabled = false

This will resolve the issue.
 
There is nothing to fix, this behavior will continue in future versions. Therefore, the only viable solution is the one mentioned earlier.

Edit the panel.ini file and add the following:

Code:
[fileManager]
codeEditor.pageEnabled = false

This will resolve the issue.
That's unfortunate. I don't really understand how a bug that never existed previously and impacts a workflow so badly is now something that you would just have to live with. But if that's the way it is, I guess I'll have to submit a ticket to get that added.

Will that make it where just one window opens? Because I still need to be able to edit code within the editor. I just don't want it to open - or keep open - additional tabs.
 
That's unfortunate. I don't really understand how a bug that never existed previously and impacts a workflow so badly is now something that you would just have to live with. But if that's the way it is, I guess I'll have to submit a ticket to get that added.

Will that make it where just one window opens? Because I still need to be able to edit code within the editor. I just don't want it to open - or keep open - additional tabs.
I'd take the comment of @jesussuarez with a grain of salt and rather wait for a staff member to respond. There is no way for him to know if the behavior you're describing has already been filed as possible bug and whether or not it might get fixed.

The suggested workaround however will revert the editor to open in a drawer (as it did before). It's a valid suggestion if you're not happy with the current editor opening tabs.
 
Still not working. I have Plesk Obsidian 18.0.77 Update #2 and I'm having the same issue, which is happening on a subdomain. Multiple tabs open with each file, and when saving, it often overwrites a different open file than the one I'm working under and I have to scan back through to see which one that happened with. If I hit the x to close the open file tab, they don't close and are still there on refresh. I also have the issue with clicking on a file folder above in the header takes me back to the root, which is also a problem.

The issue addressed in 18.0.77.1 was related to Code editor always redirecting to the home directory rather than the current directory of the file being edited. I can no longer reproduce that behavior upon saving/closing a file.

The behavior you are explaining is quite different. What I was able to replicate is that the files occasionally reappear once closed and I will double-check that further with our team.

Could you please provide more context on "and when saving, it often overwrites a different open file than the one I'm working under" - do you mean that the changes you performed to one file are applied to another file in terms of content, or you are referring to being redirected to another file when you attempt to close it?
 
The issue addressed in 18.0.77.1 was related to Code editor always redirecting to the home directory rather than the current directory of the file being edited. I can no longer reproduce that behavior upon saving/closing a file.
No worries. I know that there are so many different scenarios that it's tough to account for and trace all of them. So I appreciate you taking a moment.

Here's how it's happening: If I click on any directory near that file after editing (not before), it takes me back to the default server directory under a separate subdomain, which in my case, is different from the main domain for security reasons.

Example:

mysubdomainloginurl.mydomain.com:8443 is my default server domain for the Plesk login.

subdomain.mydomain.com is where I'm working.

If I open a file to edit it, above the editor pane is mydomain.com/subdomain/directory/filename.php in the editor. After I edit and "Save & Resume", I then click on /directory/ and it defaults back to the directories at mysubdomainloginurl.mydomain.com, rather than within mydomain.com/subdomain/
The behavior you are explaining is quite different. What I was able to replicate is that the files occasionally reappear once closed and I will double-check that further with our team.

Could you please provide more context on "and when saving, it often overwrites a different open file than the one I'm working under" - do you mean that the changes you performed to one file are applied to another file in terms of content, or you are referring to being redirected to another file when you attempt to close it?
Yes, but I've always utilized CTRL-S to save it based on muscle memory, which now sometimes seems to replace one of the other open tabs (that I can't close because they don't seem to truly close and still re-open on refresh).

I find out this happens when I then check the live site. I find that it's broken and I have to open back up each file that was open in the tab, find the one that was overwritten, but then fortunately I do have a recent backup copy of the file that got changed locally to paste back in and click the "Save & Resume" button. The "Save & Resume" seems to work correctly 85% of the time. I've had the file replace issue still happen, but less frequently.
 
@i_n_k , thank you for the clarification. I opened an internal report, and the behavior was confirmed as a bug identified with ID PPPM-15360. The discrepancy appears when there are files opened from parent and subdirectories. If you attempt to close the files from the subdirectory while the current file is from the parent directory, the files from the subdirectory reappear, and vice versa. Thank you for bringing our attention to the issue.

At the moment, I cannot provide an ETA for the fix, but it very likely be introduced along with Plesk 18.0.78. Meanwhile, the alternative I can suggest as a workaround is to switch back to the previous Code Editor mode (however, it doesn't support multi-tabs). You can do so, by adding the following code to panel.ini:

Code:
[fileManager]
codeEditor.pageEnabled = false
 
Back
Top