• Resolved Patrick Gray

    (@pgraywporg)


    Hello debarrere, I’m thanking you in advance for helping.
    I went to the settings page for WP Media folders and I clicked on the “move existing media” box. My website then replied via the small LED light at the top of the main page that there were 274 ‘attachments queued to move’. In addition my site now has become basically unworkable at the management level. Everything is Very Very slow, most requests eventually just time out. After 24 hours, the LED light is now a brown color and it says 260 files in the queue. 10 files in 24 hours means my website will be unmanageable for 26 days!!! Does all of this sound correct to you? So far today, I’m waiting for the WordPress Dashboard just to load, no luck after 12 minutes. Ahhh 16 minutes and the Dashboard loaded. Now the LED says 257 files. Here’s a question, do I need to stay logged on to my website as an administrator in order for the media file queue stuff to work?

    The page I need help with: [log in to see the link]

Viewing 13 replies - 1 through 13 (of 13 total)
  • Thread Starter Patrick Gray

    (@pgraywporg)

    I forgot to add, that out on the web, my website seems to load OK. All of this slowdown is happening when I try to log on to my website to manage it. I just finished 5 more of my Instructional Videos and they are up OK at YouTube. I FTP’d them to the web server, they are not yet in the uploads folder, I was hoping to add them to my site. No luck. And here’s another interesting thing, just as I’m sitting here typing this support request, the brown LED light has decreased to indicating 255 files in the queue. I am really beginning to wonder that I must remain connected to my site as an Administrator for the queue to be processed. hmmmmm Dr. Gray

    Plugin Author dbarrere

    (@dbarrere)

    Hi Patrick,

    The processing time depends on the amount of data on the database and the resources of your server.
    If you have a shared server and a big database, each file processing will take a lot of time.
    It could as you have seen overload your server and make other request to be delayed, like you describe.

    The process should in most of the case rerun itself indefinitely, but I think on your case the server stops the background process before it’s finished.
    In this case the plugin uses the WordPress heartbeat requests to launch it again.
    the heartbeat requests are automatically triggered when you are logged in your website admin.

    To answer your question, yes you should stay connected to the WordPress dashboard.
    About the time it takes, you should calculate it when you are connected to the admin page.
    But from what you said, I would say that it could be done in 4 or 5 hours.

    Best regards

    Thread Starter Patrick Gray

    (@pgraywporg)

    Hey dbarrere
    Well I was so happy. I sent in one of my mp4’s and got it into my wordpress media folders where I wanted it. It was an mp4 that I named number 51. I have uploaded number 52 twice now from my computer using filezilla and each time I put the mp4 in a folder I named: ‘Upload-to-public_html’ on the server outside of wp-content. Then I go to settings then WP Media folder then choose ‘import from server’ and ask it to import from the folder ‘Upload-to-public_html’ outside of wp-content into the folder named ‘Upload-to-public_html” that exists inside of wp-content in the uploads folder. Usually this process pulls in a copy of the mp4 into wordpress where it is seen as a media item, as an mp4. But each time I do this with number 52 mp4, the process works fine except the result is that the media library considers this mp4 file (112 mb) to be a jpg that I uploaded earlier. Very confusing. I am worried the database needs to be reset. Any ideas? I did uninstall and reinstall both WP Media Folder and WP Media folders. I am going to try my mp4 number 53 (146 mb) and see what happens. I did open on my own computer my mp4 number 52 and it plays just fine. This is why I feel this is a database issue. I’m thinking to rename it and try again, because (I hope) the database has this jpg attached to the file name of number 52. Whew. Anyway, please help. Dr. Gray

    Thread Starter Patrick Gray

    (@pgraywporg)

    Ouch. This time it again successfully added a media item, except it did not add an mp4 video file (I tried this with my number 53 mp4, 146mb). Same process same steps, and this time it has added the number 53 mp4 but it displays it as a jpg image file, again an image file that I added earlier. Any thoughts? Of interest, when I added via server import my number 52 mp4, it shows in the media area as a jpg that I added earlier, and if I use this process to bring in my number 53 mp4, the process occurs, but this number 53 mp4 is also displayed as a jpg image file, and it is a different jpg file from the one that happened with the number 52 mp4. What is going on?

    Thread Starter Patrick Gray

    (@pgraywporg)

    Ah ha, I have discovered it. FileZilla is uploading and displaying my mp4’s as uploaded and placed where I told them to go. However, I went into File Manager via GoDaddy and looked at my server files and file manager is displaying the jpg image files that WP Media folder successfully pulled in via server import. So I will now see if I can find out how filezilla is behaving in this strange fashion. Boy, am I tired of this. pg

    Plugin Author dbarrere

    (@dbarrere)

    Hi,

    My plugin doesn’t deal with the type of attachement you add, not it creates the thumbnails for the attachement.
    I think this process is handled directly by WordPress core function.
    But as you deal with big files with a process that needs a lot of server resources, it can fail on a lot of points, moreover if you have a shared server with low resources.

    The problem here is to detect where the issue occurs.
    You should deactivate WP Media FolderS, import your file and see if it’s correctly seen as a video file.
    Then activate WP Media FolderS and move your file to the folder you want and check if it’s still a video attachment.
    Please let me know the result of this test.

    Best regards

    Thread Starter Patrick Gray

    (@pgraywporg)

    News Flash. It was simply a Filezilla issue. I upgraded to more and faster resources via GoDaddy. I uploaded (so far) a total of 5 mp4’s each about 120mb. I sent them all to the server in a folder outside of wp-content/uploads via FileZilla..success. I then moved them one by one from outside of wp-content/uploads into being inside wp-content/uploads and to also have them imported to be seen as media files by WordPress….success using the Server Import option. Then I moved them from one media folder inside wp-content/uploads into a different folder inside wp-content/uploads via clicking the edit media tab then typing in the new folder name then clicking the update button….success. These steps take about 6 minutes each….boring…. but if it works, I can make the time. For GoDaddy hosted servers, GoDaddy allows a person to use a phpmanagement program to go into the php database of that person’s website. This phpmanagement program allows a person to click status, then click monitor. In the monitor mode, one can watch selected database activities of the website as they happen in real time. I opened this phpmanagement monitor option in a separate window and I could watch a real time display of cpu utilization (by the database at the server level.) Then, in a separate window, I requested my website to do these media file actions that I listed above. As these media operations began, on the window showing cpu utilization, the cpu use increases from about 20% to 100% and stays at 100% for about 6 minutes, then drops back to 20%. Usually about 1 minute after the cpu utilization drops off from 100% back to 20%, then (in the other window showing my website activity), the media is displayed in the media library with all the changes successfully completed. So this looks like complete success to me. It is just a lot of steps. I still would suggest that you consider to make the file management plugin that I outlined in my set of YouTube videos. I still think people would be a lot happier using that plugin that I described as their method to get their media files to be just the way they want them. Thanks again. Dr. Gray

    Plugin Author dbarrere

    (@dbarrere)

    Hi Patrick,
    I’m glad you’ve been able to sort all of it.
    I completely understand your suggestion and thank you about that, but that’s a lot of work (plus all the support it will emplies) I can’t afford.
    Best regards,
    Damien

    Hi!

    I have a very similar issue of slowliness. In my case the problem is when I am doing file upload/management. I have implemented a few steps that user has to go through to upload files: he uploads, then I approve, then I move them to the folder they should be (using WP Media Folder plugin) and then add it to custom field using ACF.

    Now the problem is that on each step WordPress is extremely slow just because this plugin is trying to move files. I tried everything with plugin disabled and it worked like a charm.

    So my question or rather request would be to maybe have an option to postpone moving of files. Lets say I could set timer to move files at 2 o’clock at night. That would be so much more logical and practical.

    Can it be implemented?

    Looks like for the time being my options is to disable the plugin while I’m working and then enable it at night at let it do its job.

    Plugin Author dbarrere

    (@dbarrere)

    Hi,

    Well, I think it’s an interesting idea.
    It could help about the slowness on some servers.
    I’ll think about it an may integrate when I have time.

    Best regards

    Hey @dbarrere,

    When I set plugin to move all existing media I eventually get timeouts and my whole web hangs for quite some time. Is there anything that I could do? Due to the slowliness I described before, I am trying to move files at night, hence plugin has to move quite a few files and change quite a few entries in the database. Thus the timeouts.

    Can something quick be implemented to do the job in several parts not in a one huge request?

    Plugin Author dbarrere

    (@dbarrere)

    Hi,

    The process is already split in multiple processes to avoid server side timeouts.

    Even if you move only few attachments, if you have a big database the process will still need a lot of resources to search and replace through all the database tables.
    The more you have content in the database the more you need server resources.

    And unfortunately, database request can’t be split.
    The only suggestion I can make is to increase your server side computation.

    Best regards

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Help Adding media files very very slow’ is closed to new replies.