WordPress.org

Ready to get started?Download WordPress

Forums

FG Joomla to WordPress
Failed to open stream (13 posts)

  1. gorentz
    Member
    Posted 2 years ago #

    Importing of everything but images seems to work fine. But for each image, there is an error message that concludes with the text:

    [function.copy]: failed to open stream: No such file or directory

    I tried moving the source and target databases to a host on which I have control of php.ini, etc. and made sure the necessaries documented in the FAQ were enabled. Those were necessary to import posts, etc., but it didn't help with images.

    On both servers I tried making the destination uploads folder world writable. That didn't help. In both cases the target directories are created, but no files are put in them. I also note that in both cases, a file that I uploaded through the normal WordPress mechanism did not actually get deleted, even though it was deleted from the Media Library list in WordPress.

    I notice that in the error message, the target destination is given in terms of the server's file system, and not in terms of target URL. Is that correct?

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

  2. Kerfred
    Member
    Plugin Author

    Posted 2 years ago #

    Did you turn on the PHP directive "Allow URL fopen" in php.ini ?
    Are your images accessible from another domain ?

    If this still doesn't work, give me your Joomla site URL and I will make a try.

    I also note that in both cases, a file that I uploaded through the normal WordPress mechanism did not actually get deleted, even though it was deleted from the Media Library list in WordPress.

    Yes, that is true. The physical media files are not deleted. Only the reference in WordPress is removed. If you run the import again, the media files are overwritten.

    I notice that in the error message, the target destination is given in terms of the server's file system, and not in terms of target URL. Is that correct?

    Correct. The source is an URL and the target is a file on the server's file system.

  3. gorentz
    Member
    Posted 2 years ago #

    Yes, Allow URL fopen is on.

    The site is http://www.kbs.msu.edu but I made a copy of it at oldweb.kbs.msu.edu where I could make sure it was on. I just now removed the IP address restrictions on oldweb.kbs.msu.edu so you could access it. However, I would not be able to give the mysql password for that site; if you need something like that I'd have to set up a dummy web to do it with.

    The full error messages are like this, btw:

    [fgj2wp] Can't copy oldweb.kbs.msu.edu/images/stories/Sanctuary/News_Item_Photos/goslings.jpg to E:\webhosts\newweb/wp-content/uploads/2012/05/goslings.jpg : copy(oldweb.kbs.msu.edu/images/stories/Sanctuary/News_Item_Photos/goslings.jpg) [function.copy]: failed to open stream: No such file or directory

    It's interesting that the exact same problem occurs on a Unix system as on a Windows system.

  4. Kerfred
    Member
    Plugin Author

    Posted 2 years ago #

    I get a 403 Forbidden on http://oldweb.kbs.msu.edu/ when I try to connect with my browser.

  5. gorentz
    Member
    Posted 2 years ago #

    Oops. Sorry about that. Fixed, I think.

  6. Kerfred
    Member
    Plugin Author

    Posted 2 years ago #

    I have tested a migration using http://oldweb.kbs.msu.edu.
    I have created a sample article on my local Joomla database, whose content and image was the same as http://oldweb.kbs.msu.edu/education/k-12-partnership.
    Results: it migrated the article and copied the image from http://oldweb.kbs.msu.edu/images/stories/education/gobles4.JPG to my local host without any problem.

    So your problem may come from your target server.

  7. gorentz
    Member
    Posted 2 years ago #

    I suppose it's possible. But I went to the trouble of making sure the target uploads folder was world-writable, and that didn't help.

    I've since set up another pair of sites, of which the joomla site contains a bare-bones 1.5 installation with test data. I uploaded one photo and inserted it in the main examples page, then ran the import procedure.

    The import procedure managed to copy the images (including my new one) to an appropriate folder in the uploads tree. But the import page reported that no media were copied. The new file is not seen in the media library. And the button for fixing links didn't fix anything.

  8. Kerfred
    Member
    Plugin Author

    Posted 2 years ago #

    Did you write http://oldweb.kbs.msu.edu in the URL field ?
    Are your media stored in year/month directories ?
    Have you tried the import on your local host ?
    Which plugin version and WordPress version are you using ?

  9. gorentz
    Member
    Posted 2 years ago #

    I see I had written oldweb.kbs.msu.edu instead of http://oldweb.kbs.msu.edu. But now that I've got that right, I still get the same thing I saw on the minimal example.

    1) All the images transfer. (Maybe this is progress!)
    2) I get an error message for each transfer. But it's not exactly the same error message. Now it's "failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found"
    3) When I do the update links step, nothing gets updated. The links in the articles still refer to the img in terms of the joomla folders.
    4) The files are not listed in the media library. But yes, they are stored in year/month directories.

    I'm using 1.4.1 of the plugin and 3.3.2 of WordPress.

  10. gorentz
    Member
    Posted 2 years ago #

    I forgot to answer your other question about localhost. In all instances I've been doing a localhost import. I have not tried anything else.

  11. gorentz
    Member
    Posted 2 years ago #

    I should also mention that I could open up the minimalist pair of sites and give you a password on it if you are interested in taking a look there.

  12. Kerfred
    Member
    Plugin Author

    Posted 2 years ago #

    "404 Not Found" means that this image is not found, in other words, there is a broken link in your post. You have this message for all broken image links.
    Can you send me a copy of your Joomla database to kerfred at gmail dot com, so that I would be able to test it on my localhost and try to characterize your problemĀ ?

  13. Kerfred
    Member
    Plugin Author

    Posted 2 years ago #

    I should also mention that I could open up the minimalist pair of sites and give you a password on it if you are interested in taking a look there.

    Yes, you can send them to me at the above email address.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic