• I have some plugins installed that upload files to their own sub folders in the uploads folder of WP. An example of a popular one would be Revolutions Slider, but there are many other plugins available that do this. These sub folders are not copied when creating a site based on a site that has these folders and the folders must be copied to the new site manually.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support dinamiko

    (@dinamiko)

    Hi John Huebner,

    MultilingualPress (MLP) currently copies only media files referenced in the database, so you need to copy the other files/folders manually to each site.

    Thanks,
    Emili

    Thread Starter John Huebner

    (@hube2)

    the files are referenced in the database, but when they are uploaded custom code alters the location to something like
    /wp-content/uploads/pdf/file.pdf
    These files for some reason are not copied. The folder is not created and they are not added to any of the date folders. They just do not exist.

    Plugin Support dinamiko

    (@dinamiko)

    Hi John,

    The file should be stored as meta_key _wp_attachment_metadata in the database, MLP creates a query like this:

    SELECT * FROM wp_postmeta WHERE meta_key= ‘_wp_attachment_metadata’

    and then creates an array of source paths based on file meta_value, so for example if the file values are 2018/05/01.png and 2018/06/02.png it creates an array of folder names, each one containinh all the files, something like this:
    2018/05 [01.png, …
    2018/06 [02.png, …

    Thanks,
    Emili

    • This reply was modified 6 years, 4 months ago by dinamiko.
    • This reply was modified 6 years, 4 months ago by dinamiko.
    • This reply was modified 6 years, 4 months ago by dinamiko.
    • This reply was modified 6 years, 4 months ago by dinamiko.
    Thread Starter John Huebner

    (@hube2)

    PDF files do not have the the ment key _wp_attachment_metadata, only the meta_key _wp_attachment_file.

    An example of one uploaded to a date subfolder looks like 2018/07/filename.pdf

    And the ones that have not been moved looks like pdf/filename.pdf

    So I’m a little confused why we are talking about _wp_attachment_metadata. If this plugin depends on this meta_key, does that mean that any file that is not an image file is not being copied?

    Plugin Support dinamiko

    (@dinamiko)

    Hi @hube2,

    You are right, only images are currently copied, I′ve just created the issue in Github: https://github.com/inpsyde/MultilingualPress/issues/314

    Thanks,
    Emili

    Thread Starter John Huebner

    (@hube2)

    Thank you, I will follow it there.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Some uploads not copied from “Based on Site”’ is closed to new replies.