Fix WordPress Missing Visual Tab

JTS

Just a quick tip, but recently we stumbled into a strange situation, when having added our WordPress blog to Varnish, the visual tab went missing in the WP Admin. This seems like a common issue and we tried every fix we found on the web, but to no avail. We were about to add SCRIPT DEBUG (

define( 'SCRIPT_DEBUG', true );

)when on a whim we once again removed WP from varnish.

For some strange reason that worked. So obviously, something in WP Admin didn’t like our varnish cache configuration for some reason. We then just bypassed wp-admin from the Varnish and everything started working again.

Tech Tip: In the vcl_recv sub of your varnish VCL file, add the following bypass:

        # Remove blog wp-admin instead of entire blog
        if (req.url ~ "wp-admin") {
                return (pipe);
         }

Hopefully this can help some folks who have varnish and run into similar issues.

Need any help? Feel free to drop us a line!

 

About the author

During his twenty-five professional years, Mr. Silva has had experience in nearly every facet of the Information Technology industry. Ranging from advanced data mining / data visualization systems to running multi-state small business IT infrastructures, Mr. Silva has always provided precise and cost-effective strategies to meet any client’s needs. With his tremendous work ethic and “Can-Do” attitude, Mr. Silva has always met every challenge head-on and with intelligent determination. Mr. Silva is also a certified NAUI Advanced/Nitrox Diver, hoping to get a few more wrecks under his belt in the Atlantic.