Notifications
Clear all

Paid Addons Support Forum Only

Please note, that here we only support Paid Addons issues and questions.

gVectors Support staff works from 6am to 6pm (GMT+0)

All questions related to wpForo and wpDiscuz free plugins should be asked in the corresponding plugin support forum:

 

wpDiscuz Support Forum   wpForo Support Forum

500 Error with admin-ajax.php  

Page 2 / 2

webgrimm
Posts: 8
Customer
(@webgrimm)
Member
Joined: 2 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
(@astghik)
Joined: 3 years ago

Support Team
Posts: 4146

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
(@astghik)
Joined: 3 years ago

Support Team
Posts: 4146

@webgrimm,

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

Reply
webgrimm
Customer
(@webgrimm)
Joined: 2 years ago

Member
Posts: 8

Have made a copy of the Website.

Your Email adress for Admin-account?

Reply
Astghik
Admin
(@astghik)
Joined: 3 years ago

Support Team
Posts: 4146

ok @webgrimm,

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

Reply
Astghik
Posts: 4146
Admin
(@astghik)
Support Team
Joined: 3 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: