"Page not Found" loads when attempting to edit photo (on all sites)

Permalink Browser Info Environment
We use this plugin on all our client websites and it appears that all our sites have the same issue: When you try to edit an image in the file manager the popup window appears but "Page Not Found" shows in the frame instead of the picmonkey app.

Did pickmonkey change something on their end?

Type: Discussion
Status: In Progress
edgedesign
View Replies:
olacom replied on at Permalink Reply
olacom
Hi,
I had the same problem and solved it by editing the file /elements/file/edit/image.php (this file is installed by the plugin). Find this line:

$strPicmonkeyProtocol = 'http' . ((isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] != 'off') ? 's' : '');

and replace it with

$strPicmonkeyProtocol = 'https';

Picmonkey seems to be redirecting non SSL requests to SSL and the redirection is causing issues with the plugin... forcing https bypasses the redirection.

Thanks, hope this helps :)
edgedesign replied on at Permalink Reply
edgedesign
That did the trick, thank you olacom.
I really hope this patch can be rolled out as an update... to save the effort of manually patching this plugin.
djes replied on at Permalink Reply
djes
Thank you olacom, I've updated the plugin with your changes.
mhawke replied on at Permalink Reply 1 Attachment
mhawke
Has this package been updated because I just did an update through the dashboard of one of my clients and the address is still 'http' in the image.php file. It still appears to be version 1.01 (see attached screenshot)
.
djes replied on at Permalink Reply
djes
Did you tried to remove the plugin and reinstall ? As you can on the C5 website, the archive file version is 1.02, so it should be this one downloaded when you update ?!

concrete5 Environment Information

# concrete5 Version
5.6.3.4

# concrete5 Packages
Advanced Slider (2.0.1), Air Slider (1.0.2), Automatic Email Obfuscator (1.2.3), Cube Testimonials (1.0.6), Form Tableless Layout (1.2.1), Picmonkey Image Editor (1.01), Sortable Responsive Gallery (1.8).

# concrete5 Overrides
blocks/page_list, blocks/sortable_responsive_gallery, blocks/problog_list, blocks/autonav, elements/files, themes/EDS-Respondlate, themes/EDS2015

# concrete5 Cache Settings
Block Cache - Off
Overrides Cache - Off
Full Page Caching - Off

# Server Software
Apache/2.2.25 (Unix) mod_ssl/2.2.25 OpenSSL/0.9.8e-fips-rhel5 mod_auth_passthrough/2.1 mod_bwlimited/1.4

# Server API
cgi-fcgi

# PHP Version
5.4.20

# PHP Extensions
bcmath, calendar, cgi-fcgi, Core, ctype, curl, date, dom, ereg, filter, ftp, gd, hash, iconv, imap, ionCube Loader, json, libxml, mbstring, mcrypt, mysql, mysqli, mysqlnd, openssl, pcre, PDO, pdo_mysql, pdo_sqlite, Phar, posix, Reflection, session, SimpleXML, sockets, SPL, sqlite3, standard, tokenizer, xml, xmlreader, xmlwriter, Zend Guard Loader, 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 - 64M
post_max_size - 8M
sql.safe_mode - Off
upload_max_filesize - 25M
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

Browser User-Agent String

Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.102 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.