Notifications
Clear all

500 Error with admin-ajax.php

13 Posts
2 Users
0 Reactions
4,240 Views
Posts: 8
Customer
Topic starter
(@webgrimm)
Member
Joined: 6 years ago

Have testet, it's a problem of jpg-files

Have transformed a jpg to png (see my last post) and it worked

Reply
4 Replies
Astghik
Admin
(@astgh)
Joined: 7 years ago

Illustrious Member
Posts: 6152

Yes @webgrimm, I see. 

I've already asked the add-on developers about the issue. They are going to check it. Please wait for a while I'll update the topic asap. 

Reply
Astghik
Admin
(@astgh)
Joined: 7 years ago

Illustrious Member
Posts: 6152

@webgrimm,

Could you please provide us the admin login details for deeper support? 

Reply
Customer
(@webgrimm)
Joined: 6 years ago

Member
Posts: 8

Have made a copy of the Website.

Your Email adress for Admin-account?

Reply
Astghik
Admin
(@astgh)
Joined: 7 years ago

Illustrious Member
Posts: 6152

ok @webgrimm,

please send the login details to info[at]gvectors.com email address. 

Reply
Astghik
Posts: 6152
Admin
(@astgh)
Illustrious Member
Joined: 7 years ago

@webgrimm,

Please follow the steps below:

1. Open the class.WMUHelper.php file in /wp-content/plugins/wpdiscuz-media-uploader/includes/ folder

2. go to line 460 

3. Find the imageFixOrientation function and replace with the following one: 

public function imageFixOrientation($filename) {
if (function_exists('exif_read_data')) {
$exif = exif_read_data($filename);
if (!empty($exif['Orientation'])) {
$image = imagecreatefromjpeg($filename);
switch ($exif['Orientation']) {
case 3:
$image = imagerotate($image, 180, 0);
break;
case 6:
$image = imagerotate($image, -90, 0);
break;
case 8:
$image = imagerotate($image, 90, 0);
break;
}
imagejpeg($image, $filename, 90);
}
}
}

I'd also recommend you install the exif library, as the wpDiscuz Media Uploader add-on uses exif library so as to allow images to be uploaded in the right way. For example, if you take a photo with IOS it rotates when you publish the comments.

Reply
Page 2 / 2
Share:
Scroll to top