Dear @c0decrow,
Thank you for the posting.
Please try troubleshooting the case using Health Check & Troubleshooting.
This will help identify any possible conflicts behind the failed light box work.
Sincerely,
Hello,
The issue is sporadic – during the day both desktop and mobile were enlarging images without problems. Currently, it’s not working on mobile once again.
This is the Site Health report:
———
Site Health: Good
1 Recommended improvement
Have a default theme available
[Security]
Themes add your site’s look and feel. It’s important to keep them up to date, to stay consistent with your brand and keep your site secure.
Your site has 1 theme waiting to be updated.
Your site does not have any default theme. Default themes are used by WordPress automatically if anything is wrong with your normal theme.
Passed tests
21 Items with no issues detected
———
The only potential problem shown is the theme version.
Could it be the problem?
Hello again!
I updated the theme and plugins to last version, cleared all warning without any result. And that’s normal because I found out that the issue has nothing to do with themes, plugins or compatibility.
It really took me a while to figure it out and I was really lost until I decided to open the website logs. I found a lot of log entries with 403 HTTP codes indicating forbidden resource:
149.62.243.235 – – [25/Jan/2021:22:50:13 +0200] “GET /wp-admin/admin-ajax.php?action=GalleryBox¤t_view=0&gallery_id=16&tag=108&theme_id=2&shortcode_id=177&sort_by=order&order_by=asc¤t_url[…] HTTP/1.1” 403 2312 […]
It turned out that previously configured limitations for the /wp-admin directory on my server were preventing the end users accessing the following script: /wp-admin/admin-ajax.php. Short research on the Internet shows that it’s good practice to make two specific exceptions to your VPN / Firewall / Apache Access Control / .htaccess, which are:
example.com/wp-admin/admin-post.php
example.com/wp-admin/admin-ajax.php
These are two auto-magic endpoints used by a lot by both internal WP and also various plugins.
I don’t know if that script is newly used by the ‘Photo Gallery’ plugin or it’s just a coincidence to be noticed after the update.
Anyway, thank you for your time and help! Sorry for bothering with a problem that was entirely local on my end. I will leave the case as open just for you to acknowledge the root cause (could be helpful for others like me), but you may close it as resolved.
Stay safe and healthy!
Dear @c0decrow,
Thank you for your detailed feedback and problem break-down.
That is extremely valuable.
Your solution is hosting related, so there is nothing to be changed within the plugin.
We will leave this topic open for other users to see your solution.
Sincerely,