WordPress.org

Ready to get started?Download WordPress

Forums

FG Joomla to WordPress
[resolved] Media does not copy (17 posts)

  1. laserjobs
    Member
    Posted 2 years ago #

    When importing my site the media does not get copied and I have a long list of errors with this result:

    WordPress database
    112 categories
    5231 posts
    0 medias

    Error messages:
    [fgj2wp] Can't copy http://www.godairyfree.org/images/stories/soldout.jpg to /home/magicjac/public_html/gdftest.Co.CC/wordpress/wp-content/uploads/2004/08/soldout.jpg

    [fgj2wp] Can't copy http://www.godairyfree.org/images/stories/gdfchallenge2.jpg to /home/magicjac/public_html/gdftest.Co.CC/wordpress/wp-content/uploads/2004/08/gdfchallenge2.jpg

    http://wordpress.org/extend/plugins/fg-joomla-to-wordpress/

  2. Kerfred
    Member
    Plugin Author

    Posted 2 years ago #

    I think this is because the destination directory is not writable. Can you verify the permissions of this directory /home/magicjac/public_html/gdftest.Co.CC/wordpress/wp-content/uploads/2004/08 ?

  3. laserjobs
    Member
    Posted 2 years ago #

    Original permission
    755
    Changed to
    777
    Still same error

    It seems to write the correct directories but does not download any content.

    It very well could be a misconfigured host, here is the php info
    http://gdftest.co.cc/wordpress/phpinfo.php

  4. Kerfred
    Member
    Plugin Author

    Posted 2 years ago #

    To get more details about this error, can you remove the "@" in the file fg-joomla-to-wordpress.php line 570 just before "copy" ?
    And run the import again.
    Thanks.

  5. laserjobs
    Member
    Posted 2 years ago #

    Warning: copy() [function.copy]: URL file-access is disabled in the server configuration in /home/magicjac/public_html/gdftest.Co.CC/wordpress/wp-content/plugins/fg-joomla-to-wordpress/fg-joomla-to-wordpress.php on line 570

    Warning: copy(http://www.godairyfree.org/images/stories/soldout.jpg) [function.copy]: failed to open stream: no suitable wrapper could be found in /home/magicjac/public_html/gdftest.Co.CC/wordpress/wp-content/plugins/fg-joomla-to-wordpress/fg-joomla-to-wordpress.php on line 570

    Looks like I need to enable fopen

  6. Kerfred
    Member
    Plugin Author

    Posted 2 years ago #

    Thanks.
    "URL file-access is disabled in the server configuration" says that your provider has banned the use of the copy function through HTTP.
    You should try the import on a localhost installation, that means, copy your Joomla database on your computer and install WordPress on your computer too. After running the migration on your localhost, you will have to export the local WordPress database and the media files to your remote server.
    Hope that helps.

  7. laserjobs
    Member
    Posted 2 years ago #

    So I uploaded a php.ini file with "allow_url_fopen = On" and I got

    Fatal error: Class 'PDO' not found in /home/magicjac/public_html/gdftest.Co.CC/wordpress/wp-content/plugins/fg-joomla-to-wordpress/fg-joomla-to-wordpress.php on line 424

    It looks like the solution is adding a php.ini in wp-admin directory with the following:

    allow_url_fopen = On
    extension=pdo.so
    extension=pdo_mysql.so

    I will have to try it later since my webhost's firewall blocked me

  8. Kerfred
    Member
    Plugin Author

    Posted 2 years ago #

    You are right. allow_url_fopen, PDO and PDO_MySQL are needed in order for the plugin to work.

  9. chaoimhin
    Member
    Posted 2 years ago #

    Tried the above in latest version and encountering same issue as stated above

    [fgj2wp] Can't copy http://www.parenthood.ie/images/stories/Parenting/Pregnant-HospitalBag-123.jpg to

    /home/help2par/public_html/wp-content/uploads/2010/07/Pregnant-HospitalBag-123.jpg :

    copy(http://www.parenthood.ie/images/stories/Parenting/Pregnant-HospitalBag-123.jpg)

    [function.copy]: failed to open stream: operation failed

  10. Kerfred
    Member
    Plugin Author

    Posted 2 years ago #

    To get more information about your problem, can you remove the @ in the file fg-joomla-to-wordpress.php at line 734: if ( !@copy($old_filename, $new_filename) ) {
    and run the import again?

  11. chaoimhin
    Member
    Posted 2 years ago #

    I actually did your change yesterday as I found the @copy as saw it on another post...and it copied the following...articles copy was successful and it seemed to copy the images but nothing in the files follow transfer. Any ideas ??

    70 categories
    615 posts
    0 pages
    670 medias

    It says it has copied the media...filenames are copied etc but nothing in the files.. :-(

    thanks for your mail

  12. chaoimhin
    Member
    Posted 2 years ago #

    Reinstalled wordpress and did the import again

    Help2Parent
    New

    Howdy, admin

    [fgj2wp] 0 categories imported

    Warning: copy() [function.copy]: Couldn't resolve host name in /home/help2par/public_html/parenting/wp-content/plugins/fg-joomla-to-wordpress/fg-joomla-to-wordpress.php on line 734

    Warning: copy(http://www.parenthood.ie/images/86//Family%20Collage%201-small.jpg) [function.copy]: failed to open stream: operation failed in /home/help2par/public_html/parenting/wp-content/plugins/fg-joomla-to-wordpress/fg-joomla-to-wordpress.php on line 734

    [fgj2wp] Can't copy http://www.parenthood.ie/images/86//Family%20Collage%201-small.jpg to /home/help2par/public_html/parenting/wp-content/uploads/2010/06/Family Collage 1-small.jpg : copy(http://www.parenthood.ie/images/86//Family%20Collage%201-small.jpg) [function.copy]: failed to open stream: operation failed

  13. Kerfred
    Member
    Plugin Author

    Posted 1 year ago #

    Can you tell me what you entered in the settings (except the login/password for confidentiality reason) ?

    Moreover, is it normal that you have a double slash in images/86//Family ?

  14. chaoimhin
    Member
    Posted 1 year ago #

    Joomla web site parameters
    URL http://www.parenthood.ie
    Joomla version 1.5
    Joomla database parameters
    Hostname 212.126.36.174
    Port 3306
    Database
    Username
    Password
    Joomla Table Prefix jos_
    Behavior
    Posts with a "read more" split: Import the text above the "read more" to the excerpt
    Medias: Skip media
    Meta keywords: Import meta keywords as tags
    Create pages: Import as pages instead of blog posts (without categories)

  15. chaoimhin
    Member
    Posted 1 year ago #

    Help2Parent
    New

    Howdy, admin

    [fgj2wp] 69 categories imported

    Warning: copy() [function.copy]: Couldn't resolve host name in /home/help2par/public_html/parenting/wp-content/plugins/fg-joomla-to-wordpress/fg-joomla-to-wordpress.php on line 734

    Warning: copy(http://www.parenthood.ie/images/stories/Pregnancy/Pregnant-Stretch%20marks-Dreamstime.jpg) [function.copy]: failed to open stream: operation failed in /home/help2par/public_html/parenting/wp-content/plugins/fg-joomla-to-wordpress/fg-joomla-to-wordpress.php on line 734

    [fgj2wp] Can't copy http://www.parenthood.ie/images/stories/Pregnancy/Pregnant-Stretch%20marks-Dreamstime.jpg to /home/help2par/public_html/parenting/wp-content/uploads/2008/04/Pregnant-Stretch marks-Dreamstime.jpg : copy(http://www.parenthood.ie/images/stories/Pregnancy/Pregnant-Stretch%20marks-Dreamstime.jpg) [function.copy]: failed to open stream: operation failed

    Warning: copy() [function.copy]: Couldn't resolve host name in /home/help2par/public_html/parenting/wp-content/plugins/fg-joomla-to-wordpress/fg-joomla-to-wordpress.php on line 734

    Warning: copy(http://www.parenthood.ie/images/stories/Parenting/Pregnant-HospitalBag-123.jpg) [function.copy]: failed to open stream: operation failed in /home/help2par/public_html/parenting/wp-content/plugins/fg-joomla-to-wordpress/fg-joomla-to-wordpress.php on line 734

    [fgj2wp] Can't copy http://www.parenthood.ie/images/stories/Parenting/Pregnant-HospitalBag-123.jpg to /home/help2par/public_html/parenting/wp-content/uploads/2010/07/Pregnant-HospitalBag-123.jpg : copy(http://www.parenthood.ie/images/stories/Parenting/Pregnant-HospitalBag-123.jpg) [function.copy]: failed to open stream: operation failed

    Warning: copy() [function.copy]: Couldn't resolve host name in /home/help2par/public_html/parenting/wp-content/plugins/fg-joomla-to-wordpress/fg-joomla-to-wordpress.php on line 734

    Warning: copy(http://www.parenthood.ie/images/stories/Parenting/Pregnant-HospitalBag-123.jpg) [function.copy]: failed to open stream: operation failed in /home/help2par/public_html/parenting/wp-content/plugins/fg-joomla-to-wordpress/fg-joomla-to-wordpress.php on line 734

    [fgj2wp] Can't copy http://www.parenthood.ie/images/stories/Parenting/Pregnant-HospitalBag-123.jpg to /home/help2par/public_html/parenting/wp-content/uploads/2010/07/Pregnant-HospitalBag-123.jpg : copy(http://www.parenthood.ie/images/stories/Parenting/Pregnant-HospitalBag-123.jpg) [function.copy]: failed to open stream: operation failed

  16. chaoimhin
    Member
    Posted 1 year ago #

    Hi Kerfred,

    Do you have any ideas as regards what is the issue here ??

    Thanks

  17. Kerfred
    Member
    Plugin Author

    Posted 1 year ago #

    Hi, I have tested converting one article of your site with its image to a WordPress site and it worked well. I don't know why you have problem.
    The thing you can do is to copy all your images to your WordPress site in /images/stories and enter "http://{your WordPress site}" in the URL field in the settings. After the migration, you can remove /images/stories from your WordPress site.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic