[BUG] PLugin forces session to expire
-
There is a serious bug in this plug-in. When I activate it, the session continuously expires and I am forced to continuously login again.
Please, note that my site is in a subdomain, that is:
and that Site and WP URLs are the same. I tried several time: if I activate plugin, the error occurs, if deactivate the plug-in, the error does NOT occur.
-
I made some other test and I had the confirmation that WordPress Popup is responsible for the problem. As I activate it, the session continuously expires whatever action I do. As I deactivate it, the problem disappear.
Furthermore, custom CSS seems not to work for subtitle. Just consider that
#popup .wdpu-content p { text-align: justify; }
does not work, but
.wdpu-0 .wdpu-content p { text-align: justify; }
does, whereas
.wdpu-0 .wpdu-subtitle { font-size: 16px ; }
does NOT work too.
Hey there dejudicibus,
I’ve tested this on my sandbox site on subdomain and I couldn’t reproduce the issue so I’m assuming that this is related to popup conflicting with some other plugin/theme. Can you please test for conflicts by using default WordPress theme like Twenty Fifteen and deactivating all other plugins as displayed in the following flowchart to know which theme/plugin is conflicting if any.
https://premium.wpmudev.org/wp-content/uploads/2013/12/Support-Process-Support-Process.png
As for the CSS, I’ve tested this on my end by adding the following:
.wdpu-4 .wdpu-subtitle { font-size: 38px; }
and everythign worked just fine, see screenshot https://screencast.com/t/WkfJbCyuYx. Where are you adding the CSS and could you please post link to your site where you have this popup with the CSS added so I can take a look.
Best regards,
BojanBojan, first of all, thank you for reply. I cannot change the theme or make experiments on production site, of course. I should duplicate the site to create a sandbox site to play with it, and, since I am using a lot of plugins, it may take some time before I can test all of them. Before starting an activity that will be quite time-consuming, do you have any hint to help me to understand why a plugin conflict should end continuously the WordPress session? Any idea?
About CSS, I placed it in the specific textarea of plug-in for custom CSS.
The problem does not occur on site, that is, if you look at site, you do not notice the problem. You are aware of the problem if, once the plugin is activated, you work on the WordPress administration panels. For example, making changes to popup content, creating a post, and so forth. At the moment, I deactivated the plug-in on production site, otherwise I cannot work with it.
I am trying to reproduce the problem in a sandbox site. At the moment, I was able to reproduce the CSS problem. Here is what I write in popup:
https://www.dejudicibus.it/images/custom_css.jpg
Preview shows this
https://www.dejudicibus.it/images/popup_preview.jpg
So, 16px font is NOT applied to subtitle.
Just want you to know I had Tooltips
Version 3.5.9 | By Tomas Zhu:
installed.When I attempted to save my customized appearance, I was prompted with a session expired login page.
Deactivated it and and the issue stopped. Great idea as a plugin, but I can not use it as it conflicts to much.
I deactivated all plugins.
started at the top and activated them one by one.
after each activation I attempted to change the color of the active link in the header to any color. changed and saved it at least three times for each plugin. As it did not happen every time on the first try but always did on the second try.
rinse and repeat until I activated Tooltips.
after confirmed issue.
activated ALL other plugins and tested again.
no issue,
so now I am looking for a replacement for Tooltips…
hope this helps.I do not use Tooltips. I simply wonder why a plugin (Tooltips, Popup, …) should generate such a behaviour. I do not see any reason why those plugins should force the end of session. Is that related with a specific WordPress API?
Hey there dejudicibus,
I believe the issue with your CSS is using “#popup” in the selector, I’ve checked on my sandbox site and I couldn’t find element with that ID so this is most likely the reason your code is not working.
Can you please post link to your site where I can see this popup and I’ll try to provide CSS and correct selector.
Best regards,
BojanAt the beginning I used #popup because that was stated in the instructions, as you can see here:
https://www.dejudicibus.it/images/custom_css.jpg
but later on I used .wdpu-0 instead of #popup, but it does not work. There is probably a bug in the plugin if they think that #popup id is set, because it is not, as you correctly stated.
Hey again dejudicibus,
#popup in selector actually works, what it does is actually targets that specific popup. Sorry about that I completely missed that one ??
So to justify the text in the popup please try adding the following:
#popup .wdpu-msg p { text-align: justify; }
CSS for subtitle font size should work as displayed in your screesnhot:
#popup .wdpu-subtitle { font-size: 11px; }
If the code for any reason doesn’t work please post link to your site where I can see this popup so I can take a look.
Best regards,
BojanWell, I cannot activate the plugin on the production site because it makes my WordPress session continuously expire. Until that problem is fixed, the CSS problem is secondary. If I do not solve the expiration problem I cannot use the plugin, practically. ??
Hey again dejudicibus,
You mentioned that you managed to setup sandbox site and just reproduced the CSS issue there.
Did you test for conflicts as instructed above regarding the session expiring issue?
Best regards,
BojanHere is the SANDBOX site URL
https://www.dejudicibus.it/pfdev/?key=69
Please, note that you must use the query key=69 to see the popup.
As you can see, the subtitle has the same size of title (it should be half the size).CSS is
.wpdu-subtitle { font-size: 16px ; } .wdpu-content p { text-align: justify; }
#popup prefix does not work.
In the SANDBOX the expiration problem does not occur, so you are probably right when you said that probably is a collision with another plugin or theme, but the problem is that I have plenty of plugins in the production site. It might require weeks to test all of them.
Do you have any hint about WHY popup plugin and other code together may cause session expiration? What kind of code may bias session expiration in WordPress?
Hey again dejudicibus,
For CSS issue this is just an issue with specificity, as you can see in this screenshot https://screencast.com/t/Wpms8kEdnNc, your subtitle CSS has this selector:
.wdpu-1181 .wdpu-subtitle
So adding just
.wpdu-subtitle
will get override by it. However, adding the same selector in the custom CSS tab should do the trick so please try adding the following:
.wdpu-1181 .wdpu-subtitle { font-size: 16px; }
As for the session expiration I’ve found the following post that might be useful for you, please check it out:
https://www.wpbeginner.com/wp-tutorials/how-to-fix-wordpress-keeps-logging-out-problem/
Hope this helps ??
Cheers,
BojanHi Bojan,
I just tried
.wdpu-1181 .wpdu-subtitle { font-size: 16px ; } .wdpu-1181 .wdpu-content p { text-align: justify; }
too, but it does not work. So I inspected code and found that the following CSS is generated:
<style type="text/css"> /** * Style: Simple */ ... .wdpu-1181 .wdpu-title, .wdpu-1181 .wdpu-subtitle { font-size: 22.5px; ... } ... .wdpu-1181 .wdpu-subtitle { font-size: 16px; } .wdpu-1181 .wdpu-content p { text-align: justify; } </style>
The last two lines seem to be ignored anyway. I do not understand why. Maybe because they are at bottom, after @media {…} block? Have you tried to generate a separate block like this
<style type="text/css"> .wdpu-1181 .wdpu-subtitle { font-size: 16px; } .wdpu-1181 .wdpu-content p { text-align: justify; } </style>
for the custom CSS? Are you sure that custom CSS works in any browser? I use Chrome.
May I also suggest you, in a future release, to add id=”wpdu-popup” to your popup? It is a minor change that could help, so we could use
#wpdu-popup .wpdu-subtitle { font-size: 16px ; } #wpdu-popup .wdpu-content p { text-align: justify; }
that is, what you planned since the beginning according to the instructions below the custom CSS textarea. Since there is ONLY one popup at time, it should work. The wdpu- prefix will ensure that there would be no conflicts with other ids.
Ho Bojan,
I know this problem
https://www.wpbeginner.com/wp-tutorials/how-to-fix-wordpress-keeps-logging-out-problem/
but it is not my case. I use the same url in both fields.
- The topic ‘[BUG] PLugin forces session to expire’ is closed to new replies.