• Resolved Lyk

    (@lyk-1)


    Hello!
    Here are my questions/points:

    1a) I also have 4 comments skipped and again I do not know which ones. The only relating thing in the log are some lines like:

    PHP Notice: Undefined index: fragment in /var/www/vhosts/fashionhasit.com/httpdocs/wordpress/wp-content/plugins/blogger-importer/comment-entry.php on line 23

    Other than that, there are also some entries

    Error saving blogger status

    followed by a printout of some array with what seems to be the current status.

    1b) Some images are skipped, but I cannot see which ones. I have enabled dbg in log files.
    Again some lines like:

    PHP Notice: The data could not be converted to UTF-8. You MUST have either the iconv or mbstring extension installed. Upgrading to PHP 5.x (which includes iconv) is highly recommended. in /path/wp-includes/class-simplepie.php on line 1446
    [] PHP Fatal error: Maximum execution time of 60 seconds exceeded in /path/wp-includes/class-wp-image-editor-gd.php on line 176
    [date] Error saving blogger status
    [date] array (….

    Checking with phpinfo() I can see that the hosting has php v5.3.28 with iconv enabled.

    2) I have to reload the page and hit the import button quite a few times, since it stops every 50-100 images. The strange thing however is the following:
    When it stops the topmost image in the media (I guess the last one imported) has no small image icon! If I open the picture I can see it normally except one thing: the sidebar that show filename, type, size and dimensions is NOT showing the dimensions! i.e. it does not show the line Dimensions: smth × smth . However, the image is really there with the expected dimensions. Refreshing the page etc, does not make any difference.

    3) What defines the max excecution time I can use? What values are suggested for globals in the .php when there are many pictures?

    Background: Importing a blog with decent size (500 posts, 5.000+ images). In the .php file of the plugin I increased images sizes to 1600 max

    Thank you!

Viewing 6 replies - 16 through 21 (of 21 total)
  • Thread Starter Lyk

    (@lyk-1)

    Update I narrowed it down to 3 recent posts that where causing issues and in the end it seems that the mess was caused by some inline styles like:
    margin-left: auto; margin-right: auto;

    I guess these were there in the blogger blog before the importation and they were just transferred. Since they are just 3 (hopefully there are not any other I did not notice) I will correct them by hand if I do not find any relevant plug-in.

    However, it might be a good idea to provide an option during the importation to strip the content from any inline styling etc. Not sure how easy that is though

    Thread Starter Lyk

    (@lyk-1)

    Update:

    I ended up importing with the following settings:

    • MAX_IMAGE_SIZE 1600
    • batch size for images 1
    • set_time_limit( 180 );
    • Size in Settings->Media: 700 for medium, 1600 for large
    • Using the beta plugin

    There were quite a few stops but without any corruption. Also the problem I mentioned above did not occur this time(!)
    For now everything seems to be ok

    Plugin Author Workshopshed

    (@workshopshed)

    Hi Lyk,
    to disable the setting of the featured image find the following lines in the blogger-importer-blog file

    if ($imgcount == 0)
                {
                    set_post_thumbnail($post_id, $att_id);
                }

    and disable them as follows

    //if ($imgcount == 0)
                //{
                //    set_post_thumbnail($post_id, $att_id);
                //}

    Thread Starter Lyk

    (@lyk-1)

    Thank you very much ??

    I have one last question. Now as you know, every first picture is set as featured image.
    I noticed the following:
    Say I have an 5.img as first image which is 1600px × 1066px (512KB in size). The featured image is an image name 5-1000×600.jpg which of course is 1000x600(566 K in size). Why is that the case?

    Does this have to do with the theme I am using, wordpress itself or the importation from blogger?

    Both images appear scaled down, with is fine but the smaller one has a bigger size which is strange. Is this a result of wordpress’s downscaling?

    Plugin Author Workshopshed

    (@workshopshed)

    I’m not sure why the smaller resolution has resulted in a larger file but I do know that JPG has some clever compression settings so it might be something to do with that.
    That is the wordpress core that does the resizing the importer just mimics the same process.

    My settings are:
    Thumbnail 150 x 150
    Medium 300 x 300
    Large 1024 x 1024

    When I upload a file called “Workshop.jpg” which is 800×533 it creates two smaller files Workshop-300×199.jpg and Workshop-150×150.jpg. So in my case the Workshop-300×199.jpg would be the one attached to the post.
    Does that help explain what is going on?

    Thread Starter Lyk

    (@lyk-1)

    Hello and sorry for the late reply :/

    Yes, I think I understood how it works. As for the size issue, who know… ??

Viewing 6 replies - 16 through 21 (of 21 total)
  • The topic ‘Skipped images, some errors etc’ is closed to new replies.