500 Error on wp-admin after upgrade
This happened with one of our individual installs and it’s happened before (but I forgot the solution) so I’m writing it down.
After the upgrade to 4.7.1, the front of the sight still worked but attempts to get to wp-admin failed with a 500 error and the URL was redirecting to something with upgrade.php? in the URL.
Change the name of the plugin folder (I just prepend an underscore).
Revisit your login URL.
Run the database upgrade as prompted.
You should now be in the admin zone.
Fix your plugin folder name.
Easy but also easy to forget.
These last few posts are an attempt to document both how things I post on this blog come back up and help me do new things and an attempt to document how I come to solutions for things that I don’t understand how to do. Then there’s an attempt to explain what I did in case anyone else wants to do the same. I hope that it’s a narrative on my learning process as much as it is a tutorial on the particular topic. The Past So I’m fairly focused on making things easier for myself for the simple fact that if they don’t make sense/work with my current life then I tend not to keep them up. A good examples is that way back in 2011Nothing wrong with letting an idea ripen. I modified the WordPress “Press This” bookmarklet in combination with the WordPress Snap plugin to allow me to auto generate screenshots of pages. I used it a few times after that but it didn’t fit my workflow. It solved one problem- I wanted visuals of these websites to make the posts more engaging but I didn’t want to take screenshots, upload them etc.I’m lazy I guess. So one problem solved but the fact remained that I didn’t use “Press This” to bookmark pages. I used Diigo for […]
Sometimes it’s the tiny, little bitty things. This is one of those times.Other times your post title is only mostly misleading. Issue: Lesley Bullock is an awesome ornithology instructor who has all her students doing field work and they’re aggregating their work to a main mother blog hub. She is even having them record and upload bird songs which is entirely awesome. The problem was that when aggregated, the built in WordPress player wouldn’t show up. Oddly, it’s there in the code. I could see it there taunting me (below). However, the visibility was set to hidden. Once I realized the content was coming in, I tried the least invasive response- that is I just tried to override the CSS using the custom CSS option in Jetpack. No dice. Given that this is hardcoded into the post at the element level that wasn’t a huge surprise but it was worth a shot.Oddly enough if you add an additional audio file or even repost the original everything works as expected. I have no idea why. I couldn’t find anything that flipped any switches and eventually gave up on that track. I considered a few other options- Feed WordPress advanced filters, altering the core WordPress files . . . and they either wouldn’t do what I wanted or they felt too dramatic […]
Pre-Intervention Post-Intervention I’ve often had requests to make the admin dashboard in WordPress simpler for students (although it’s just as likely applicable to faculty or humans in general). The example in the Juxtapose box above (slide it!)I’ve been having some issues with Knightlab stuff loading recently. Maybe they’re too popular or VCU is flagging them on the network in some way. They run fine when I install the libraries locally. The result above is an example based on one such request. The goal was to take the initial dashboard and reduce it down to the absolute minimum of items needed for students and to move them directly into the place they were likely to spend most of their time working (not the dashboard). The code below is all stuff that ends up living the functions file of the custom theme or could be incorporated into a plugin.There are plugins that do aspects of this but I wanted to keep this fairly lean and didn’t want the overhead of multiple plugins to achieve this particular result. This following code from here makes sure that the only posts an author sees are the ones they wrote. I’m not sure why that’s not the default but . . . The following removes menu items from the sidebar. It’s a combination of things I […]