Rotate Media Right not working

jOOc

Active member
Just noticed that when I tried to rotate an image to the right I get an "Unexpected Error" message. Nothing turns up in the logs. Rotate to the left works just fine.

I tested this on my local site and also on @Bob's site xenaddons.com both sites gets this error. But when I try here on xenforo.com It works just fine.
I have tried to turn of many add-ons but this does not help.
 
Matt, can you add a quick line of code somewhere to see the output of this:

PHP:
Zend_Debug::dump(function_exists('imagerotate'));

I don't see any reason why you wouldn't have that function as I believe it is standard; but there is a fallback in the code in case that function isn't available for whatever reason.
 
Matt, can you add a quick line of code somewhere to see the output of this:

PHP:
Zend_Debug::dump(function_exists('imagerotate'));

I don't see any reason why you wouldn't have that function as I believe it is standard; but there is a fallback in the code in case that function isn't available for whatever reason.
Sorry Chris, where should I stick that line of code? Just in it's own file?
 
Anywhere, really, config.php would work but bear in mind it will output to all users while it's in there unless you wrap it in a conditional. I just need to know whether it outputs true or false, really then it can be removed.
 
PHP:
<?php
if (function_exists('imagerotate')) {
    echo "imagerotate functions are available.<br />\n";
} else {
    echo "imagerotate functions are not available.<br />\n";
}
?>

upload_2014-12-19_14-3-12.webp

EDIT:

upload_2014-12-19_14-4-10.webp
 
Ok, that's fine, sort of what I expected.

If you upload the image you've been testing with here, I'll do some testing on a similar PHP version and see if I can track it down to anything in particular.
 
Thanks Chris.

I've tested on PHP 5.5.19 and PHP5.6.3

Code:
root@debian:/home/websites/test.mattwservices.co.uk# php -v
PHP 5.6.3-1~dotdeb.1 (cli) (built: Nov 16 2014 21:51:11)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2014 Zend Technologies
    with Zend OPcache v7.0.4-dev, Copyright (c) 1999-2014, by Zend Technologies
root@debian:/home/websites/test.mattwservices.co.uk# php -m
[PHP Modules]
bcmath
bz2
calendar
Core
ctype
curl
date
dba
dom
ereg
exif
fileinfo
filter
ftp
gd
gettext
hash
iconv
imagick
json
libxml
mbstring
mcrypt
memcached
mhash
mysql
mysqli
mysqlnd
openssl
pcntl
pcre
PDO
pdo_mysql
Phar
posix
readline
Reflection
session
shmop
SimpleXML
soap
sockets
SPL
standard
sysvmsg
sysvsem
sysvshm
tokenizer
wddx
xml
xmlreader
xmlwriter
Zend OPcache
zip
zlib

[Zend Modules]
Zend OPcache

Code:
root@cpanel [~]# php -v
PHP 5.5.19 (cli) (built: Nov 30 2014 07:08:54) 
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2014 Zend Technologies
    with XCache v3.1.0, Copyright (c) 2005-2013, by mOo
    with XCache Cacher v3.1.0, Copyright (c) 2005-2013, by mOo
root@cpanel [~]# php -m
[PHP Modules]
bcmath
calendar
Core
ctype
curl
date
dom
ereg
exif
filter
ftp
gd
hash
iconv
imagick
imap
json
libxml
mbstring
mcrypt
memcache
mysql
mysqli
mysqlnd
openssl
pcre
PDO
pdo_mysql
pdo_sqlite
Phar
Reflection
session
SimpleXML
sockets
SPL
sqlite3
standard
tokenizer
XCache
XCache Cacher
xml
xmlreader
xmlwriter
zip
zlib

[Zend Modules]
XCache
XCache Cacher
 

Attachments

  • GjCIF87.webp
    GjCIF87.webp
    68.9 KB · Views: 0
Top Bottom