• Resolved cewporg

    (@cewporg)


    Hello!

    Due to some (suspected) conflict between my theme and ip-geo-block, I cannot edit posts and pages on my site from the top WordPress Admin Toolbar.

    Here’s what happens:
    1) I view a post or page outside of /wp-admin/.
    2) I go to the top WordPress Admin Toolbar and click the “Edit” link
    3) It takes me to the URL /post.php?post={postID here}&action=edit, which gives me the error I set for when something is blocked by ip-geo-block.

    However, I can still access posts/pages within /wp-admin/ (as well as the rest of /wp-admin/) absolutely fine. I suspect the issue is because that the ip-geo-block authorization URL variable/token somehow isn’t automatically being passed through to the “Edit” link in my toolbar.

    For comparison, I can successfully access post/page editing if my URL looks like this: /post.php?post={postID here}&action=edit&ip-geo-block-auth-nonce={IP geo block token here} — and this is the case for navigating to post/page editing within /wp-admin/.

    I suspect that there’s something wrong with the theme I just installed that’s preventing the token/corresponding URL variable from appearing in the Admin Toolbar. I say this because I’ve already gone through a process of elimination where changing to different themes means this issue no longer occurs.

    Does anyone know what might be up with my theme/what area of the code I should focus on in order to get the token/URL variable to show up again? Thanks in advance!

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author tokkonopapa

    (@tokkonopapa)

    Hi cewporg,

    Thank you for your choosing this plugin! And your description about this issue is very excellent!!
    But unfortunately, I don’t have enough time to explain how this plugin handle a nonce (you said “token”). There are a few ways to embed a nonce. One is done by JavaScript and I think it is your case. So I’d like to ask you to check if there were some JavaScript errors in your theme. If there were, this issue would happen.

    As I think you already know about how to debug JS, but I put a few links.

    https://developer.mozilla.org/en-US/docs/Tools/Debugger
    https://developers.google.com/web/tools/chrome-devtools/
    https://msdn.microsoft.com/en-us/library/dd565625(v=vs.85).aspx

    I appreciate your cooperation.

    Thread Starter cewporg

    (@cewporg)

    Thank you very much for the quick reply, tokkonopapa (as well as making this plugin)!! Will go ahead and debug myself.

    Plugin Author tokkonopapa

    (@tokkonopapa)

    Hi cewporg,

    In case you can’t find any javascript errors or can’t fix this issue after your debug, please let me know. I should dive into your situation more specifically.

    Good luck!

    Plugin Author tokkonopapa

    (@tokkonopapa)

    Additional info: Inconsistency of html tag might cause js errors. I ever had found a bug in a theme: https://github.com/Obox/layerswp/pull/329

    Plugin Author tokkonopapa

    (@tokkonopapa)

    Hi cewporg,

    How this issue going? In the latest version 2.2.9, I implemented a fallback process that would try to fix this issue even if some js error happened.

    I appreciate you to let me know your status.
    Thanks.

    Plugin Author tokkonopapa

    (@tokkonopapa)

    Hello @cewporg,

    Would you please try my new version and enable “Prevent Zero-day Exploit” feature at “Admin area”? I hope your issue may be solved.

    Thanks for any help you provide to improve this plugin.

    Thread Starter cewporg

    (@cewporg)

    Hey @tokkonopapa… apologies for the lack of replies! The emails notifications from this thread ended up going to spam. I actually ended up resolving the issue about 1.75 months ago, turns out it indeed was a JS issue with my theme and not necessarily an issue with your plugin code.

    Thank you so much for your very proactive help and an awesome plugin!! You have helped protect my site from many headaches and I deeply appreciate it.

    Plugin Author tokkonopapa

    (@tokkonopapa)

    Hi @cewporg,

    You’re very welcome. I’m glad to hear that.
    Thank you for coming back again!

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Unable to edit pages or posts from top Admin toolbar after changing to new theme’ is closed to new replies.