Just finished transferring our site to a new VM and noticed that the background images for the different grid boxes (using featured images) not longer are scaling. The keep their proportions.
The new setup is using PHP 7.0.3 and I was wondering if it’s caused either by PHP7 itself or maybe a missing Apache php-extension? Any ideas?
The old box was using php 5.5.
Hi,
We do not recommend PHP 7 with our theme as it was not tested and some features we still use could be deprecated in php 7 and create problems. Please revert to a previus version of php.
Another thing that could be the case is a plugin conflict as image scaling is a common plugin conflict. Please try to disable all your plugins except visual composer, clear cache and make sure you have the thumbnails selected in the theme panel: http://screencast.com/t/XCJACumlG
Also regenerate your thumbs afterwards.
Let us know how it goes.
Thank you!
Hi Bogdan.
Thanks for a swift reply.
I thought Newspaper theme was PHP7 compliant.
Unfortunately we’re not going to downgrade PHP. Simply too many benefits of the much faster PHP7. But I was wondering if the error is due to a missing extension. Could possibly be PHP-GD or maybe ImageMagick missing or? I haven’t check the source for the functions you guys use, but there are no error reports in the logs.
Site won’t launch until mid April, so still some time for PHP7 support for Newspaper.
Hi,
You can try to inspect the images with your browser inspector and see if the thumbnail is being created. If not, then try to disable plugins and regenerate thumbs. Alternatively, if maybe the image is not big enough for the container (theme does not enlarge images. It just crops them) you could use the ‘thumbnail upscale’ plugin.
Thank you!
Hi Bogdan.
Just a quick update:
Regenerated all the thumbnails, and that fixed the existing images. I’ll try and add a new image now and see if the error still persists when added new images.
I’ve used 1920×1080 images for all testing so images are not being enlarged.
Just did some load testing. Using PHP 7, Apache 2.4.18 and MariaDB 10.1. Blazing fast compared to the old PHP5 + MySQL solution. (8 CPU, 20 GB RAM)
Hi,
Glad you solved the images. Hopefully they will display correctly. As for PHP 7, there might not be any errors at all or there could be lots of them. We are unsure as we have not tested our themes with it yet. You could try it out and run a few tests to see if everything is in order. You can compare the site to our live demo so you can have a ‘control’ sample. http://demo.tagdiv.com/newspaper/
Thank you!
