WordPress update failed? How to restore your site
Comprehensive guide to safely restoring WordPress after failed updates. Learn backup strategies, manual recovery via FTP/phpMyAdmin, plugin-based restoration, and prevention techniques.
I am Mariusz Szatkowski, one developer in Gdynia, working remotely and in writing, with WordPress since 2006. For Stockholm organisations I maintain WordPress and WooCommerce sites. This page covers one angle: what the Swedish cookie rule requires of a live site, who checks it, and what ongoing maintenance has to repeat so an update does not quietly break it. It is not legal advice.
The rule is 9 kap. 28 § of lagen (2022:482) om elektronisk kommunikation. Data may be stored in or read from a subscriber’s or user’s device only if that person gets information about the purpose of the processing and consents to it. The second paragraph allows two exceptions without consent: storage or access needed to transmit an electronic message over a network, and storage or access that is necessary to provide a service the user or subscriber has explicitly requested.

Photo: Ezarate, CC BY-SA 4.0, Wikimedia Commons.
Breaking it carries a penalty. 13 kap. 2 § says that a person who intentionally or negligently stores or reads data in breach of 9 kap. 28 § is fined, if the act is not punishable under the criminal code. A minor case is not an offence. That paragraph was added by lag (2024:192).
Two authorities matter, and they do not check the same thing. The government decides which authority supervises the act. Förordning (2022:511), 1 kap. 5 §, names Post- och telestyrelsen, PTS. The riksdagen text marks that section as ceasing to apply on 1 January 2027, so the allocation is worth rechecking after that date. Integritetsskyddsmyndigheten, IMY, enforces the GDPR. Both have their postal address in Stockholm.
PTS opened a spot check of website owners on 7 October 2022 to see how 9 kap. 28 § is followed. On 26 June 2023 it told several of them, under 11 kap. 5 § of the act, that it suspected a breach. Three of the decisions are public.
All three decisions are dated 31 October 2023. PTS had visited each site on 16 October 2023 to check the corrections and closed each case without further action, because the sites had been corrected as asked.
The footnote in each decision explains the line PTS draws. Necessary cookies are those needed to perform a service the user explicitly requests, for example a technical function, and they fall under an exception. Cookies that do not meet an exception need consent, and PTS calls them non-necessary.
The cookie rule covers storage in and access to the device. Data that leaves through a script without anything being stored on the device is a GDPR matter. IMY drew that line itself in its decision on Avanza Bank of 24 June 2024. It found that the Meta pixel sent personal data about logged-in customers to Meta, that this was not storage in or access to the device and so not covered by 9 kap. 28 §, and that the GDPR applied. IMY fined the bank 15 million Swedish crowns for breaches of articles 5.1 f and 32.1. The cause was a new sub-feature of the pixel that the bank activated by mistake.
Two other IMY decisions show the same pattern.
For a site owner the lesson is practical. A pixel or an analytics script can create two separate problems, a consent problem on the device and a data protection problem on the server side, and a single setting inside a vendor’s tool can move the second one.
Updates change what a site loads. A theme update, a new embed, a tag manager container edited by marketing, a form plugin switching its spam service: any of these can set a cookie or send data before a visitor has chosen. This is the check I run on staging before an update goes live, and the same list works for an in-house team.
| Trigger | What I check | Why |
|---|---|---|
| Any plugin, theme or core update | Fresh browser profile, open the site, read the cookie list and network requests before touching the banner | Nothing non-necessary may be stored or sent before consent |
| Banner or consent plugin update | Refusal available in the same view, as easy as accepting, with no colour or contrast that favours consent | The points PTS raised with Tele2, Swedbank and Folkhälsomyndigheten |
| Banner first layer | Categories of cookies named in the first layer | The point PTS raised with Tele2 and Swedbank |
| Withdrawal | A visible way to withdraw consent at any time, as easy as giving it | PTS asked for this in all three decisions |
| Statistics tool | Whether it stores or reads data on the device, and if so whether it waits for consent | PTS’s Matomo point in the Folkhälsomyndigheten decision |
| Pixels and marketing tags | Which sub-features and advanced matching options are switched on, and what data they send | Avanza, Apoteket and Apohem were GDPR cases about exactly this |
| After the check | A dated note of what was loaded before and after consent | Evidence if a question comes later |
I keep the tag list in the maintenance record, so a script nobody remembers adding shows up as a difference between two runs. Consent tests are done with the browser’s own tools, not with a plugin that reports on itself.
I do not decide whether a given cookie is necessary for your service. That judgement depends on what the site does for the visitor, and it is yours or your lawyer’s. I do not set up an analytics vendor’s data transfers. I describe what the site loads and sends, in writing, so the person who decides has the facts. I design layouts or implement yours, and the banner follows your design with the equal-choice points above kept intact. Everything runs remotely by email and in documents. Email gets an answer within 24 hours on working days.
If your Stockholm site runs analytics, a pixel or a consent plugin and you want to know what it loads before a visitor chooses, send me the site address, the stack and the tools your marketing team uses. You get a written answer, and the first written estimate costs nothing. Use the contact page, and see the routine on the WordPress website maintenance page.
Examples of my work.
The website strefapremium.pl has been designed as a modern premium portal, dedicated to users seeking exclusive content and services. The site combines high-...
The site weglopex.pl was created as a modern information portal, dedicated to enthusiasts and professionals in the energy industry, with particular focus on ...
QUALITY WATCH is a customer experience and service-quality platform presenting mystery shopping, service audits, customer journey work and B2B consulting services.
Describe your project by e-mail. I reply within 24 hours.
Describe your projectComprehensive guide to safely restoring WordPress after failed updates. Learn backup strategies, manual recovery via FTP/phpMyAdmin, plugin-based restoration, and prevention techniques.
WordPress.org has cut the mandatory update cooldown from 24 hours to six, with work underway to skip it entirely when the Gandalf AI review finds no issues. What changed, and what agencies maintaining B2B sites should do about it.
Update crashed your site? Don't panic. See 3 proven ways to rollback WordPress core, plugins, or themes to a previous version.
Custom WordPress engineering and architecture.
Scalable headless, ERP, and AI architecture for enterprise.
Stores, checkout flow, and sales logic.
Stability, updates, and post-launch support.
What the monthly care fee covers and what changes it.
Business process automation around WordPress and company systems.
Headless WordPress, Sanity, Strapi, and Contentful with Astro or Next.js.
Astro, MDX, edge delivery, and Core Web Vitals measured on real traffic.

How to start as a WordPress developer in 2026. Local environment, theme and plugin development, REST API and headless paths, security and Core Web Vitals. A practitioner playbook that does not waste your first month.

WordPress 7.0 with AI Client against Astro 7 with the Rust compiler and Vite 8. Speed, cost, SEO and security compared, plus the real bill for my own Astro 6 to 7 migration.

A detailed comparison table of EmDash CMS and WordPress across architecture, security, plugins, AI features, content model, hosting, and ecosystem maturity.