• Resolved viessenetwork

    (@viessenetwork)


    I have a problem.
    I can’t post activity with file too large.
    If I try with little size image it will works.
    If I try with a large image (example JPG 2,4 MB – 3872 × 2592 px), the preview works fine and there is no error where confim the post, but the post not show in the list of activities.
    Why??
    With debug I found that the problem maybe is in the function “move_images” in file “class_bpfb_binder.php”.
    Infact the script work fine until the

    row image_resize($new_img, $thumb_w, $thumb_h, false, ‘bpfbt’);

    after this row, the script don’t go….

    someone can help me??

    thank you.

    http://wordpress.org/extend/plugins/buddypress-activity-plus/

Viewing 10 replies - 1 through 10 (of 10 total)
  • Thread Starter viessenetwork

    (@viessenetwork)

    the problem is the function image_resize().
    it doesn’t work with large size images.

    Thread Starter viessenetwork

    (@viessenetwork)

    anyone can help me??

    I don’t understand why the script work with small picture, and don’t work with large image.
    I didn’t found any difference in the source code.

    ellbristow

    (@ellbristow)

    Hi @viessenetwork,

    Thanks for bringing this to our attention. I have alerted the devs to this as I suspect it will continue to be an issue.

    Some research has shown that image_resize was deprecated in WordPress 3.5.0 in favour of WP_Image_Editor. The deprecated function still exits, so I’m not sure why it wouldn’t work, but the new method may provide a fix for this error relating to large images.

    We’ll try and keep you posted on this.

    Thread Starter viessenetwork

    (@viessenetwork)

    thank you!

    Hello there @viessenetwork,
    This could be a memory issue… Have you tried increasing your PHP memory limits?

    Please advise,
    Ari.

    Thread Starter viessenetwork

    (@viessenetwork)

    Hi Aristath,

    the “memory_limit” is actually “64M”.
    Maybe could be a time limit issue?
    Actually “max_input_time” is “60”.

    Thank you.

    Thread Starter viessenetwork

    (@viessenetwork)

    I tried to extend the max_input_time to 240 but the problem still exists.

    I tried to extend the max_input_time to 240 but the problem still exists.

    Did you try it from your php.ini file?
    If so, could you please try it from WordPress’s wp-config.php file?
    Instructions are here: http://codex.wordpress.org/Editing_wp-config.php#Increasing_memory_allocated_to_PHP

    I hope that helps!

    Cheers,
    Ari.

    Thread Starter viessenetwork

    (@viessenetwork)

    I have extended the “memory_limit” to “128M” from php.ini and the problem is resolved!

    I have extended the “memory_limit” to “128M” from php.ini and the problem is resolved!

    I’m glad you finally managed to resolve this!

    Take care,
    Ari.

Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘not working with large image size’ is closed to new replies.