Support » Fixing WordPress » Update media library

  • Hi,

    I’m migrating an existing site toward WordPress 3.4.2.

    I copied using FTP +3000 images from ex /image directory to WordPress /content/upload directory and I could note that the media library was not updated consequently. I searched through the web and could find 2 plugins :
    – Add From Server ( = it times out after a while
    – WordPress Flash Uploader (2.16.4) = it times too out after a while

    Now how could I update my media library is this finally feasible using a plugin (which doesn’t times out) or using a script. Is there a way of changing the timeout setting?

    Many thanks for any help!

Viewing 1 replies (of 1 total)
  • When you copy images using FTP you break the file associations WordPress generates, basically the file locations change but the links WordPress generates remains the same so WordPress is still looking in the /image dir instead of the new directory.

    So yes a plugin or script is required but since your dealing with 3000 images you have to deal with time-outs you can try the following.

    In your php.ini file add these lines (Note numbers are in seconds)

    max_execution_time = 60
    max_input_time = 60

    Or at the top of the plugin file or script you can add the php lines


    Or in your http.conf file you can add (number in seconds)

    TimeOut 600

    However most servers/browsers will time-out a script after 30 seconds if you have 3 to 6 thousand files a well developed plugin should be able to update the file associations and transfer the files within that time but if your not a developer creating your own script or plugin to accomplish this might be too much work.

    Hopefully one of those lines will increase the time-out long enough for the plugins/script your using to do its job.

Viewing 1 replies (of 1 total)
  • The topic ‘Update media library’ is closed to new replies.