[] operator not supported for strings – PHP

I had a problem with Revolution Slider on a WordPress installation when upgrading to PHP 7.2+. It would generate the error – PHP Fatal error: [] operator not supported for strings in C:[path]\wp-content\plugins\revslider\includes\framework\base-admin.class.php:71 The problem was from the plugin attempting to use the short array push syntax on a string: The solution was to modify […]

405 method not allowed – IIS and Gutenberg

Some servers are not configured to allow all of the functionality for Gutenberg, the new WordPress editor. When saving, the PUT operation might be disallowed, giving you an error like: “405 method not allowed”. If you have access to your web.config file you can fix this problem with a minor change. Change: To: Or, just […]

WordPress Login Reauth Loop

Sometimes I run into this login loop and here is something that has worked: ” I went into PhpMyAdmin > wp_usermeta > and deleted the meta_value for session_token. “ It seems to be more frequent on multisite installations and on those it can take more steps. When the above fails, then adding the following lines to wp-config […]

WordPress IDE – Visual Studio Code

I have decided to test out another WordPress IDE – Visual Studio Code *(or should I do PHP Tools for Visual Studio first?) Step 1: Install the Visual Studio Code IDE from: https://code.visualstudio.com/ References: Autocomplete and snippetrs: https://marketplace.visualstudio.com/items?itemName=tungvn.wordpress-snippet Review with recommended plugins, etc: https://tommcfarlin.com/vs-code-wordpress/ https://code.visualstudio.com/docs/languages/php

Bulk Migrate Users to New Blog on WordPress Multisite

Recently I had to move a large number of users from one blog to another on a Multisite install. These users had been mistakenly added to the wrong blog and most of them also had been assigned the wrong role. There were plugin options to do this one by one, but not to bulk migrate users. […]

Invalid Request OpenSSL Error: Adding a new site to MainWP on Windows

I have been setting up MainWP on Windows and I ran into an issue when trying to add my first site. MainWP’s dashboard gave me an error, “Invalid Request” – not very descriptive. When I looked in my PHP error log I found: “[10-Dec-2016 14:20:34 UTC] PHP Warning: openssl_pkey_get_details() expects parameter 1 to be resource, […]

Speed Optimization Tips From WPMU Dev

Pasting this here for future reference (from an email generated by WPMU Dev): Site speed isn’t all about images though – there are heaps of other things to look at, too. I’ve collected a few posts from our blog that nicely sum up what you should look at to get your site operating at 100% […]