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.

Vue and the WordPress REST API

I’ve continued to play around with using Vue and WordPress’s API. The Vue stuff is entirely new to me but it’s pushing my javascript knowledge. The main reason I’m excited about the WordPress/Vue (or whatever framework) combinations is simply speed. If you have any doubts give the pagination at the bottom of this demo site a shot. Crazy fast . . . and running stock on shared hosting. No caching plugins etc. The site is running the Vuetiful WordPress theme which has been an interesting thing to look at and see how it all works. Github is such a good thing. Below or linked here is the WP JSON/Vue pagination I eventually got working. It’s forked from this demo by Brian Krosgard.1 Even with that large head start, a few things hung me up. First, the navigation of the JSON elements is a bit tricky if you’re not used to it. You’ll want to use the _embed parameter2 to get access to the featured image data. That’s an option I didn’t know about previously. https://anth101.com/wp-json/wp/v2/posts?_embed&per_page=24&page=1 Since I named my main JSON objects ‘post’– to access the thumbnail URL, I’d use post._embedded[‘wp:featuredmedia’][0].media_details.sizes.thumbnail.source_url The part you need to pay attention to is the square brackets and the number following it. Notice there is no period between _embedded and [‘wp:featuredmedia’]. You might also […]

25

Weekly Web Harvest for 2016-12-18

An Open Letter to the ISTE Interim CEO and Board — re: Seymour Papert – Medium I am grateful to David for bringing attention to ISTE’s non-existent response to the life and death of Seymour Papert. It is worth noting that the father of our field, Dr. Papert, was never invited to keynote ISTE or NECC; not after the publication of his three seminal books, not after the invention of robotics construction kits for children, not after 1:1 computing was borne in his image in Australia, not after Maine provided laptops statewide, not when One Laptop Per Child changed the world. This lack of grace implies a rejection of the ideas Papert advocated and the educators who had to fight even harder to bring them to life against the tacit hostility of our premiere membership organization. Polar Bears’ Path to Decline Runs Through Alaskan Village – The New York Times “When you’re using it as a marketing tool and to bring in donations, there can be a tendency to lose the nuance in the message,” said Todd Atwood, a research wildlife biologist at the United States Geological Survey’s Alaska Science Center. “And with polar bears in particular, I think the nuances are important.”

18

Weekly Web Harvest for 2016-12-11

New MLB rookie hazing rules ban dressing as women, offensive costumes MLB vice president Paul Mifsud said Monday that the new rules resulted partly “in light of social media, which in our view sort of unfortunately publicized a lot of the dressing up of the players … those kind of things which in our view were insensitive and potentially offensive to a number of groups.” –social media is always letting people see stuff h/t Dan How to Read Sea and Spar Between Sea and Spar Between is a poetry generator which defines a space of language populated by a number of stanzas comparable to the number of fish in the sea, around 225 trillion. Each stanza is indicated by two coordinates, as with latitude and longitude. They range from 0 : 0 to 14992383 : 14992383. To operate the system, you may ChronodeVFD: A Cyberpunk Wristwatch | johngineer The ChronodeVFD is a personal project I’ve been working on for a couple of months. It’s a wristwatch built around the IVL2-7/5 VFD display tube. I originally purchased a few of these tubes to build a standard desk clock, but after playing around with them, I realized I could probably build a wristwatch too. The tube has a number of features which make it more suited than most Soviet-surplus VFDs for this […]

11

Weekly Web Harvest for 2016-12-04

ChronodeVFD: A Cyberpunk Wristwatch | johngineer The ChronodeVFD is a personal project I’ve been working on for a couple of months. It’s a wristwatch built around the IVL2-7/5 VFD display tube. I originally purchased a few of these tubes to build a standard desk clock, but after playing around with them, I realized I could probably build a wristwatch too. The tube has a number of features which make it more suited than most Soviet-surplus VFDs for this purpose. The NSA loved RSS in 2004 the NSA is spreading the gospel of RSS to the NSOC Operations Support Staff.  She or he says:  On the Internet, data sources as varied as Dilbert, ESPN Sports news, bankrate.com mortgage news, and Microsoft security updates are all available via RSS. At last count there were over one million RSS feeds available on the web, with more being added every hour. RSS has the potential to revolutionize the way we view the web, both at home and here at work. It’s easy to forget how exciting everything was in 2004.  ‘Clean your desk’ : My Amazon interview experience My second round interview involved me being on line with a proctor (from ProctorU), whose job was to provide tech support and make sure I don’t cheat. As preamble, the proctor made me download some software, one […]

Work This Week – Week 4

flickr photo shared by Australian National Maritime Museum on The Commons with no copyright restriction (Flickr Commons) WP Upgrades & Feed WordPress Error WordPress 4.7 came out. It does some good things and internalizes the JSON API stuff. Upgrades went well on most of our installs. We did have some issues though. Feed WordPress didn’t/doesn’t play nicely with 4.7 and the fix has some repercussions with other things we use. The ALT Lab site also broke for a bit and I had to do a fresh install. Not a big deal but ate up some time. The anth101 site also stalled out for a bit because of a conflict with another plugin. Luckily, the latter two issues were restricted the admin aspects and viewers wouldn’t have been impacted. Empty Widgets? I had one blog on rampages that wouldn’t load the customizer. Everything else about it worked fine. Tim Owens from Reclaim Hosting ended up helping me out as it’s fairly strange issue where the customizer won’t load if there are no widgets in it. It did lead to the following list of error variables that I tend to test against. With a bit of work, it might be a useful list. I’ll have to think through what order makes the most sense in terms of likelihood of solving the issue. […]