Skip to content

Month: January 2021

UnRaid Expanding qcow2 drive, Windows 10

To expand your drive size in UnRaid.

  • Go to VMs
  • Click on the name of the VM you want to expand
  • A new bar will appear, disk devices. Click on the capacity.
  • Set a new size and hit enter.
  • Start the machine, log in, etc.
  • Go to administrative tools, computer management, storage, disk management
  • Right click “disk management” and hit refresh
  • You should now see the additional space
  • Expand your disk
  • Done
Leave a Comment

WordPress Errors

Had the following WordPress errors on a website I was working on. I had migrated from one server to another.

  • Cookie nonce is invalid
  • 404 errors for wp-json/wp/v2/posts

I finally tried this trick, adding index.php, to test the URL giving the 404 and it worked http://localhost/myproject/index.php/wp-json/wp/v2/posts.

I switched the Settings -> Permalinks from post name to plain and that worked as well. I put it back and the errors returned.

It ended up being that somehow during migration the .htaccess file was not copied over and was not set up on the new server. Once I copied the .htaccess file from the old to the new server it worked.

Here is a copy of what my .htaccess file looked like at that time.

# BEGIN WordPress
# The directives (lines) between "BEGIN WordPress" and "END WordPress" are
# dynamically generated, and should only be modified via WordPress filters.
# Any changes to the directives between these markers will be overwritten.

RewriteEngine On
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]


# END WordPress
Leave a Comment