• Resolved redhandledscissors

    (@thezenofmaking)


    After switching to a new VPS (I migrated from a DreamHost VPS to DreamHost’s DreamPress WordPress-specific hosting with Varnish caching), my admin toolbar no longer displays on my single post pages, even when I’m logged in. This has been an issue since I moved servers/updated to 4.2.1 (these two changes happened within days of each other). My DNS/URL didn’t change after the server move.

    My site: https://www.thezenofmaking.com

    Solutions tried:
    * Confirming that toolbar checkbox was selected on my profile (it is, and I’m the admin of my site)
    * Checking database to ensure that the toolbar visibility hadn’t been turned off there (it wasn’t)
    * Deleting and reinstalling both my parent theme and child theme (Twenty Fourteen)
    * Turning off child theme and using a clean install of the Twenty Fourteen theme (admin toolbar still didn’t show up)
    * Switching back to my old Twenty Eleven child theme (where where the admin bar was working before the server move)
    * Reinstalling the current version of WordPress
    * Restarting my VPS
    * Cleaning and optimizing my database tables
    * Checking functions.php/style.css on child theme for anything out of place (nothing immediately obvious, head tags are in place, and I haven’t edited single.php in my child theme)
    * Deactivating any new plugins installed since the server move (no conflicts discovered)
    * Turned on WP_Debug and ran my theme through Theme Check plugin to check for errors (none)
    * Checked WP_Debug log (Google Adsense errors, but nothing that looked related to the issue–I did deactivate my Adsense app when troubleshooting)

    I cleared the Varnish cache after each change.

    Additional information:
    * For no apparent reason, the Related Posts module in Jetpack also refuses to display on single post pages (this happened around the same time as the admin toolbar disappeared)
    * The time on VPS has been 544 seconds ahead since the move, but that was fixed by DreamHost last night

    At this point, I’m kind of at a loss. Any help that you WP geniuses could provide would be very much appreciated!

Viewing 1 replies (of 1 total)
  • Thread Starter redhandledscissors

    (@thezenofmaking)

    While trying to solve a different issue (the Jetpack Related Posts module issue I referred to above), I stumbled upon the fix!

    If you’re having similar issues and your site is hosted on DreamPress/a varnish server, you’ll definitely want to try this:

    Quoting the very helpful Ipstenu-DH, who responded to my Jetpack issue in the Jetpack forum:

    You’re going to have a problem with your URLs ?? and I suspect that’s why Jetpack’s being weird.

    https://www.thezenofmaking.com/2014/12/tutorial-resin-thread-spool-bracelet.html

    Notice how they end in .html? We’ve been working through some issues where Varnish decides those are legit HTML pages and caches them as static content, versus the dynamic that WP should be.

    We strongly recommend not using .html in your URLs, and just change your permalinks to /%year%/%monthnum%/%postname%/

    Then you can use this to redirect all the posts without loosing SEO:

    RedirectMatch 301 ^/([0-9]{4})/([0-9]{2})/([^/]+).html$ https://www.thezenofmaking.com/$1/$2/$3/

    It would go at the top of your .htaccess. If you open a ticket, we can help you with that.

    Of course, you’ll want to change my URL to yours in your own .htaccess.

    After I made the permalink/.htaccess changes and cleared my varnish cache, my admin toolbar was immediately restored on single post pages, and Jetpack immediately began to function properly.

Viewing 1 replies (of 1 total)
  • The topic ‘Admin Toolbar Missing on Single Post Pages’ is closed to new replies.