File Manager Copy/Move function not working properly (bug)?

itscoffetime

Verified User
Joined
Sep 19, 2019
Messages
89
I've been working on my friend site and he has some bugs con Wordpress due to running an old version, however, he cannot log in to Wordpress because of the error, so the easiest way is to download the latest version and replace all files.

So what I usually did was download the latest WP version (wordpress.zip) and unzip on DirectAdmin which would unzip on /public_html/wordpress when the mean site is on /public_html.
So I browse to /public_html/wordpress select all files and click on "move/copy" and select to move to "public_html" however, only files from the main folder "public_html/wordpress/" are copied, any of the folders inside the "wordpress" folder are copied and it flashes a lot of errors while doing to.

So for example "/public_html/wordpress/wp-content/" is not copied to "/public_html//wp-content/", not even when I click on "replace" option on File Mananger, however, if I go to "/public_html/wordpress/wp-content/" click on all files inside and click on move/copy to "/public_html/wp-content/" it does work, however, it does not move either "/public_html/wordpress/wp-content/plugins" to "/public_html//wp-content/plugins" as it displays errors to, it only moves the only index.php file on the "wp-content", if I want to move plugins would need to make the same things each time, folder to folder.

Is anyone facing the same issue?
 
Is anyone facing the same issue?
I just tested for you to see if I had this issue on my system.
I'm running the latest Directadmin from the "current" channel.

However I did not test with Wordpress but with something else from myself. From the public_html folder I selected the folder and choose to copy it to another folder which was present.
After that I doublechecked and the selected folder, and subfolders and all files in all subfolders were copied.

So it seems it's working as designed.
However maybe you got a different configuration than me. My server is not on anything special, just plain apache and http/2, no nGinx or Litespeed.
Or maybe you are on the stable channel and not the current. Just stating this so you can compare.
 
I just tested for you to see if I had this issue on my system.
I'm running the latest Directadmin from the "current" channel.

However I did not test with Wordpress but with something else from myself. From the public_html folder I selected the folder and choose to copy it to another folder which was present.
After that I doublechecked and the selected folder, and subfolders and all files in all subfolders were copied.

So it seems it's working as designed.
However maybe you got a different configuration than me. My server is not on anything special, just plain apache and http/2, no nGinx or Litespeed.
Or maybe you are on the stable channel and not the current. Just stating this so you can compare.
Thank you for checking,

Do the subfolder also existed on the other directory? For me it also seems to work if the directory is empty or does not have a folder with the same name.

Server is using LiteSpeed
 
Do the subfolder also existed on the other directory?
Yes as said, the selected folder, and subfolders and all files in all subfolders were copied.
They did not exist before in the folder I copied them to. Also the folder I copied them to was not empty, there were some files and subfolders in there already.

You also use the latest DA version from the current channel?

If yes, maybe you can send in a ticket so they can see why this is happening on your server.
 
Yes as said, the selected folder, and subfolders and all files in all subfolders were copied.
They did not exist before in the folder I copied them to. Also the folder I copied them to was not empty, there were some files and subfolders in there already.

You also use the latest DA version from the current channel?

If yes, maybe you can send in a ticket so they can see why this is happening on your server.
What I mean is if the subfolder had the same name. The feature works well when folders have different names, issue appears when it has the same.

Can’t copy /wordpress to /public_html because both folders have the wp-content folder but if /wordpress has a folder called “wp-xtra” that does not exist on /public_html that one moves or copies well.

Will talk to my friend if I can switch to latest version but it doesnt say anything in change logs about File Manager
 
but it doesnt say anything in change logs about File Manager
No I didn't either.
Before I didn't understand what you ment with the same name. Now I do.

I have to do a few things first and then try it for you and report back here.
 
Just did a test and can't confirm the bug.

Created a directory test.
In that directory created a directory Video and under that an empty subdirectory test.

So in my other directory (called /somebody) I had some files including a directory Video. In that directory Video I created a subdirectory called test with a file called test.txt in there.

I used the file manager to select the directory's including the Video directory to be copied to the /test directory I created.
All files and folders were copied, and the file in the /Video/test subfolder was also copied.

Is that test correctly done according to the issue you are experiencing? If yes, then I don't have the same issue.

In spite of nothing being mentioned in the changelogs, maybe a file manager fix could have been included in a hotfix, so I would try to switch to the latest version if possible, on the current release channel, and see if that fixes your issue.
 
I know it's not a "fix" or solution, but why couldn't you add a temporary FTP account?

I did this when Wordpress screwed up if clients were way out of their depth...... Also, lol Wordpress (sorry)
 
but why couldn't you add a temporary FTP account?
I think this is the reason:
So what I usually did was download the latest WP version (wordpress.zip) and unzip on DirectAdmin
This works way faster then uploading all files via FTP.

Since I have SSH access on all servers I do it kindlike with PHPBB updates. Create a temp dir, upload only the full file, then unzip on the server and move files with MC and then update. Saves me half the time of unzipping on PC and then uploading all these small files via FTP.
 
Yes but then only overwrite permission problem it seems.

@desfire You don't have a security plugin or addon active in WP which might cause this behaviour, right? Which prevents overwriting?
 
Back
Top