Hi,
Could you send me the link to your webpage, to check the issue in detail, please?
Do you have installed any of plugins for managing the websites cache in your WordPress?
If you do not detect the cause of issue, feel free to send me the access to your WordPress, through my private support page, to check the website’s settings:
http://wordpress.dwbooster.com/support
Best regards.
Hi,
I have no plugin installed managing my website’s cache. Maybe wordfence can be considered as such but I haven’t activated the cache functionality in this plugin.
Anyway, I deactivated all plugins but yours, I activated the twenty sixteen theme instead of mine and the problem is still there: The loading screen can be seen only by administrator (neither subscribers nor unlogged users can see that loading screen). I tested it locally on my computer and it still does not work.
This is a particular issue and due to its behaviour and since it still happens even when I deactivate all plugins and activate a basic theme whether it is locally or online, I think it is likely that this issue comes from the code of the plugin itself.
Still no idea?
Hi,
Part of the “loading screen” code is included in the wp_head action, and other in the template_redirect, both actions are available for all users.
Could you create a ticket in my private support service, with the access to your WordPress to check the issue in detail, and the website’s settings , please?
http://wordpress.dwbooster.com/support
Best regards.
Hi,
If you have used in the past any of plugins for managing cache, please, check if the WP_CACHE constant is defined and set to true in the wp-config.php file, in whose case you should remove the constant definition, or set it to false.
Best regards.
Hi,
First, I want to say that your habit of making the subject “resolved” though nothing has been resolved seems particularly dishonest. And it is shameful for wordpress to let the creator of the plugin decides what is resolved and what is not.
Second, I found out what the problem was.
It is due to the condition check in loading-page.php.
When I was logged in as subscriber, the $post-ID was empty and so the second part of the check condition was not satisfied
(
empty( $exclude_pages ) ||
!in_array( $post->ID, $exclude_pages)
)
This code seems to take the ID of the last post (I say post, not page) of the page. But this post is private and created by the administrator, so the ID is not seen by the subscriber. Since ID is ” and $excludepages is an empty array, the condition is verified, the page is considered as excluded and the loading screen does not appear.
To solve this, I added a small part:
`(
empty( $exclude_pages ) ||
!in_array( $post->ID, $exclude_pages) || $post->ID == ”
)
Hi,
Thank you very much for sharing your solution, I’ll include your modified code in the plugin immediately.
My apologies for changing the ticket status. I tick the checkbox: “Mark this topic as resolved”, because I always continue working in the tickets until resolve them, but unfortunately the majority of the users never return to the tickets to change their status.
One more time, thank you very much.
Hi,
Ok, from that point of view, this is more understandable… it is just confusing at first sight.
Anyway, glad if I could help you.
And thank you for the plugin.