Picmonkey can no longer fetch an image

Permalink Browser Info Environment
Hello!

I've been using Picmonkey image editor on a few sites for years already, and recently (sometime this year) it stopped working (on all sites). I don't know if it is a result of change in a server config or is it Picmonkey silently changing their API... As I'm not knowledgeable enough, I'm really lost, and only hoping on your help.

So, the problem occurs when Picmonkey tries to load an image (in any browser). The editor itself is loaded into iframe, the progressbar is running, and then "Oops! Something went wrong" message. Screenshots of two requests from the console are attached. Do you have any idea of what might be the reason?

Would be hugely grateful for any help!
kind regards,
-Gosh

2 Attachments

Type: Discussion
Status: In Progress
snobo
View Replies:
grafoman replied on at Permalink Reply
grafoman
I'm having the same issue!
djes replied on at Permalink Reply
djes
Do you still have the problem ?
snobo replied on at Permalink Reply
snobo
Not anymore, as I patched the source code after investigation with your assitance, but the reason why I had to do this, why it used to work before and then stopped working on all our sites is unclear to me. Mystery.
agentorange replied on at Permalink Reply
agentorange
Hey could you please share what you did to make it work again? Also having the same problem.

Thanks Maria
djes replied on at Permalink Reply
djes
Hello,

I'm working on the new c57 version, I've something working but you need for now to install it by hand.
Unzip the following file in /applications/elements/files/edit/ :http://djes.free.fr/concrete/c57/elements.zip...
It's a work in progress, please be indulgent.

Regards,

djes
djes replied on at Permalink Reply
djes
Hello,

I'm working on the new c57 version, I've something working but you need for now to install it by hand.
Unzip the following file in /applications/elements/files/edit/ :http://djes.free.fr/concrete/c57/elements.zip...
It's a work in progress, please be indulgent.

Regards,

djes
agentorange replied on at Permalink Reply
agentorange
Thanks will try it out but I have a few sites that are on 5.6 and need to get the editor working there.

Thanks Maria
snobo replied on at Permalink Reply
snobo
what I did to fix my issues, is that I commented out the line #42 in /elements/files/edit/image.php
$aPicmonkeyParams['image_file'] = '@'.$fv->getPath();

and replaced it with
$aPicmonkeyParams['image_file'] = $image;

as earlier in the file (line #11) $image is defined as BASE_URL . $fv->getRelativePath(). And now it works again. Wicked. It's a complete mystery why it all has been working before and why it had stopped working at some point for us. Hope it helps you as well.
agentorange replied on at Permalink Reply
agentorange
Great thank you so much this worked perfectly!
webconcentrate replied on at Permalink Reply
webconcentrate
Thank you! This fixed the issue for us as well.

In case it's useful knowledge... we observed Picmonkey editing stopped working on sites that were running PHP 5.6.x. Sites running on PHP 5.5.x and under didn't have the issue.

concrete5 Environment Information

# concrete5 Version
5.6.2.1

# concrete5 Packages
CameraCRETE Slider (1.0), Image List Templates (1.0.1), List files from set (1.0.4), Page Auto Redirect (2.0), Picmonkey Image Editor (1.00), Touch Gallery (1.4.5).

# concrete5 Overrides
blocks/search, blocks/list_files_from_set, blocks/autonav, blocks/content, blocks/touch_gallery, elements/files, helpers/miser_support, helpers/miser.php, css/portview-ie.css, css/normalize.css, css/portview.css, libraries/functions.php, libraries/view.php, models/page_theme.php, single_pages/page_not_found.php, themes/portview

# Server Software
nginx/1.7.11

# Server API
fpm-fcgi

# PHP Version
5.6.7-pl0-gentoo

# PHP Extensions
bcmath, bz2, cgi-fcgi, Core, ctype, curl, date, dom, ereg, fileinfo, filter, ftp, gd, geoip, gettext, hash, iconv, imagick, intl, json, ldap, libxml, mbstring, memcache, mysql, mysqli, mysqlnd, openssl, pcntl, pcre, posix, readline, Reflection, session, shmop, SimpleXML, sockets, SPL, standard, sysvmsg, sysvsem, sysvshm, tokenizer, xml, xmlreader, xmlwriter, Zend OPcache, zip, zlib.

# PHP Settings
max_execution_time - 30
log_errors_max_len - 1024
max_file_uploads - 20
max_input_nesting_level - 64
max_input_time - 60
max_input_vars - 1000
memory_limit - 512M
post_max_size - 128M
sql.safe_mode - Off
upload_max_filesize - 250M
ldap.max_links - Unlimited
memcache.max_failover_attempts - 20
mysql.max_links - Unlimited
mysql.max_persistent - Unlimited
mysqli.max_links - Unlimited
mysqli.max_persistent - Unlimited
pcre.backtrack_limit - 1000000
pcre.recursion_limit - 100000
session.cache_limiter - nocache
session.gc_maxlifetime - 7200
opcache.max_accelerated_files - 2000
opcache.max_file_size - 0
opcache.max_wasted_percentage - 5

Browser User-Agent String

Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2272.101 Safari/537.36

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You may not request a refund that is not currently owned by you.