• Hi,

    registration of image files fail. I get three WARNING: messages like that:

    ############

    Warning: copy(/kunden/303844_40489/webseiten/wordpress/wp-content/uploads//https://casparwahl-vombruch.de/wp-content/uploads/2008/04/DSC01670-1.JPG): failed to open stream: No such file or directory in /kunden/303844_40489/webseiten/wordpress/wp-content/plugins/media-from-ftp/inc/MediaFromFtp.php on line 401
    
    Warning: unlink(/kunden/303844_40489/webseiten/wordpress/wp-content/uploads//https://casparwahl-vombruch.de/wp-content/uploads/2008/04/DSC01670-1.JPG): No such file or directory in /kunden/303844_40489/webseiten/wordpress/wp-content/plugins/media-from-ftp/inc/MediaFromFtp.php on line 402
    
    Warning: filesize(): stat failed for /kunden/303844_40489/webseiten/wordpress/wp-content/uploads//2015/07/DSC01670-1.JPG in /kunden/303844_40489/webseiten/wordpress/wp-content/plugins/media-from-ftp/inc/MediaFromFtp.php on line 489
    Titel: DSC01670-1
    Permalink: https://casparwahl-vombruch.de/?attachment_id=5351
    URL: https://casparwahl-vombruch.de/wp-content/uploads//2015/07/DSC01670-1.JPG
    Dateiname: DSC01670-1.JPG
    Datum/Zeit: 2015-7-28 22:15
    Bilder:

    ###########

    a technic advisor of my provider (Domain Factory) guessed, that the files don’t exist any more before being processed.

    on command line the output shows nearly 742 files with warnings. After processing the amount of files is increased.
    Is it a bug in 7.7 or have i to hack my installation or database?
    https://www.ads-software.com/plugins/media-from-ftp/

Viewing 9 replies - 1 through 9 (of 9 total)
  • it’s a bug in 7.7 see my other post for temporary fix

    Thread Starter casparwvb

    (@casparwvb)

    this did help me and fixed the problem:
    file urls no longer work properly on 7.7 (absolute paths appended)
    https://www.ads-software.com/support/topic/file-urls-no-longer-work-properly-on-77-absolute-paths-appended?replies=6

    Thank you, juz501
    https://www.ads-software.com/support/profile/juz501

    Plugin Author Katsushi Kawamori

    (@katsushi-kawamori)

    Hi casparwvb,

    when make URLs and copy files,
    These Constant

    MEDIAFROMFTP_PLUGIN_UPLOAD_DIR
    MEDIAFROMFTP_PLUGIN_UPLOAD_URL
    MEDIAFROMFTP_PLUGIN_UPLOAD_PATH

    Add processing.

    By environment, it might last a slash(/) of these constants from being added. At that time, I think or not than is this error will come out.
    How it will be in your environment?

    You can see it and add the following code to the 400 per line of MediaFromFtpAdmin.php.
    You can look at “search & register”.

    echo MEDIAFROMFTP_PLUGIN_UPLOAD_URL.'::'.MEDIAFROMFTP_PLUGIN_UPLOAD_DIR.'::'.MEDIAFROMFTP_PLUGIN_UPLOAD_PATH;
    Thread Starter casparwvb

    (@casparwvb)

    Hi Mr. Katsushi Kawamori,
    thanks for reply.

    I am not shure: I insert the following line
    `echo MEDIAFROMFTP_PLUGIN_UPLOAD_URL.’::’.MEDIAFROMFTP_PLUGIN_UPLOAD_DIR.’::’.MEDIAFROMFTP_PLUGIN_UPLOAD_PATH;
    `

    exactly in wordpress/wp-content/plugins/media-from-ftp/req/MediaFromFtpAdmin.php at line 400.

    Is this correct?

    Plugin Author Katsushi Kawamori

    (@katsushi-kawamori)

    Hi casparwvb,

    echo MEDIAFROMFTP_PLUGIN_UPLOAD_URL.’::’.MEDIAFROMFTP_PLUGIN_UPLOAD_DIR.’::’.MEDIAFROMFTP_PLUGIN_UPLOAD_PATH;

    No need ”.

    Move the “Search & Register”. It is correct if the path is displayed at the top.
    To you, I want to check the value of the path. Please delete When it is finished.

    Thread Starter casparwvb

    (@casparwvb)

    Hi Mr. Katsushi Kawamori, i am sorry, but screen shots aren’t allowed here. So i copy the Path shown on top of search&register here: ‘wp-content/uploads/’

    May be I don’t exactly understand, what i have to do. Where should i fire the echo command from above? From command line or copy it in ‘wordpress/wp-content/plugins/media-from-ftp/req/MediaFromFtpAdmin.php at line 400’ for testing sakes only (and remove it later?) and send the output to you?
    I copied this into MediaFromFtpAdmin.php at line 398
    ‘<?php

    echo MEDIAFROMFTP_PLUGIN_UPLOAD_URL.’::’.MEDIAFROMFTP_PLUGIN_UPLOAD_DIR.’::’.MEDIAFROMFTP_PLUGIN_UPLOAD_PATH;

    ?>’
    There was no result on Search&Register – TAB

    Plugin Author Katsushi Kawamori

    (@katsushi-kawamori)

    Hi casparwvb,

    Thank you very much.
    I wanted to know is displayed if the path is in your environment.
    It is not attached a slash at the end of the path in my environment. However, it attaches a slash end of the path in your environment.
    Fix in the new version.

    Thread Starter casparwvb

    (@casparwvb)

    Hi, Mr. Katsushi Kawamori,

    ah i see. Thereis a slash. and Adresses of images in Media are with double Slashes. E.g: ‘https://casparwahl-vombruch.de/wp-content/uploads//2015/07/DSC01455-e1437730761866.jpg&#8217; May be it was written bei media-from-ftp? But it works. FireFox can find both. With one and with two slashes.

    Is the fact that now the number of media files increased to more then double associated to this slash?

    Could it be a good idea to wait for the patch?

    unfortunately, the 7.7 patch pretty much killed all my live server media data (since i had a cron set up) so I had to reimport all my media after the fix by clearing the wordpress media database and doing a search and register from scratch.

    If you are good at SQL you could possibility remove the orphans directly with the database, I doubt the patch would remove the errors caused by 7.7 automatically.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘registration of files failes’ is closed to new replies.