13

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. Solution 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.

08

Weekly Web Harvest for 2017-01-01

I Can’t Answer These Texas Standardized Test Questions About My Own Poems | The Huffington Post How many stanzas are in this poem? Where are they located? I would appreciate your help. Thank you so much!” Oh, goody. I’m a benchmark. Only guess what? The test prep materials neglected to insert the stanza break. I texted him an image of how the poem appeared in the original publication. Problem one solved. But guess what else? I just put that stanza break in there because when I read it aloud (I’m a performance poet), I pause there. Note: that is not an option among the answers because no one ever asked me why I did it. h/t or blame for this extra does of sad goes to Enoch Hale Netflix/sketchy: A task based API for taking screenshots and scraping text from websites. A task based API for taking screenshots and scraping text from websites. h/t Kin Lane’s GitHub stars . . . Emmet — the essential toolkit for web-developers Taking the plunge with Emmet . . . we’ll see how it goes. Cosmic JS | Cloud-Hosted Content Management Platform, API-First CMS Cosmic JS offers an intuitive API that can deliver content to any website or application. This gives you the freedom to build your application using any programming language and allows […]

Bootstrap Collapsible Shortcode Plugin

There are a bunch of these out there but the ones I knew of didn’t quite do what was needed by the Focused Inquiry faculty involved in this project. They wanted a couple things to be possible. The ability to link to specific elements via URL and have them expand. The URL to those elements to remain consistent even if the order of the elements was changed. An “email this URL” link to enable faculty to send the URL to students Plus/Minus indicators based on expanded/collapsed. Most shortcode plugins I’ve seen either don’t have an ID for the collapse element or make it sequential (which changes if you shift the order). Neither works well for a URL that needs to be consistent. I’ve never seen one to do the email element. In my head, I made this way harder than it needed to be. It ends up being just two shortcodes- one for the collapsible container and one for the item-level elements. I found this Bootstrap snippet that did most of the functional Bootstrap stuff that I needed. I found a script to let me expand elements via URL parameters. I reminded myself what a freaking mailto link structure looked like. Now I just had to figure out what variables needed to be set in the shortcode and how the […]

Minimal WordPress

Sometimes people just want a little bit of WordPress. Before hanging a left with the anth101.com site, we pruned it waaaaay down and tried to make it as simple as possible. This is a pretty solid example that WordPress can be just about anything you want if you’re willing to put in a bit of time and effort. I figure having all these things in one place will help someone else (me most likely) at some point. Hide Posts from Other Authors If you have many authors, you often don’t want them seeing a bunch of posts in the admin area that they can’t edit. Make their lives easier and hide everything else. I believe this is where I found the code. Remove Sidebar Options To further clean up the sidebar for authors, the following code removes lots of things that you don’t want students bothering with anyway. You can get lots of details on this in the codex. Go to Directly to Post, Do Not Pass Dashboard This shunts people directly to the posts area rather than going to the dashboard on login. Posts in Single Column This sets the posts to single column display to simplify writing and was found here. Purify and Rename the Post Page This chunk removes certain meta boxes and restructures the language on […]

01

Weekly Web Harvest for 2016-12-25

Cosmic JS | Cloud-Hosted Content Management Platform, API-First CMS Cosmic JS offers an intuitive API that can deliver content to any website or application. This gives you the freedom to build your application using any programming language and allows for easier scaling within your development team. twosigma/beaker-notebook: Web-based, polyglot research platform. Beaker is a code notebook that allows you to analyze, visualize, and document data using multiple programming languages. Beaker’s plugin-based polyglot architecture enables you to seamlessly switch between languages in your documents and add support for your favorite languages that we’ve missed. Add Service Worker for WordPress | justmarkup The Simpsons s26e01 Episode Script | SS I have memories. (high-pitched tone) I have. memor memor (grinding, beeping) (gentle piano playing) (high-pitched): Still love you, Homar. (high-pitched, distorted): We are happy family. All animals can scream. (low growling) Make purchase of the merchandise.