{"id":2710,"date":"2019-12-05T22:18:35","date_gmt":"2019-12-05T22:18:35","guid":{"rendered":"http:\/\/www.dpscomputing.com\/blog\/?p=2710"},"modified":"2021-03-01T21:32:30","modified_gmt":"2021-03-01T21:32:30","slug":"danger-read-before-updating-adrotate","status":"publish","type":"post","link":"https:\/\/www.dpscomputing.com\/blog\/2019\/12\/05\/danger-read-before-updating-adrotate\/","title":{"rendered":"DANGER!  Read Before Updating Adrotate!"},"content":{"rendered":"\n<div class=\"wp-block-image\"><figure class=\"alignright size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"200\" height=\"200\" data-attachment-id=\"2712\" data-permalink=\"https:\/\/www.dpscomputing.com\/blog\/2019\/12\/05\/danger-read-before-updating-adrotate\/adrotate\/\" data-orig-file=\"https:\/\/www.dpscomputing.com\/blog\/wp-content\/uploads\/2019\/12\/adrotate.png\" data-orig-size=\"200,200\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"adrotate\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/www.dpscomputing.com\/blog\/wp-content\/uploads\/2019\/12\/adrotate.png\" data-large-file=\"https:\/\/www.dpscomputing.com\/blog\/wp-content\/uploads\/2019\/12\/adrotate.png\" tabindex=\"0\" role=\"button\" src=\"https:\/\/www.dpscomputing.com\/blog\/wp-content\/uploads\/2019\/12\/adrotate.png\" alt=\"\" class=\"wp-image-2712\" srcset=\"https:\/\/www.dpscomputing.com\/blog\/wp-content\/uploads\/2019\/12\/adrotate.png 200w, https:\/\/www.dpscomputing.com\/blog\/wp-content\/uploads\/2019\/12\/adrotate-150x150.png 150w, https:\/\/www.dpscomputing.com\/blog\/wp-content\/uploads\/2019\/12\/adrotate-160x160.png 160w\" sizes=\"auto, (max-width: 200px) 100vw, 200px\" \/><\/figure><\/div>\n\n\n\n<p>The Adrotate plugin is a popular staple of many blogs &#8211; including this one.  <\/p>\n\n\n\n<p>However, the update to Adrotate Version 5.6.2 could lead to you needing a fresh pair of underwear.  Particularly if you&#8217;ve done the naughty thing of not taking a backup prior to your updates.  <\/p>\n\n\n\n<p>Updating blog software and CMS&#8217;s such as Joomla and WordPress has traditionally been fraught with difficulty.  However, in recent years, this has got better &#8211; with the advent of auto-updates to core files as well compatibility checkers for plugin updates and a whole host of other measures to make updating less Russian Roulette and more stroll in the park.  <\/p>\n\n\n\n<p>That&#8217;s what makes it even more heart-wrenching these days when it goes wrong.  You&#8217;re nowhere near as expecting it as much as you may have done only a few years ago.  <\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What&#8217;s The Issue<\/h2>\n\n\n\n<p>WordPress white screen of death.  <\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"858\" height=\"207\" data-attachment-id=\"2711\" data-permalink=\"https:\/\/www.dpscomputing.com\/blog\/2019\/12\/05\/danger-read-before-updating-adrotate\/image-29\/\" data-orig-file=\"https:\/\/www.dpscomputing.com\/blog\/wp-content\/uploads\/2019\/12\/image.png\" data-orig-size=\"858,207\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"image\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/www.dpscomputing.com\/blog\/wp-content\/uploads\/2019\/12\/image-300x72.png\" data-large-file=\"https:\/\/www.dpscomputing.com\/blog\/wp-content\/uploads\/2019\/12\/image.png\" tabindex=\"0\" role=\"button\" src=\"https:\/\/www.dpscomputing.com\/blog\/wp-content\/uploads\/2019\/12\/image.png\" alt=\"\" class=\"wp-image-2711\" srcset=\"https:\/\/www.dpscomputing.com\/blog\/wp-content\/uploads\/2019\/12\/image.png 858w, https:\/\/www.dpscomputing.com\/blog\/wp-content\/uploads\/2019\/12\/image-300x72.png 300w, https:\/\/www.dpscomputing.com\/blog\/wp-content\/uploads\/2019\/12\/image-150x36.png 150w, https:\/\/www.dpscomputing.com\/blog\/wp-content\/uploads\/2019\/12\/image-768x185.png 768w\" sizes=\"auto, (max-width: 858px) 100vw, 858px\" \/><\/figure><\/div>\n\n\n\n<p>Every sys admins nightmare.  &#8216;Critical error on your website&#8217; is <strong>not<\/strong> something you want to be reading &#8211; <strong><em>ever<\/em><\/strong>!<\/p>\n\n\n\n<p>&#8216;Learn more about debugging in WordPress&#8217;.  Oh the joys.  We&#8217;ve spent many an hour pouring over this ourselves previously.  It&#8217;s no fun &#8211; particularly as this kind of issue usually happens right before you&#8217;re about to leave the office for the night or head to bed (or both!).  <\/p>\n\n\n\n<p>Thankfully, we&#8217;ve encountered the pain with the latest Adrotate plugin upgrade to 5.6.2 so you don&#8217;t have to.  <\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What Do I Need To Do?<\/h2>\n\n\n\n<p>Firstly, breathe.  <\/p>\n\n\n\n<p>Secondly, continue breathing.  <\/p>\n\n\n\n<p>Thirdly, you can <a href=\"https:\/\/wordpress.org\/support\/article\/debugging-in-wordpress\/\">activate debug mode<\/a> as suggested in the handy WordPress article.  Of course, if you&#8217;ve just batched many updates, you may need to do this to conclusively narrow down the problem.  <\/p>\n\n\n\n<p>However, if you&#8217;re on the latest version of WordPress, and you&#8217;ve just updated Adrotate, then that&#8217;s almost likely to be the (or one of the) issues.  Thankfully, one that&#8217;s not too difficult to fix.  <\/p>\n\n\n\n<p>Going to your blog home page shows the WordPress critical error death page, so that&#8217;s not going to help too much.  Try direct navigating to your admin control panel &#8211; default address ends in wp-admin\/index.php &#8211; e.g. www.your-domain.com\/wp-admin\/index.php.  <\/p>\n\n\n\n<p>This should load, albeit in a sickly fashion.  If you&#8217;ve enabled debug mode, prepare for a flurry of PHP error messages to be displayed informing you things are FUBAR!<\/p>\n\n\n\n<p>You&#8217;ve probably got scary errors such as this one displaying:<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>__construct()<\/p><p>instead. in&nbsp;<strong>xxxx\/xxxx\/xxxx\/xxxx\/xxx\/xx\/wp-includes\/functions.php<\/strong>&nbsp;on line&nbsp;<strong>xxxx<\/strong><\/p><cite>Scary WordPress error<\/cite><\/blockquote>\n\n\n\n<p>Don&#8217;t fear, simple solution on the way.  <\/p>\n\n\n\n<h2 class=\"wp-block-heading\">The Final Fix<\/h2>\n\n\n\n<p>Head to your plugins page.  The menu on the right should still be there in the dashboard &#8211; even if it is a little pushed down the page by all the errors.  If not, direct navigate to \/wp-admin\/plugins.php.  So if your domain is www.your-domain.com then head to www.your-domain.com\/wp-admin\/index.php &#8211; assuming that you&#8217;re using the default directory structure of course.  <\/p>\n\n\n\n<p>Then:<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>Deactivate the Adrotate plugin.  <\/li><li>Activate the Adrotate plugin.  <\/li><\/ol>\n\n\n\n<p>Give it a few minutes, refresh your admin dashboard, refresh your blog and voil\u00e1, peace &#8211; and your blog &#8211; should now be restored.  You&#8217;ll see the usual &#8216;thanks for upgrading Adrotate&#8217; message on your dashboard &#8211; the message cheerily displayed by the plugin that has no idea that it&#8217;s just scared you half to death!  <\/p>\n","protected":false},"excerpt":{"rendered":"<p>The Adrotate plugin is a popular staple of many blogs &#8211; including this one. However, the update to Adrotate Version 5.6.2 could lead to you needing a fresh pair of underwear. Particularly if you&#8217;ve&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":2712,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"You'll want to check this out to stop you ripping your hair out!\n\nDANGER!  Read Before Updating Adrotate!\n\n#Wordpress #Adrotate #CriticalError","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false},"version":2}},"categories":[55],"tags":[2522,2526,2527,2528,2523,2524,2525,103,2529,2531,2530],"class_list":["post-2710","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-articles","tag-adrotate","tag-adrotate-5-6-2","tag-adrotate-5-6-2-upgrade","tag-adrotate-5-6-2-upgrade-error","tag-adrotate-upgrade","tag-adrotate-upgrade-issue","tag-adrotate-upgrade-warning","tag-wordpress","tag-wordpress-adrotate-error","tag-wordpress-critical-error","tag-wordpress-plugin-error"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/www.dpscomputing.com\/blog\/wp-content\/uploads\/2019\/12\/adrotate.png","jetpack_shortlink":"https:\/\/wp.me\/p3nsfA-HI","jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/www.dpscomputing.com\/blog\/wp-json\/wp\/v2\/posts\/2710","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dpscomputing.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dpscomputing.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dpscomputing.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dpscomputing.com\/blog\/wp-json\/wp\/v2\/comments?post=2710"}],"version-history":[{"count":2,"href":"https:\/\/www.dpscomputing.com\/blog\/wp-json\/wp\/v2\/posts\/2710\/revisions"}],"predecessor-version":[{"id":3024,"href":"https:\/\/www.dpscomputing.com\/blog\/wp-json\/wp\/v2\/posts\/2710\/revisions\/3024"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.dpscomputing.com\/blog\/wp-json\/wp\/v2\/media\/2712"}],"wp:attachment":[{"href":"https:\/\/www.dpscomputing.com\/blog\/wp-json\/wp\/v2\/media?parent=2710"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dpscomputing.com\/blog\/wp-json\/wp\/v2\/categories?post=2710"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dpscomputing.com\/blog\/wp-json\/wp\/v2\/tags?post=2710"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}