<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="../assets/xml/rss.xsl" media="all"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Complex CMS Migration Service - Migrate Content (Posts about troubleshooting)</title><link>https://migratecontent.com/</link><description></description><atom:link href="https://migratecontent.com/categories/troubleshooting.xml" rel="self" type="application/rss+xml"></atom:link><language>en</language><lastBuildDate>Mon, 23 Mar 2026 12:51:16 GMT</lastBuildDate><generator>Nikola (getnikola.com)</generator><docs>http://blogs.law.harvard.edu/tech/rss</docs><item><title>Fixing Access Forbidden (403) issues after migrating WordPress to a static site</title><link>https://migratecontent.com/fixing-access-forbidden-403-issues-after-migrating-wordpress-to-a-static-site/</link><dc:creator>Anthony Lopez-Vito</dc:creator><description>&lt;p&gt;After migrating a WordPress site to static files, Google Search Console may start sending you notifications about page indexing problems. Often the issue will be marked as '&lt;em&gt;Blocked due to access forbidden (403)&lt;/em&gt;', a fairly common error that can have different causes, depending on how your website and server is set up.&lt;/p&gt;


&lt;figure class="figure d-flex flex-column align-items-center"&gt;
    &lt;img src="https://migratecontent.com/images/no-entry-Lucian-Alexe-Unsplash-l0w1ftNPZ9s.jpg" alt="No entry road stock photo - Access Forbidden 403 error" class="figure-img img-fluid rounded" width="800" height="417"&gt;
&lt;/figure&gt;

&lt;p&gt;This article specifically deals with the case when:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;You previously had a working WordPress installation;&lt;/li&gt;
&lt;li&gt;You migrate the site to static HTML files on an Apache web server;&lt;/li&gt;
&lt;li&gt;Google Search Console starts complaining about page indexing problems.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;If this does not apply to your situation, the proposed solution may not work but you will still find the explanation useful in diagnosing the problem.&lt;/p&gt;
&lt;h2&gt;Table of contents&lt;/h2&gt;
&lt;div class="toc"&gt;
&lt;ol&gt;
&lt;li&gt;&lt;a href="https://migratecontent.com/fixing-access-forbidden-403-issues-after-migrating-wordpress-to-a-static-site/#forbidden-403"&gt;The Forbidden 403 error&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://migratecontent.com/fixing-access-forbidden-403-issues-after-migrating-wordpress-to-a-static-site/#wordpress-requests"&gt;How WordPress serves your browser requests&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://migratecontent.com/fixing-access-forbidden-403-issues-after-migrating-wordpress-to-a-static-site/#static-files"&gt;Serving static files&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://migratecontent.com/fixing-access-forbidden-403-issues-after-migrating-wordpress-to-a-static-site/#directory-index"&gt;Web server directory index&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://migratecontent.com/fixing-access-forbidden-403-issues-after-migrating-wordpress-to-a-static-site/#generating-static-site"&gt;Generating static HTML files from a WordPress site&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://migratecontent.com/fixing-access-forbidden-403-issues-after-migrating-wordpress-to-a-static-site/#why-forbidden"&gt;Why access is forbidden&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://migratecontent.com/fixing-access-forbidden-403-issues-after-migrating-wordpress-to-a-static-site/#how-to-fix"&gt;How to fix the Access Forbidden (403) error&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;

&lt;h2 id="forbidden-403"&gt;The Forbidden 403 error&lt;/h2&gt;
&lt;p&gt;Being in the 4XX category of HTTP response codes, &lt;em&gt;Access Forbidden (403)&lt;/em&gt; is a client-side error that may show in a message similar to the following combinations:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;em&gt;Access Forbidden (403)&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;&lt;em&gt;403 Forbidden&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;&lt;em&gt;HTTP 403&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;&lt;em&gt;HTTP Error 403 – Forbidden&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;&lt;em&gt;Forbidden: You don't have permission to access [directory path] on this server&lt;/em&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The Google Search Console notification email will be about page indexing problems with  '&lt;em&gt;Blocked due to access forbidden (403)&lt;/em&gt;' as one of the Top Issues.&lt;/p&gt;

&lt;figure class="figure d-flex flex-column align-items-center"&gt;
    &lt;img src="https://migratecontent.com/images/anothercoffee-google-search-console-page-indexing-issues.png" alt="Google Search Console Page indexing issues" class="figure-img img-fluid rounded" width="498" height="348"&gt;
    &lt;figcaption&gt;A typical Access Forbidden (403) notification from the Google Search Console&lt;/figcaption&gt;
&lt;/figure&gt;

&lt;p&gt;Nevertheless, it being a client-side error doesn't necessary isolate the problem to your browser. Many solutions online will advise you to clear your cache or refresh the page. This is easy to do and usually a sensible first step but if you found the issue via a Google Search Console notification after a WordPress migration, these recommendations won't help.&lt;/p&gt;
&lt;p&gt;The 403 response code essentially means that a web client, such as your browser, does not have permission to access the requested resource. The web server understands the request but can't allow access due to file permissions settings or a server misconfiguration. When it comes to WordPress, the error will almost certainly be due to a misbehaving plugin, a &lt;a href="https://kinsta.com/blog/403-forbidden-error/" target="_blank" rel="noreferrer noopener nofollow"&gt;corrupt .htaccess file or incorrect file permissions&lt;/a&gt;. However, if you've recently converted your WordPress installation to a static site, the error will most likely have a different cause.&lt;/p&gt;
&lt;p&gt;To understand why the &lt;em&gt;Access Forbidden&lt;/em&gt; error happens, it's worth reviewing the differences between how the WordPress content management system (CMS) serves content and how a static site responds to web client requests.&lt;/p&gt;

&lt;h2 id="wordpress-requests"&gt;How WordPress serves your browser requests&lt;/h2&gt;
&lt;p&gt;WordPress is a database-driven Content management system (CMS). Most of the content is stored in a database and URLs generally do not correspond to any files in the web server's filesystem. Instead, URLs are external references to the database content. WordPress calls these references &lt;em&gt;permalinks&lt;/em&gt; and its rewriting engine uses internal &lt;a href="https://codex.wordpress.org/Using_Permalinks"&gt;rules&lt;/a&gt;, specified in the &lt;a href="https://codex.wordpress.org/Using_Permalinks#Choosing_your_permalink_structure"&gt;permalink settings&lt;/a&gt;, to build permalinks dynamically. When a client requests a page from the site, WordPress takes care of serving the correct content. Included with the pages will be any XML-based RSS (Really Simple Syndication) feeds. WordPress will send the HTML page or an XML feed, depending on what the client requests.&lt;/p&gt;
&lt;p&gt;For example, if you set the permalink settings to the &lt;em&gt;Post name&lt;/em&gt; structure, WordPress will generate a HTML post when you browse to the following URL:&lt;br&gt;&lt;code&gt;https://example.com/your-post/&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;The RSS feed for that post will be at:&lt;br&gt;&lt;code&gt;https://example.com/your-post/feed/&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;RSS feeds are normally parsed by an RSS client rather than for displaying directly in the browser window so requesting the RSS feed resource will not send HTML. Instead WordPress will generate XML for the feed.&lt;/p&gt;

&lt;h2 id="static-files"&gt;Serving static files&lt;/h2&gt;
&lt;p&gt;By definition, static sites have no way of dynamically generating content based on the browser request. You make a request to the web server at a given URL and if the resource is present with the correct access permissions, the web server will go ahead and serve the file. The URL for a static site will normally look something like:&lt;br&gt;&lt;code&gt;https://example.com/your-post.html&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;If you have an RSS feed, it might look something like:&lt;br&gt;&lt;code&gt;https://example.com/feed.xml&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;Notice that the request includes the path to the file, such as &lt;code&gt;your-post.html&lt;/code&gt; or &lt;code&gt;feed.xml&lt;/code&gt;. The file is not present in a WordPress permalink because, as mentioned previously, it is only a reference to the actual content stored in the database.&lt;/p&gt;

&lt;h2 id="directory-index"&gt;Web server directory index&lt;/h2&gt;
&lt;p&gt;Web servers such as Apache also have a &lt;a href="https://httpd.apache.org/docs/2.4/mod/mod_dir.html#directoryindex" target="_blank" rel="noreferrer noopener nofollow"&gt;Directory Index directive&lt;/a&gt;. This is a configuration that can set the server to automatically send a file when a client makes a request without a filename in the URL. The file known as the directory index and is normally named &lt;code&gt;index.html&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;Web servers such as Apache also have a &lt;a href="https://httpd.apache.org/docs/2.4/mod/mod_dir.html#directoryindex" target="_blank" rel="noreferrer noopener nofollow"&gt;Directory Index directive&lt;/a&gt;. In the early days of the web, you could browse to a folder in the web server filesystem and get a listing of all the files present. For security, most web hosts now disable this feature for most of their hosting services. The Directory Index directive is a configuration that can set the server to automatically send a file when a client request only includes the folder name in the URL. For most hosting services, the standard directory index files are normally &lt;code&gt;index.html&lt;/code&gt; and &lt;code&gt;index.php&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;Say a client makes a request for the following:&lt;br&gt;&lt;code&gt;https://example.com/docs/&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;If the directory index is set to &lt;code&gt;index.html&lt;/code&gt;, the server would return:&lt;br&gt;&lt;code&gt;http://example.com/docs/index.html&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;The &lt;code&gt;index.html&lt;/code&gt; renders as a web page in the browser. Directory index resources can also be set to other file types like &lt;code&gt;index.txt&lt;/code&gt; or &lt;code&gt;index.xml&lt;/code&gt;.&lt;/p&gt;

&lt;h2 id="generating-static-site"&gt;Generating static HTML files from a WordPress site&lt;/h2&gt;
&lt;p&gt;WordPress plugins such as &lt;a href="https://wordpress.org/plugins/simply-static/" target="_blank" rel="noreferrer noopener nofollow"&gt;Simply Static&lt;/a&gt; will crawl your site to generate static HTML file copies for the pages. Since WordPress includes RSS feeds, static XML copies will also be generated for these feeds. The tables below show typical WordPress permalinks and their equivalents after static HTML copies are generated.&lt;/p&gt;
&lt;figure class="wp-block-table"&gt;
&lt;table class="has-fixed-layout"&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th style="width:30%"&gt;Page type&lt;/th&gt;
&lt;th&gt;WordPress permalink&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Page content&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;&lt;code&gt;https://example.com/your-post/&lt;/code&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;RSS feed&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;&lt;code&gt;https://example.com/your-post/feed/&lt;/code&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;/figure&gt;
&lt;figure class="wp-block-table"&gt;
&lt;table class="has-fixed-layout"&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th style="width:30%"&gt;Page type&lt;/th&gt;
&lt;th&gt;Static file URL&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Page content&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;&lt;code&gt;https://example.com/your-post/index.html&lt;/code&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;RSS feed&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;&lt;code&gt;https://example.com/your-post/feed/index.xml&lt;/code&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;/figure&gt;
&lt;p&gt;Once again notice that the static site specifies the filename in the path whereas the WordPress permalink, when set to the &lt;em&gt;Post name&lt;/em&gt; structure, does not.&lt;/p&gt;
&lt;h2 id="why-forbidden"&gt;Why access is forbidden&lt;/h2&gt;
&lt;p&gt;We have all the puzzle pieces to understand why you would get the &lt;em&gt;Access Forbidden (403)&lt;/em&gt; error and how you can fix the problem. After you migrate your WordPress site to static files, the old permalink paths to pages will still serve a web page because most hosting providers have &lt;code&gt;index.html&lt;/code&gt; as a directory index resource.&lt;/p&gt;
&lt;p&gt;You can request the URL in the WordPress post name permalink format:&lt;br&gt;&lt;code&gt;https://example.com/your-post/&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;The static file generator would have created an index.html in this location:&lt;br&gt;&lt;code&gt;https://example.com/your-post/&lt;/code&gt;index.html&lt;/p&gt;
&lt;p&gt;The webserver sees the &lt;code&gt;index.html&lt;/code&gt; in the filesystem and delivers it to the browser which can render the web page content. Human site visitors will be perfectly happy because they receive the web page resources they expect. However, Googlebot, Google's web page crawler, will spider through your site &lt;em&gt;including the RSS feed locations&lt;/em&gt;. Remember, the RSS feed folders will contain an &lt;code&gt;index.xml&lt;/code&gt;. XML files are not normally a default directory index resource for most web hosts. Since there is no &lt;code&gt;index.html&lt;/code&gt; file in the feed folder, the web server thinks it's being asked to deliver a file listing. Again remember that file listings are disabled by most web hosts for security. Thus you get the error:&lt;/p&gt;
&lt;p class="has-text-align-center"&gt;&lt;code&gt;Access Forbidden (403)&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;You are forbidden by the web server to access that folder listing.&lt;/p&gt;

&lt;h2 id="how-to-fix"&gt;How to fix the Access Forbidden (403) error&lt;/h2&gt;
&lt;p&gt;Now that we know exactly why we get this error we attempt a fix. If your host runs Apache, the solution will likely be simple. Edit or create the &lt;code&gt;.htaccess&lt;/code&gt; file in the root of your site and add &lt;code&gt;index.xml&lt;/code&gt; to the list of directory index resources. For example, if it not already there, add the following line somewhere near the top of the file:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;DirectoryIndex index.html index.php index.xml&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;The &lt;code&gt;index.xml&lt;/code&gt; in the list will tell Apache to serve the XML file when Googlebot requests the RSS feed directory. While you're doing this, inspect a few o the feed directories to make sure the &lt;code&gt;index.xml&lt;/code&gt; files have the correct permissions (usually &lt;code&gt;775&lt;/code&gt; for most server setups) and the correct ownership. The ownership settings should be:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;&lt;code&gt;user&lt;/code&gt;&lt;/strong&gt; is the user account with root privileges on your web server.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;code&gt;group&lt;/code&gt;&lt;/strong&gt; is usually &lt;strong&gt;&lt;code&gt;www-data&lt;/code&gt;&lt;/strong&gt; or &lt;strong&gt;&lt;code&gt;apache&lt;/code&gt;&lt;/strong&gt; but you may need to check this with your hosting provider.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;You can test your changes by pointing your browser to a few feed directories to see if the server returns XML. Remember to leave out the &lt;code&gt;index.xml&lt;/code&gt; file and specify the directory only. For example:&lt;br&gt;&lt;code&gt;https://example.com/your-post/feed/&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;If your browser displays the RSS feed XML, you know the problem has been solved and can be reasonably confident that Googlebot won't encounter the 403 error.&lt;/p&gt;
&lt;p&gt;This may not work if you're running a VPS server for your site where some more in-depth configuration may be needed, such as editing your Apache configuration files. Also, &lt;code&gt;.htaccess&lt;/code&gt; is not used by other web servers such as NGINX. In these cases, your next port of call should be to contact your hosting provider. Tell them that you would like to add &lt;code&gt;index.xml&lt;/code&gt; to the directory index resources so that the XML file is served when a visitor lands in a directory. Most good hosting companies will be able to guide you on your options or make the change on your behalf. After you've applied the fix, be sure to go to your Google Search Console to revalidate the affected page.&lt;/p&gt;

&lt;div class="footnotes"&gt;
    &lt;p&gt;Photo by &lt;a href="https://unsplash.com/@lucian_alexe?utm_source=unsplash&amp;amp;utm_medium=referral&amp;amp;utm_content=creditCopyText" target="_blank" rel="nofollow"&gt;Lucian Alexe&lt;/a&gt; on &lt;a href="https://unsplash.com/photos/l0w1ftNPZ9s?utm_source=unsplash&amp;amp;utm_medium=referral&amp;amp;utm_content=creditCopyText" target="_blank" rel="nofollow"&gt;Unsplash&lt;/a&gt;&lt;/p&gt;
&lt;/div&gt;</description><category>apache</category><category>blog</category><category>help</category><category>migration</category><category>seo</category><category>sys admin</category><category>troubleshooting</category><category>wordpress</category><guid>https://migratecontent.com/fixing-access-forbidden-403-issues-after-migrating-wordpress-to-a-static-site/</guid><pubDate>Thu, 09 Feb 2023 01:15:57 GMT</pubDate></item><item><title>How to fix the mysqldump access denied process privilege error</title><link>https://migratecontent.com/how-to-fix-the-mysqldump-access-denied-process-privilege-error/</link><dc:creator>Anthony Lopez-Vito</dc:creator><description>&lt;em&gt;&lt;strong&gt;How to fix the mysqldump process privilege error after applying a recent MySQL update.&lt;/strong&gt;&lt;/em&gt;

You may receive a new 'Access denied' error when trying to dump your MySQL database:

&lt;code&gt;mysqldump: Error: 'Access denied; you need (at least one of) the PROCESS privilege(s) for this operation' when trying to dump tablespaces&lt;/code&gt;

You were able to export database before so what caused this? Here's the answer: updates for MySQL 5.7.31 and MySQL 8.0.21 in July 2020 introduced an &lt;a href="https://dev.mysql.com/doc/relnotes/mysql/5.7/en/news-5-7-31.html#mysqld-5-7-31-security" target="_blank" rel="noopener noreferrer"&gt;incompatible change&lt;/a&gt;:
&lt;blockquote&gt;&lt;span class="bold"&gt;&lt;strong&gt;Incompatible Change:&lt;/strong&gt;&lt;/span&gt; Access to the &lt;a href="https://dev.mysql.com/doc/refman/5.7/en/information-schema-files-table.html" target="_blank" rel="noopener noreferrer"&gt;&lt;code&gt;INFORMATION_SCHEMA.FILES&lt;/code&gt;&lt;/a&gt; table now requires the &lt;a href="https://dev.mysql.com/doc/refman/5.7/en/privileges-provided.html#priv_process" target="_blank" rel="noopener noreferrer"&gt;&lt;code&gt;PROCESS&lt;/code&gt;&lt;/a&gt; privilege.

This change affects users of the &lt;strong&gt;mysqldump&lt;/strong&gt; command, which accesses tablespace information in the &lt;a href="https://dev.mysql.com/doc/refman/5.7/en/information-schema-files-table.html" target="_blank" rel="noopener noreferrer"&gt;&lt;code class="literal"&gt;FILES&lt;/code&gt;&lt;/a&gt; table, and thus now requires the &lt;a href="https://dev.mysql.com/doc/refman/5.7/en/privileges-provided.html#priv_process" target="_blank" rel="noopener noreferrer"&gt;&lt;code&gt;PROCESS&lt;/code&gt;&lt;/a&gt; privilege as well. Users who do not need to dump tablespace information can work around this requirement by invoking &lt;strong&gt;mysqldump&lt;/strong&gt; with the &lt;a href="https://dev.mysql.com/doc/refman/5.7/en/mysqldump.html#option_mysqldump_no-tablespaces" target="_blank" rel="noopener noreferrer"&gt;&lt;code class="option"&gt;--no-tablespaces&lt;/code&gt;&lt;/a&gt; option. (Bug #30350829)&lt;/blockquote&gt;
This error appears when running &lt;code&gt;mysqldump&lt;/code&gt; directly from the command line, exporting the database using a client like MySQL Workbench or if you're &lt;a href="https://migratecontent.com/tag/wordpress/"&gt;managing the WordPress database&lt;/a&gt; through WP-CLI's &lt;code&gt;export&lt;/code&gt; command.

&lt;img class="aligncenter size-full wp-image-3370" src="https://migratecontent.com/wp-content/uploads/how-to-fix-the-mysqldump-access-denied-process-privilege-error-after-mysql-update.png" alt="mysqldump: Error: 'Access denied; you need (at least one of) the PROCESS privilege(s) for this operation' when trying to dump tablespaces" width="800" height="120"&gt;

In my case, I encountered the problem when running a routine Python script for a &lt;a href="https://migratecontent.com/drupal-to-wordpress-migration-service/"&gt;Drupal to WordPress migration client&lt;/a&gt;. My script uses WP-CLI to export a database dump file and deploy it to a remote server.
&lt;h2&gt;Solutions for fixing the mysqldump process privilege error&lt;/h2&gt;
The &lt;code&gt;mysqldump&lt;/code&gt; command requires at least the following privilege assigned to the user:
&lt;ul&gt;
 	&lt;li&gt;SELECT privilege for dumped tables&lt;/li&gt;
 	&lt;li&gt;SHOW VIEW for dumped views&lt;/li&gt;
 	&lt;li&gt;TRIGGER for dumped triggers&lt;/li&gt;
 	&lt;li&gt;LOCK TABLES if you don't use the &lt;code&gt;--single-transaction&lt;/code&gt; option&lt;/li&gt;
 	&lt;li&gt;PROCESS if you don't use the &lt;code&gt;--no-tablespaces&lt;/code&gt; option&lt;/li&gt;
&lt;/ul&gt;
The last PROCESS privilege is new as of MySQL 5.7.31 and MySQL 8.0.21 and may be the root source of your problem. You can solve the mysqldump process privilege error in two ways:
&lt;ol&gt;
 	&lt;li&gt;Updating the privileges for your database user.&lt;/li&gt;
 	&lt;li&gt;Runing &lt;code&gt;mysqldump&lt;/code&gt; with the &lt;code&gt;--no-tablespaces&lt;/code&gt; option.&lt;/li&gt;
&lt;/ol&gt;
&lt;h3&gt;Solution 1: Update the user privileges&lt;/h3&gt;
Granting the PROCESS privilege for the user is perhaps the simplest option for fixing the &lt;code&gt;mysqldump&lt;/code&gt; process privilege error. &lt;strong&gt;Keep in mind that this option presents &lt;a href="https://migratecontent.com/how-to-fix-the-mysqldump-access-denied-process-privilege-error/#process-privilege-dangers"&gt;security issues&lt;/a&gt;&lt;/strong&gt;. You should therefore really only use this option for your own local development server installation.

To grant the PROCESS privilege, log in as an administrator user and run the following query:

&lt;code&gt;GRANT PROCESS ON *.* TO user@localhost;&lt;/code&gt;

Note that PROCESS is a global level privilege. It can't apply to individual databases. Global privileges are either administrative or apply to all databases on your MySQL server. Trying to grant them on individual databases deplays the following error:

&lt;code&gt;ERROR 1221 (HY000): Incorrect usage of DB GRANT and GLOBAL PRIVILEGES&lt;/code&gt;

To grant the privilege to all databases you must use the &lt;code&gt;ON *.* ...&lt;/code&gt; syntax.
&lt;h3&gt;Solution 2: Use the &lt;code&gt;--no-tablespaces&lt;/code&gt; option&lt;/h3&gt;
If you cannot assign global level privileges to your user, for example, when doing so presents unacceptable security issues, you must specify the &lt;code&gt;--no-tablespaces&lt;/code&gt; option when dumping your database.

&lt;code&gt;mysqldump --no-tablespaces -u user -ppass dbname &amp;gt; db_backup_file.sql&lt;/code&gt;
&lt;h2 id="tablespaces"&gt;What are MySQL tablespaces?&lt;/h2&gt;
We are usually only concerned with logical database objects when working with databases. However, the data must be physically stored somewhere. This is where tablespaces come in. Tablespaces are physical datafiles stored in the host file system holding data for one or more tables and indexes.

The diagram below provides a handy illustration. It's from the Oracle Concepts documentation, &lt;a href="https://docs.oracle.com/cd/B19306_01/server.102/b14220/physical.htm" target="_blank" rel="noopener noreferrer"&gt;Introduction to Tablespaces, Datafiles, and Control Files&lt;/a&gt; and refers to Oracle databases. Nevertheless, it may help you understand how tablespaces relate to logical database objects and datafiles.

[caption id="attachment_3378" align="aligncenter" width="522"]&lt;img class="size-full wp-image-3378" src="https://migratecontent.com/wp-content/uploads/Oracle-Introduction-to-Tablespaces-Datafiles-and-Control-Files.gif" alt="Oracle documentation: Introduction to Tablespaces, Datafiles, and Control Files" width="522" height="405"&gt; Diagram source: &lt;a href="https://docs.oracle.com/cd/B19306_01/server.102/b14220/physical.htm" target="_blank" rel="noopener noreferrer"&gt;Oracle Concepts documentation&lt;/a&gt;[/caption]

You can therefore use the &lt;code&gt;--no-tablespaces &lt;/code&gt; option if you don't need to dump tablespace information. This may be the case for routine database dumps, for example when exporting databases for &lt;a href="https://migratecontent.com/tag/migration/"&gt;WordPress migrations&lt;/a&gt;.
&lt;h2 id="process-privilege"&gt;About the access mysqldump denied PROCESS privilege error&lt;/h2&gt;
&lt;code&gt;mysqldump&lt;/code&gt; accesses tablespace information in the FILES table. Prior to MySQL 5.7.31 and 8.0.21, your user could run &lt;code&gt;mysqldump&lt;/code&gt; without the PROCESS privilege. However, users running &lt;code&gt;mysqldump&lt;/code&gt; after the update need PROCESS privileges to access the INFORMATION_SCHEMA.FILES table. Running &lt;code&gt;mysqldump&lt;/code&gt; without PROCESS privilege ends up giving you an &lt;em&gt;Access denied&lt;/em&gt; error.
&lt;h2 id="process-privilege-dangers"&gt;Be careful with the PROCESS privilege&lt;/h2&gt;
According to the MySQL documentation, the &lt;a href="https://dev.mysql.com/doc/refman/5.7/en/privileges-provided.html#priv_process" target="_blank" rel="noopener noreferrer"&gt;PROCESS privilege&lt;/a&gt; controls access to information about statements being executed by sessions.

It is a server administration privilege and should not be given to all users. This is because it may show text from currently executing queries. Any user with the PROCESS privilege may therefore see queries issued by others. Here's the danger: these queries, such as &lt;code&gt;UPDATE user SET password=PASSWORD&lt;/code&gt;, may show secrets.

For more information, see &lt;a href="https://www.oreilly.com/library/view/mysql-reference-manual/0596002653/ch04s02.html" target="_blank" rel="noopener noreferrer"&gt;General Security Issues and the MySQL Access Privilege System&lt;/a&gt; from the O'Reilly MySQL Reference Manual.</description><category>database</category><category>mysql</category><category>sys admin</category><category>troubleshooting</category><category>upgrades</category><guid>https://migratecontent.com/how-to-fix-the-mysqldump-access-denied-process-privilege-error/</guid><pubDate>Fri, 23 Oct 2020 15:23:45 GMT</pubDate></item><item><title>How to fix a 'Object of class WP_Error could not be converted to string' error in WordPress</title><link>https://migratecontent.com/how-to-fix-a-object-of-class-wp_error-could-not-be-converted-to-string-error-in-wordpress/</link><dc:creator>Anthony Lopez-Vito</dc:creator><description>If you see a blank page while trying to log in to your WordPress site, check your web server's error logs. You may get the following error:

&lt;pre&gt;stderr: PHP Catchable fatal error:  Object of class WP_Error
could not be converted to string in
/var/[PATH TO YOUR DOCUMENT ROOT]/wp-includes/default-constants.php on line 139
&lt;/pre&gt;

Note that the line number may be different depending on your version of WordPress but the code generating the error is as follows:

&lt;code&gt;function wp_plugin_directory_constants() {&lt;br&gt;
    if ( !defined('WP_CONTENT_URL') )&lt;br&gt;
        define( 'WP_CONTENT_URL', get_option('siteurl') . '/wp-content');&lt;/code&gt;...

Do not be tempted to debug by editing the code as it's not the source of the error. Your problem will very likely be that the &lt;code&gt;siteurl&lt;/code&gt; option value in your WordPress database does not contain a valid entry. In this case, the error message is telling you that &lt;code&gt;get_option()&lt;/code&gt; receives a WP_Error object rather than a string that it's expecting.

To fix this:

&lt;ol&gt;
&lt;li&gt;
First check the &lt;code&gt;siteurl&lt;/code&gt; option to verify that the value is indeed incorrect. Run the following SQL:
&lt;code&gt;SELECT * FROM `wp_options` WHERE option_name = 'siteurl';&lt;/code&gt;

You will likely find a serialized array containing a WP_Error object.
&lt;/li&gt;

&lt;li&gt;Correct the option value by setting it with your domain's URL:
&lt;code&gt;UPDATE wp_options SET option_value = '[YOUR URL]' WHERE option_name = 'siteurl';&lt;/code&gt;
&lt;/li&gt;

&lt;/ol&gt;

I'm not sure what overwrites the &lt;code&gt;siteurl&lt;/code&gt; option value. Most likely there is a misbehaving plugin installed or malware has infected your installation. Be sure to run a scan on your server.</description><category>troubleshooting</category><category>wordpress</category><guid>https://migratecontent.com/how-to-fix-a-object-of-class-wp_error-could-not-be-converted-to-string-error-in-wordpress/</guid><pubDate>Sun, 16 Sep 2018 11:04:15 GMT</pubDate></item><item><title>Post-migration troubleshooting: Gateway timeout when enabling plugins</title><link>https://migratecontent.com/post-migration-troubleshooting-gateway-timeout-enabling-plugins/</link><dc:creator>Anthony Lopez-Vito</dc:creator><description>&lt;p&gt;Here's one that caught me out on a recent Drupal to WordPress migration. As is common with my projects, there were three parties involved: the client, an external development team and myself. The WordPress site was first built on the development team's server, after which it was migrated to my local environment. When everything was ready for beta testing, we moved the site over to the client's staging server on a newly activated account over at &lt;a href="https://kinsta.com/"&gt;Kinsta&lt;/a&gt;. Eventually, we'd move it over to a live server, also hosted on Kinsta.&lt;/p&gt;

&lt;p&gt;&lt;img src="https://migratecontent.com/images/drupal-to-wordpress-migration-team-structure.jpg" title="Drupal to WordPress migration workflow" alt="Diagram of Drupal to WordPress migration workflow for this project" width="600" height="273" class="aligncenter size-full wp-image-1980"&gt;&lt;/p&gt;

&lt;p&gt;After some initial tests on staging, I found that deactivating and reactivating plugins would cause the site to hang and show a &lt;em&gt;'504 Gateway Time-out'&lt;/em&gt; error. This happened when re-enabling some but not all plugins.&lt;/p&gt;

&lt;p&gt;I initially suspected some misconfiguration at the hosting end because there were some hitches with the newly create account. At the outset, the account's server had an issue which Kinsta support needed to fix. For convenience, we'd also made use of Kinsta's free site migration service. This is where they'll migrate an existing WordPress site into their environment. Though it would have been easy enough for me to do, we thought to give it a try. In hindsight, this was a bit of a mistake. The site migration service itself was fine but it did end up causing some confusion. First, a miscommunication in the migration request caused them to create a temporary domain we didn't want. They helpfully solved this by giving us a second temporary domain. However, they'd also upgraded everything to PHP 7 in the process. All of these issues were possible suspects for the time-out error but turned out to be red-herrings.&lt;/p&gt;

&lt;p&gt;It took some time to pinpoint the cause behind the Gateway Time-out error. I do have to say that Kinsta support were very responsive throughout the troubleshooting process. They eventually put a senior engineer on the case who found the problem. It turned out the problem wasn't to do with Kinsta at all. There was a leftover setting from the original development team's server. It was a valid format so didn't cause an issue on either my local server or my staging server. However, it apparently can cause issues with plugins and did on the Kinsta environment.&lt;/p&gt;

&lt;p&gt;What was the setting? The WordPress upload path directory was set to the development team's server path e.g. &lt;code&gt;/home/dev/public_html/sitename&lt;/code&gt;. Throughout the migration, I'd been doing a database search-and-replace looking for their development domain. Somehow, as the site moved from different servers, that server path string remained in the database, only to cause a problem when the site landed in the destination server on Kinsta.&lt;/p&gt;

&lt;p&gt;I'm not sure if there would have been any way to have caught this problem earlier. It's one of those obscure errors that are easy to overlook and take time to resolve. There's also no practical way to do a database search-and-replace for every imaginable string. I'll have to rack this one up to experience. &lt;/p&gt;</description><category>drupal</category><category>help</category><category>migration</category><category>troubleshooting</category><category>wordpress</category><guid>https://migratecontent.com/post-migration-troubleshooting-gateway-timeout-enabling-plugins/</guid><pubDate>Mon, 05 Jun 2017 09:35:07 GMT</pubDate></item><item><title>Post-migration troubleshooting: WordPress redirects to old site after updating database</title><link>https://migratecontent.com/wordpress-migration-redirects-old-site/</link><dc:creator>Anthony Lopez-Vito</dc:creator><description>If you've ever migrated a WordPress site, either to another URL or for a &lt;a href="https://migratecontent.com/drupal-to-wordpress-migration-tool/" title="Drupal to WordPress migration tool"&gt;Drupal to WordPress migration project&lt;/a&gt;, you'll know that WordPress stores the domain name in its database. This means you'll have to jump through some hoops &lt;a href="https://codex.wordpress.org/Moving_WordPress" title="WordPress Codex: Moving WordPress"&gt;when moving WordPress&lt;/a&gt; to another environment. A critical step is to update the database to reflect the new domain. My favourite tool for this used to be the &lt;a href="https://interconnectit.com/products/search-and-replace-for-wordpress-databases/"&gt;database search and replace script&lt;/a&gt; from interconnect/it. The script is PHP-based so runs on all environments that host WordPress. I now prefer WP-CLI's &lt;a href="http://wp-cli.org/commands/search-replace/" title="wp search-replace"&gt;&lt;code&gt;wp search-replace&lt;/code&gt;&lt;/a&gt; command when on my own development environment, or for client hosting that supports it. Nevertheless, interconnect/it's tool is still my fall-back option for clients of my &lt;a href="https://migratecontent.com/drupal-to-wordpress-migration-service/"&gt;Drupal to WordPress migration service&lt;/a&gt; since many use hosts that don't offer command-line access.

In nearly all cases, updating the &lt;em&gt;siteurl&lt;/em&gt; and &lt;em&gt;home&lt;/em&gt; fields in the &lt;em&gt;wp_options&lt;/em&gt; database table achieves the bare minimum to get the site working after migration. Running a search-and-replace across the WordPress database (in particular, the &lt;em&gt;wp_posts&lt;/em&gt; table) will resolve broken links containing absolute URLs.

&lt;h2&gt;wp-admin still redirects to the old site after updating wp_options?&lt;/h2&gt;

Once-in-a-while, I'll encounter a migration project where &lt;em&gt;wp-admin&lt;/em&gt; still redirects to the old site even after running through the obvious steps of: 
&lt;ol&gt;
	&lt;li&gt;updating the database;&lt;/li&gt;
	&lt;li&gt;clearing the browser cache;&lt;/li&gt;
	&lt;li&gt;clearing the server cache.&lt;/li&gt;
&lt;/ol&gt;

It happens very rarely so I have yet to discover the cause. I suspect it's something to do with sites that had a caching plugin installed, such as &lt;a href="https://en-gb.wordpress.org/plugins/w3-total-cache/"&gt;W3 Total Cache&lt;/a&gt;.

If you ever find yourself in this situation, the best workaround is to add the following two constants in &lt;em&gt;wp-config.php&lt;/em&gt;:

&lt;code&gt;define('WP_HOME', 'http://' . $_SERVER['SERVER_NAME']);
define('WP_SITEURL', WP_HOME . '/');&lt;/code&gt;

This isn't a nice long-term solution but it should at least enable you to log in for some basic site administration. Once you're able to log in to the WordPress Dashboard, disable any caching plugins after first clearing their cache.</description><category>drupal</category><category>migration</category><category>troubleshooting</category><category>wordpress</category><guid>https://migratecontent.com/wordpress-migration-redirects-old-site/</guid><pubDate>Sun, 19 Feb 2017 00:33:22 GMT</pubDate></item><item><title>Importing a WordPress database: How to fix the Unknown collation: 'utf8mb4_unicode_ci' error</title><link>https://migratecontent.com/wordpress-how-to-fix-unknown-collation-error/</link><dc:creator>Anthony Lopez-Vito</dc:creator><description>If you do a lot of exporting and importing to different database servers, you'll be familiar with the frustration of encountering MySQL import errors. Every so often when importing a WordPress dump file into a client's database, I will encounter an &lt;em&gt;Unknown collation&lt;/em&gt; error like the following:

&lt;code&gt;Unknown collation: 'utf8mb4_unicode_ci'&lt;/code&gt;

Sometimes it will come up as:

&lt;code&gt;Unknown collation: 'utf8mb4_unicode_520_ci'&lt;/code&gt;

This is caused by a difference in encoding types between the source and destination databases. It usually happens when you export from a newer MySQL database (MySQL 5.5.3 and above) which &lt;a href="https://dev.mysql.com/doc/refman/5.7/en/charset-unicode-utf8mb4.html"&gt;uses &lt;code&gt;utf8mb4&lt;/code&gt;&lt;/a&gt;, then attempt to import into an older version using &lt;code&gt;utf8&lt;/code&gt;. If you are importing from a dump file generated from a MySQL 5.6 database, you may get the &lt;em&gt;utf8mb4_unicode_520_ci&lt;/em&gt; message. The &lt;em&gt;520&lt;/em&gt; refers to &lt;a title="utf8mb4_unicode_520_ci: Unicode Collation Algorithm new version" href="https://dev.mysql.com/worklog/task/?id=2673#tabs-2673-4"&gt;MySQL's use of&lt;/a&gt; Unicode Collation Algorithm 5.2.0. Unknown collation errors may also happen if you are trying to import a &lt;a title="MariaDB versus MySQL - Compatibility" href="https://mariadb.com/kb/en/mariadb/mariadb-vs-mysql-compatibility/"&gt;MariaDB&lt;/a&gt; database into MySQL. I tend to get &lt;em&gt;unknown collation&lt;/em&gt; errors with my Rackspace Cloud accounts after Rackspace started offering MariaDB as a database option.

Ideally one would upgrade the older destination database but this isn't always a realistic option. There are a number of discussion threads on the &lt;a href="https://wordpress.org/support/topic/collation-error-utf8-mb4#post-6884157"&gt;WordPress forum&lt;/a&gt; about what to do. Fortunately, many web hosting accounts have a phpMyAdmin interface which provides an easy work-around for the problem.
&lt;h2&gt;Format-specific options during a phpMyAdmin database export&lt;/h2&gt;
&lt;ol&gt;
 	&lt;li&gt;Log in to your database server using phpMyAdmin&lt;/li&gt;
 	&lt;li&gt;Make sure you select your database and go to the "Export" tab&lt;/li&gt;
 	&lt;li&gt;Select the "Custom" radio button&lt;/li&gt;
 	&lt;li&gt;Go the section "Format-specific options" and in the setting for "Database system or older MySQL server to maximize output compatibility with:" select &lt;strong&gt;MYSQL40&lt;/strong&gt;.&lt;/li&gt;
 	&lt;li&gt;Scroll to the bottom and click &lt;strong&gt;GO&lt;/strong&gt;.&lt;/li&gt;
&lt;/ol&gt;
&lt;!-- image removed: phpmyadmin-format-specific-options.png --&gt;

Other possible solutions include:
&lt;ul&gt;
 	&lt;li&gt;&lt;a title="Unknown collation question on stackoverflow" href="http://stackoverflow.com/a/31506831"&gt;doing a search and replace&lt;/a&gt; on the database dump file;&lt;/li&gt;
 	&lt;li&gt;&lt;a href="http://stackoverflow.com/a/30005743"&gt;converting the character set&lt;/a&gt; to &lt;code&gt;utf8_general_ci&lt;/code&gt;;&lt;/li&gt;
 	&lt;li&gt;converting the database for &lt;a href="https://mathiasbynens.be/notes/mysql-utf8mb4"&gt;full Unicode support&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt;
Since many of my WordPress database migrations are under my &lt;a title="Drupal to WordPress migration service" href="https://migratecontent.com/drupal-to-wordpress-migration-service/"&gt;migration service&lt;/a&gt;, I don't always have control over the client's platform. The phpMyAdmin export format method is often the simplest solution.
&lt;h2&gt;Side-effects of a character encoding downgrade&lt;/h2&gt;
You might be wondering about the purpose of encoding types and if there will be any side-effects of downgrading. Character encoding allows support for a set of characters, such as the Western alphabet, Asian scripts and non-alphanumeric symbols. Older &lt;code&gt;utf8&lt;/code&gt; databases support a smaller set of characters whereas &lt;code&gt;utf8mb4&lt;/code&gt; includes &lt;a title="Emoji, WordPress, and You" href="https://kraft.im/2015/03/emoji-wordpress-and-you/"&gt;emojis, musical notation and Chinese Han characters&lt;/a&gt;. If you've ever exported a website from one CMS to another and found random characters scattered throughout the copy, it's because of an incompatible character encoding.

Solving the &lt;em&gt;unknown collation&lt;/em&gt; error as described here could mean you'll end up with unsupported characters after your site migration. However, as with many of my &lt;a title="Drupal to WordPress migration tool" href="https://migratecontent.com/drupal-to-wordpress-migration-tool/"&gt;Drupal to WordPress migration&lt;/a&gt; clients, in all likelihood you'll be migrating &lt;em&gt;from an older&lt;/em&gt; &lt;code&gt;utf8&lt;/code&gt; Drupal database &lt;em&gt;to a newer&lt;/em&gt; &lt;code&gt;utf8mb4&lt;/code&gt;-supported WordPress database. In this case, your old content will not have characters that will cause a problem after an encoding downgrade.</description><category>character</category><category>database</category><category>drupal</category><category>encoding</category><category>migration</category><category>troubleshooting</category><category>wordpress</category><guid>https://migratecontent.com/wordpress-how-to-fix-unknown-collation-error/</guid><pubDate>Fri, 13 May 2016 14:57:04 GMT</pubDate></item><item><title>Post-migration steps: what to do after a Drupal to WordPress migration project</title><link>https://migratecontent.com/post-migration-steps-what-to-do-after-drupal-to-wordpress-migration-project/</link><dc:creator>Anthony Lopez-Vito</dc:creator><description>From time-to-time I get clients who ask me to only export the content to a WordPress database, after which they'll complete the remaining setup themselves. If this applies to your project, you can use these migration notes to help get your new WordPress site running properly.

&lt;h2&gt;Import the database dump file&lt;/h2&gt;

Please see &lt;a href="https://migratecontent.com/importing-wordpress-dump-file-after-drupal-to-wordpress-migration/"&gt;these notes&lt;/a&gt; for importing the WordPress dump file.

&lt;h2&gt;Administrator credentials and email address&lt;/h2&gt;

I will have changed your content management system (CMS) administrator password and email address to help with debugging. It's important that you change these to your own as soon as possible.

Drupal and WordPress user passwords are encrypted so I won't be able to view them. However, for your peace of mind, I recommend that you ask all your users to reset their passwords after your new WordPress site is live.

&lt;h2&gt;Server credentials&lt;/h2&gt;
Please remember to change any database, (S)FTP, SSH server and control panel credentials you may have given me.

&lt;h2&gt;Migrating to a live server&lt;/h2&gt;

I perform most Drupal to WordPress migrations on a development server. For help on how to move WordPress to your live server, please see: &lt;a href="http://codex.wordpress.org/Moving_WordPress"&gt;WordPress Codex: Moving WordPress&lt;/a&gt;.

&lt;h2&gt;Common errors after moving to a live server&lt;/h2&gt;

Please see below for some common errors you may experience after migrating your new WordPress site to a new server.

&lt;h3&gt;Incorrect domain in URLs&lt;/h3&gt;

WordPress stores domains in the database. If you performed the migration on a local or development server, there's a good chance that the links will be incorrect after migrating to your live server. Use the Interconnect IT utility to run a search and replace on your database. This will also correct changed database prefixes.

More information can be found on the interconnect/it &lt;a href="https://interconnectit.com/products/search-and-replace-for-wordpress-databases/"&gt;Search Replace DB page&lt;/a&gt;.

&lt;h3&gt;"You do not have sufficient permissions to access this page"&lt;/h3&gt;

If you receive this error after logging in to your new WordPress installation, it's possible that the database prefix on your new WordPress site is not set correctly. This may happen if you move your WordPress installation to a host that uses a different database prefix.

Try running one of the queries below. Replace wp_new_usermeta, oldprefix_ and newprefix_ as appropriate.

Option 1:
&lt;div class="codelisting"&gt;
UPDATE wp_new_usermeta SET meta_key = REPLACE(meta_key,'oldprefix_','newprefix_');

UPDATE wp_new_options SET option_name = REPLACE(option_name,'oldprefix_','newprefix_');
&lt;/div&gt;

Option 2:
&lt;div class="codelisting"&gt;
update wp_new_usermeta set meta_key = 'newprefix_usermeta' where meta_key = 'wp_capabilities';

update wp_new_usermeta set meta_key = 'newprefix_user_level' where meta_key = 'wp_user_level';

update wp_new_usermeta set meta_key = 'newprefix_autosave_draft_ids' where meta_key = 'wp_autosave_draft_ids';

update wp_new_options set option_name = 'newprefix_user_roles' where option_name = 'wp_user_roles';
&lt;/div&gt;

Please note that these queries may not work for you. Success depends on your specific setup.

For more information, please see the following pages:
&lt;ul&gt;
&lt;li&gt;&lt;a href="http://wordpress.org/support/topic/you-do-not-have-sufficient-permissions-to-access-this-page-98"&gt;WordPress forums: You do not have sufficient permissions to access this page&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://stackoverflow.com/questions/13815461/you-do-not-have-sufficient-permissions-to-access-this-page-without-any-change"&gt;stackoverflow: You do not have sufficient permissions to access this page without any change&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;Further help&lt;/h2&gt;

I'll be very happy to provide support you if have difficulties after migration. For a quotation, please &lt;a href="https://migratecontent.com/#contact"&gt;contact me&lt;/a&gt;. I also offer customised hosting and maintenance packages. Please ask for details.</description><category>drupal</category><category>migration</category><category>troubleshooting</category><category>wordpress</category><guid>https://migratecontent.com/post-migration-steps-what-to-do-after-drupal-to-wordpress-migration-project/</guid><pubDate>Sat, 20 Jun 2015 10:05:01 GMT</pubDate></item><item><title>Handling Drupal terms during a Drupal to WordPress migration</title><link>https://migratecontent.com/drupal-to-wordpress-migration-taxonomy/</link><dc:creator>Anthony Lopez-Vito</dc:creator><description>When migrating Drupal terms into WordPress, it's important to understand exactly what terms are and how the two systems handle categorising information.
&lt;h2&gt;A primer on Drupal taxonomies&lt;/h2&gt;
One of Drupal's most powerful features is its ability to organise content with taxonomies. Unfortunately, the taxonomy system is also notorious as one of the trickiest things about Drupal for beginners to understand. You can find a more detailed &lt;a title="Drupal: Organizing content with taxonomies" href="https://www.drupal.org/documentation/modules/taxonomy"&gt;explanation here&lt;/a&gt; but essentially, a taxonomy is the &lt;a href="http://en.wikipedia.org/wiki/Taxonomy"&gt;practice and science&lt;/a&gt; of classifying things. In content management terms, you would mostly use taxonomies to organise and categorise articles or posts.

Taxonomies in Drupal uses the concept of &lt;em&gt;vocabularies&lt;/em&gt; and &lt;em&gt;terms&lt;/em&gt;. Terms are just a list of words that describe a particular type of content. They're grouped together into vocabularies, which can be thought of as 'containers' for a set of terms. Vocabularies may be assigned to any content type. Drupal allows you to arrange the terms within a vocabulary using a parent-and-child hierarchical structure or they can be a flat list, with each term being on the same level as the others.

You can have many vocabularies in Drupal, each containing any number of terms. Vocabulary names must be unique and you cannot have duplicate term names within a vocabulary. It's possible, however, to have the same term name appear in different vocabularies. Fig. 1 shows an example Drupal taxonomy with three vocabularies, &lt;em&gt;Music&lt;/em&gt;, &lt;em&gt;Movies&lt;/em&gt; and &lt;em&gt;Books&lt;/em&gt;. The Movies and Books vocabularies both have the term &lt;em&gt;Sci-Fi&lt;/em&gt;.

&lt;div style="margin:2em 0 2em 0"&gt;
[caption id="attachment_190" align="aligncenter" width="284"]&lt;!-- image removed: drupal-taxonomy-vocabularies.png --&gt; Fig 1: Drupal vocabularies and terms[/caption]
&lt;/div&gt;

For more information about the Drupal taxonomy system, please see &lt;a title="Drupal: Organizing content with taxonomies" href="https://www.drupal.org/documentation/modules/taxonomy"&gt;Organizing content with taxonomies&lt;/a&gt;.
&lt;h2&gt;WordPress categories and tags&lt;/h2&gt;
WordPress' system for organising content is simpler. You have the option of &lt;em&gt;categories--&lt;/em&gt;which can be hierarchical--and &lt;em&gt;tags&lt;/em&gt; which are flat, or non-hierarchical. In general, categories in WordPress are used as a way of broadly organising posts and tags are used for more detailed descriptions.

Unlike Drupal, where you can have many containers in the form of vocabularies, a standard WordPress installation offers one container for categories and one for tags. Also as standard, categories and tags can only be assigned to the WordPress &lt;em&gt;post&lt;/em&gt; content type. A WordPress developer can extend this by creating custom content types with their own categories and tags.

Fig. 2 shows show you'd organise the Music, Movies and Books categorisation in WordPress.

&lt;div style="margin:2em 0 2em 0"&gt;
[caption id="attachment_191" align="aligncenter" width="191"]&lt;!-- image removed: wordpress-categories-tags.png --&gt; Fig. 2: WordPress categories and tags[/caption]
&lt;/div&gt;

&lt;h2&gt;Migrating Drupal terms as WordPress categories and tags&lt;/h2&gt;
When running a Drupal to WordPress migration, we need to map Drupal's more complex multi-vocabulary taxonomy system into the simpler WordPress model of categories and tags. How we do this depends on how you want to organise your new WordPress site. For example, we can:

&lt;ul&gt;
&lt;li&gt;convert Drupal vocabulary names into WordPress categories and Drupal term names into WordPress tags;&lt;/li&gt;
&lt;li&gt;convert Drupal terms into WordPress categories and sub-categories;&lt;/li&gt;
&lt;li&gt;vocabularies and their associated terms.&lt;/li&gt;
&lt;/ul&gt;

It's all up to you and we figure this out during the requirements gathering stage of the project. For many sites, converting Drupal vocabulary names into WordPress categories and Drupal term names into WordPress tags, as shown in Fig. 3, seems to be the most sensible option. The important thing to know is that the migration may require us to 'collapse' or combine your taxonomies.

&lt;div style="margin:2em 0 2em 0"&gt;
[caption id="attachment_195" align="aligncenter" width="488"]&lt;!-- image removed: drupal-wordpress-taxonomy-migration.png --&gt;Fig 3: Merging Drupal taxonomies into WordPress[/caption]
&lt;/div&gt;

Since WordPress doesn't support duplicate category or tag names, another thing to consider is how to handle any duplicate Drupal terms. Normally, the easiest solution is to append a unique number so that you can filter them out post-migration. We can do some clever merging and re-assigning of terms to posts but frankly, it's probably not worth incurring the extra fees. Unless you have a great number of duplicates, you can probably do the job yourself quite easily via the WordPress Dashboard controls.

&lt;h2&gt;Organising your categories and tags in WordPress&lt;/h2&gt;

Now that we know what's involved in converting Drupal's taxonomy over to WordPress, the next obvious question would be, "What's the best way to structure categories and tags in WordPress?" While I cannot prescribe exactly how you should organise your site, I can point you to this excellent article so you can decide for yourself: &lt;a href="http://www.wpbeginner.com/beginners-guide/categories-vs-tags-seo-best-practices-which-one-is-better/"&gt;Categories vs Tags – SEO Best Practices for Sorting your Content&lt;/a&gt;. Generally you should only have a few categories, maybe five or ten in total. Any more and they can become unwieldy and difficult to manage. These categories will reflect the main themes of your site. Tags can then further describe the details of each post and link specific topics together. You can have any number of tags.

The chances are that you probably want to avoid any drastic changes to the site structure when migrating from Drupal to WordPress. A simple mapping of vocabularies to categories and terms to tags is usually the closest equivalent in WordPress.</description><category>drupal</category><category>migration</category><category>troubleshooting</category><category>wordpress</category><guid>https://migratecontent.com/drupal-to-wordpress-migration-taxonomy/</guid><pubDate>Mon, 18 May 2015 15:31:42 GMT</pubDate></item><item><title>Why is the Drupal term_node table missing?</title><link>https://migratecontent.com/drupal-term_node-table-missing/</link><dc:creator>Anthony Lopez-Vito</dc:creator><description>In a Drupal to WordPress migration post by &lt;a href="http://toodlepip.co.uk/2014/migrating-drupal-6-wordpress-part-2-drupal-wordpress/?replytocom=142692#respond"&gt;Sam Michel&lt;/a&gt;, reader Jean-Philippe commented that why he couldn't find the tables mentioned. I started composing my reply but for some reason the page wouldn't let me post.

Rather than waste the time it took to compose the reply, I thought it would be good to post it here instead.

&lt;hr&gt;

Hi Jean-Philippe,

This probably isn't relevant to you anymore but I'm posting this for the benefit of anyone else who stumbles across your comment.

The tables names have changed in Drupal 7. 'taxonomy_term_data' and 'taxonomy_term_hierarchy' are all Drupal 7 tables. If you don't see the tables mentioned in this post, it's almost certainly because you don't have Drupal 6 installed.

In Drupal 7, 'term_node' has been replaced with 'taxonomy_index'.

I've started documenting the table mapping between Drupal and WordPress in a series of posts here: /drupal-to-wordpress-migration-posts-table-mapping/

Since I also used Scott Anderson’s SQL, anyone reading Sam Michel's series might find it useful too. (Thanks to Sam and Scott!)</description><category>drupal</category><category>migration</category><category>troubleshooting</category><category>wordpress</category><guid>https://migratecontent.com/drupal-term_node-table-missing/</guid><pubDate>Wed, 06 May 2015 19:46:07 GMT</pubDate></item><item><title>Drupal to WordPress migration notes</title><link>https://migratecontent.com/drupal-to-wordpress-migration-notes/</link><dc:creator>Anthony Lopez-Vito</dc:creator><description>These Drupal to WordPress migration notes are intended for clients who are handling some aspects of the migration themselves. Users of the &lt;a href="https://migratecontent.com/the-drupal-to-wordpress-migration-tool/"&gt;Drupal to WordPress Migration Tool&lt;/a&gt; or &lt;a href="https://migratecontent.com/drupal-to-wordpress-migration-sql-queries-explained/"&gt;MySQL queries&lt;/a&gt; might also find information here to resolve some problems.
&lt;h2&gt;Admin account password and email address&lt;/h2&gt;
Your content management system (CMS) administrator password and email address may have changed during the migration to help with debugging. Please update them as soon as possible.

Drupal and WordPress user passwords are encrypted and I do not have access to them in plaintext. However, for your peace of mind, I recommend that you also ask all your users to reset their passwords.
&lt;h2&gt;Server credentials&lt;/h2&gt;
Please remember to change any database, (S)FTP, SSH server and control panel credentials you may have given me.
&lt;h2&gt;Working tables&lt;/h2&gt;
During the migration process, I may create some working tables to hold temporary data. My naming convention for the working tables are as follows:
&lt;ul&gt;
 	&lt;li&gt;&lt;strong&gt;acc_ prefix:&lt;/strong&gt; these are working tables created to help with migrating data.&lt;/li&gt;
 	&lt;li&gt;&lt;strong&gt;backup_ prefix:&lt;/strong&gt; these are backups of existing tables prior to migration, for example from a previous installation of your CMS. These will not be altered during the migration process.&lt;/li&gt;
 	&lt;li&gt;&lt;strong&gt;_copy postfix:&lt;/strong&gt; duplicates of WordPress tables copied for debugging will have a _copy postfix. These are different from the backup_ tables in that they may have been manually altered.&lt;/li&gt;
&lt;/ul&gt;
These working tables are not used by WordPress so you may safely delete them. However, it's advisable to keep them for a short while as they may be useful in case we need to debug any issues that crop up.
&lt;h2&gt;Migrating to a live server&lt;/h2&gt;
Most Drupal to WordPress migrations are performed on a test or development server. For help on how to move WordPress to your live server, please see: &lt;a href="http://codex.wordpress.org/Moving_WordPress"&gt;WordPress Codex: Moving WordPress&lt;/a&gt;.
&lt;h2 id="troubleshooting"&gt;Troubleshooting common errors after a site migration&lt;/h2&gt;
Please see below for some common problems you may experience after migrating your Drupal content to a new WordPress site.
&lt;h3&gt;Incorrect domain in URLs&lt;/h3&gt;
WordPress stores domains in the database. If you performed the migration on a local or development server, there's a good chance that the links will be incorrect after migrating to your live server. Use the Interconnect IT utility to run a search and replace on your database. This will also correct changed database prefixes.

More information can be found on the interconnect/it &lt;a href="https://interconnectit.com/products/search-and-replace-for-wordpress-databases/"&gt;Search Replace DB page&lt;/a&gt;.
&lt;h3&gt;"Sorry, you are not allowed to access this page"&lt;/h3&gt;
If you try to log in via &lt;em&gt;wp-admin&lt;/em&gt; and receive this error, you may have overwritten the administrator user's &lt;em&gt;wp_capabilities&lt;/em&gt; or &lt;em&gt;wp_user_level&lt;/em&gt;.

Set the correct meta_value using the following SQL:
&lt;pre&gt;&lt;code&gt;UPDATE wp_usermeta 
    SET meta_value = 'a:1:{s:13:"administrator";s:1:"1";}'
    WHERE user_id = 1 AND meta_key = 'wp_capabilities';

UPDATE wp_usermeta 
    SET meta_value = '10'
    WHERE user_id  = 1 AND meta_key = 'wp_user_level';&lt;/code&gt;&lt;/pre&gt;
Remember to use the appropriate the &lt;em&gt;user_id&lt;/em&gt;.
&lt;h3&gt;"You do not have sufficient permissions to access this page"&lt;/h3&gt;
If you receive this error after logging in to your new WordPress installation, it's possible that the database prefix on your new WordPress site is not set correctly. This may happen if you move your WordPress installation to a host that uses a different database prefix.

Try running one of the queries below. Replace wp_new_usermeta, oldprefix_ and newprefix_ as appropriate.

Option 1:
&lt;div class="codelisting"&gt;
UPDATE wp_new_usermeta SET meta_key = REPLACE(meta_key,'oldprefix_','newprefix_');

UPDATE wp_new_options SET option_name = REPLACE(option_name,'oldprefix_','newprefix_');

&lt;/div&gt;
Option 2:
&lt;div class="codelisting"&gt;
update wp_new_usermeta set meta_key = 'newprefix_usermeta' where meta_key = 'wp_capabilities';

update wp_new_usermeta set meta_key = 'newprefix_user_level' where meta_key = 'wp_user_level';

update wp_new_usermeta set meta_key = 'newprefix_autosave_draft_ids' where meta_key = 'wp_autosave_draft_ids';

update wp_new_options set option_name = 'newprefix_user_roles' where option_name = 'wp_user_roles';

&lt;/div&gt;
Please note that these queries may not work for you. Success depends on your specific setup.

For more information, please see the following pages:
&lt;ul&gt;
 	&lt;li&gt;&lt;a href="http://wordpress.org/support/topic/you-do-not-have-sufficient-permissions-to-access-this-page-98"&gt;WordPress forums: You do not have sufficient permissions to access this page&lt;/a&gt;&lt;/li&gt;
 	&lt;li&gt;&lt;a href="http://stackoverflow.com/questions/13815461/you-do-not-have-sufficient-permissions-to-access-this-page-without-any-change"&gt;stackoverflow: You do not have sufficient permissions to access this page without any change&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;"Unable to establish database connection"&lt;/h3&gt;
The database credentials are correct but you see an "Unable to establish database connection" error. Check that wp_options table is not empty.
&lt;h3&gt;Allowed memory size exhausted&lt;/h3&gt;
&lt;ol&gt;
 	&lt;li&gt;Increase php.ini memory size&lt;/li&gt;
 	&lt;li&gt;Increase WP settings memory limit with:
&lt;div class="codelisting"&gt;
define('WP_MEMORY_LIMIT', '128M');&lt;/div&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h3&gt;Post migrated but navigating to post shows blank page&lt;/h3&gt;
The post is visible in the dashboard but viewing it displays a blank (but themed) page. Manually saving it on the dashboard makes it appear.

It's possible that the problem posts need to be assigned to a category.
&lt;h3&gt;Post migrated but navigating to post shows 'Not found' error&lt;/h3&gt;
The post is visible in the dashboard but viewing it displays a 'not found' error. Manually saving it on the dashboard makes it appear.
&lt;ol&gt;
 	&lt;li&gt;Check that the url contains &lt;a href="https://migratecontent.com/drupal-wordpress-migration-seo#wordpress_permalink_constraints" title="WordPress permalink constraints"&gt;valid characters&lt;/a&gt; for a WordPress slug.&lt;/li&gt;
 	&lt;li&gt;Check that .htaccess is enabled in your Apache configuration&lt;/li&gt;
&lt;/ol&gt;
&lt;h3&gt;Link to author 404&lt;/h3&gt;
Posts exist but link to the author's post listing page is broken.

Check user_nicename in wp_users WordPress table. Make sure the nicename doesn't contain invalid characters such as spaces, periods.
&lt;h3&gt;Dashboard controls not visible after logging in&lt;/h3&gt;
If you are able to log in as an administrator user but do not see the Dashboard controls, check your table prefixes. If the table prefixes changed during the migration, you may have forgotten to update the &lt;em&gt;options&lt;/em&gt; and &lt;em&gt;usermeta&lt;/em&gt; tables.

Check where the old prefixes have been set:
&lt;pre&gt;&lt;code&gt;SELECT * FROM `wpnew_options` WHERE `option_name` LIKE '%wp_%';
SELECT * FROM `wpnew_usermeta` WHERE `meta_key` LIKE '%wp_%';&lt;/code&gt;&lt;/pre&gt;
Updated the prefixes. For example:
&lt;pre&gt;&lt;code&gt;UPDATE `wpnew_options` SET `option_name` = 'wpnew_user_roles' WHERE `option_name` = 'wp_user_roles';
UPDATE `wpnew_usermeta` SET `meta_key` = 'wpnew_capabilities' WHERE `meta_key` = 'wp_capabilities';
UPDATE `wpnew_usermeta` SET `meta_key` = 'wpnew_user_level' WHERE `meta_key` = 'wp_user_level';

UPDATE `wpnew_usermeta` SET `meta_key` = 'wpnew_user-settings-time' WHERE `meta_key` = 'wp_user-settings-time';
UPDATE `wpnew_usermeta` SET `meta_key` = 'wpnew_user-settings' WHERE `meta_key` = 'wp_user-settings';&lt;/code&gt;&lt;/pre&gt;
&lt;h2&gt;Further help&lt;/h2&gt;
We'll be very happy to provide support you if have difficulties after migration. For a quotation, please &lt;a href="https://migratecontent.com/#contact"&gt;contact us&lt;/a&gt;. We also offer customised hosting and maintenance packages. Please ask for details.</description><category>database</category><category>drupal</category><category>migration</category><category>sql</category><category>troubleshooting</category><category>wordpress</category><guid>https://migratecontent.com/drupal-to-wordpress-migration-notes/</guid><pubDate>Wed, 22 Jan 2014 11:25:42 GMT</pubDate></item></channel></rss>