Plugin Contributor
Imagely
(@imagely)
Hi @lacike!
I’m very sorry to hear about this warning you’re seeing. We haven’t received any other reports on an issue with PHP 7.2… would you mind checking the shortcode / basic thumbnails “images per page” setting and ensure it’s a number. If you have it set to zero then pagination is disabled and all images will be displayed. It’s most likely the shortcode that has something wrong with it; our settings form uses <input type=’number’/>.
Thanks!
Becky
Thread Starter
lacike
(@lacike)
Hi,
the problem occurs when I add the shortcode using dedicated button in visual editor when I add Album (which contains 3 albums), not a Gallery.
In “Customize display settings” I see “Images per page” set to zero and the shortcode looks like the following:
ngg_images source=”albums” container_ids=”8″ display_type=”photocrati-nextgen_basic_compact_album” gallery_display_type=”photocrati-nextgen_basic_thumbnails” galleries_per_page=”0″ enable_breadcrumbs=”1″ enable_descriptions=”0″ override_thumbnail_settings=”0″ thumbnail_width=”200″ thumbnail_height=”200″ thumbnail_crop=”0″ order_by=”pid” order_direction=”ASC” returns=”included” maximum_entity_count=”500″
Am I right to assume the problem is that “Album mode” produces “galleries_per_page”, whereas “Gallery mode” produces “images_per_page” and that is the source of “images_per_page” being empty non-numeric value?
Plugin Contributor
Imagely
(@imagely)
@lacike –
That is correct, the albums will set ‘galleries per page’ rather than ‘images per page’. When you insert your album to your page, does it render as expected for you?
Becky
Thread Starter
lacike
(@lacike)
Yes, it is rendered correctly, except the warning which is echoed by php above the album images.
Plugin Contributor
Imagely
(@imagely)
Thanks for your reply,
As Becky already mentioned, we haven’t heard of such issue while using PHP 7.2 so I suspect that it could be because of a plugin conflict.
I would try to deactivate any other plugins and leave on just NextGen, then also would switch to a “Twenty” theme, clear any caching just to make sure that there isn’t any other plugin that conflicts.
If that doesn’t help, I recommend contacting our support at https://www.imagely.com/contact/ for the further assistance (the credentials of the site may be required )
Thanks
Mihai
-
This reply was modified 7 years, 10 months ago by
Imagely.
Thread Starter
lacike
(@lacike)
It is not a plugin issue, it is a known behaviour of PHP7.2, see the stackoverflow link I mentioned in my original post. There’s also a proper way how to test numerical values.
Current workaround is switching back to php7. So problem is solved for me and no support required from my side. I was kind of hoping you might want to know about compatibility issues. More and more people will start using php7.2
Plugin Contributor
Imagely
(@imagely)
Hi @lacike,
Thank you very much for your report.
I have submitted it for our developers’ review.
Best Regards,
Mihai
Thread Starter
lacike
(@lacike)
PHP 7.0 reached its End of Support and the plugin still causes the problem. As web hosting start pushing PHP 7.1 or later, it’ll cause many problems.
When do you plan to fix it?
Hi @lacike
Sorry about the late response.
We would like to check if you still having the same issue with our latest version NextGen Gallery 3.1.6.
Please, if the problem persists, We’d like to take a closer look at this issue with PHP 7.2. We may need to temporarily deactivate plugins and switch the theme while troubleshooting. Would you feel OK with that? If so, please send us a bug report here: http://www.imagely.com/report-bug, refer back to this forum thread and let them know Gaby referred you.
Thanks!
– Gaby, Customer Support.
Because it has been a month or more since your last reply, I am going to mark this as resolved as I assume you have found a solution. Please feel free to reply again if you still have questions.
Thanks!
Hi,
I’m having the same issue (quite randomly, actually) with PHP 7.1.11 and NextGen Gallery 3.1.6
Warning: A non-numeric value encountered in /web/htdocs/www.example.org/home/wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/nextgen_basic_gallery/package.module.nextgen_basic_gallery.php on line 508
Line 508 is:
$offset = $display_settings['images_per_page'] * ($current_page - 1);
I went to Gallery settings and set images_per_page to 0 (before that option had a null value), hoping that will help. Will let you know