Same thing here.
Just downloaded this plugin but it wouldn’t activate. I found I had to update my php version but after I did that it would only give the error:
Fatal error: Call to a member function getVersion() on a non-object in .../wp-content/plugins/pdf-light-viewer/controllers/Plugin.php on line 260
After some digging around I’m finding its a problem with this line of code:
$Imagick = static::getXMagick();
Which is followed by:
$ImagickVersion = $Imagick->getVersion();
Apparently the preceding line returns null and I can’t find any information on what this code actually does as the only place it shows up in searches is on this plugin.
We need to find a way to pull $Imagick as an object so the getVersion() can properly run on it.
At least, this is my assessment though I’m not the best with php.
I had this bug too when I installed this plugin for the first time. I installed an older version and realized I needed ImageMagick on my server. After installing ImageMagick, the newest version of the plugin now works like a charm.
So apparently it’s a bug in the plugin caused by the fact that ImageMagick is not installed on your server.
Well I have ImageMagick enabled and it’s still not working. Might want to fix before your bad reviews outweigh your good ones– and it’s getting CLOSE.
-
This reply was modified 9 years, 9 months ago by
kamcl.
Hello @freddela, @chadcey, @jbouchard24, @kamcl,
Just wanted to let you know that getVersion() issue was fixed in the version 1.3.10.
@kamcl, yes, it’s getting close. It’s a pity that all those 99% (6000+ active) users, which are using the plugin successfully doesn’t vote here, on ww.wp.xz.cn.
No matter what review you left – good one, bad one, neutral one – you’ll receive an answer, sooner or later.
Please remember, that the fastest way to get support is to write us to [email protected]