WordPress, Workflow Tools

xmllint

I recently discovered after trying to import WordPress XML files for a customer that you can use xmllint (within the Command Line or iTerm) to check the validity of the files.

The error message looked like this:

Invalid XML on read in WXR_Large_File_Parser::__construct() for file:///nfs/6a2/156107206/files/2019/01/site-address-here.wordpress.2019-01-09.001.xml_-3.txt (size: 11335507)

After a colleague suggested xmllint, I opened iTerm (equivalent to the Command Line), then made sure to change the directory to where the file were located. For example:

/cd ~/Desktop
xmllint --valid filename.xml

Two files were checked and one of the files produced the following error:

If anyone can translate the error messages (from the screenshot), please let me know!

In the end, I tried the import file again but decided to split the first file 11.3 MB using a WXR splitter and all files were successfully imported. 🎉 🤓

Standard
Automattic
Automattic, WordPress

Howdy Automattic!

Just a quick note to share the news that yesterday was my first official day as a Happiness Engineer for Automattic. The awesome company behind WordPress, Jetpack, Akismet and a whole bunch of cool products.

As many of you know, I’ve always been a huge fan of WordPress so after working at Sydney University for 12 years, let the new adventures begin…

Standard
WordPress

How To Harden Your WordPress Website For Better Security

My latest blog post, “How To Harden Your WordPress Website For Better Security” was published by INKth.com last night.

//platform.twitter.com/widgets.js

Thanks to Hoi-Sze Lam from INKth.com for the opportunity.

Standard
Productivity, WordPress, Workflow Tools

YeoPress Review

YeoPress: A Yeoman Generator for WordPress by Wesley Todd

I won’t go into too much detail to explain what YeoPress does but you can read more about it from the creator himself, Wesley Todd. YeoPress: A Yeoman Generator for WordPress, basically installs WordPress via the Command Line/Terminal. It’s also assuming that you’re working locally (which is a good start for developing WordPress themes). So you still need to create your database and you have to know what your database username and password will be (this is to set up your wp-config.php file) For example: Database Username: root, Database Password: empty). Be sure to check your database privileges for editing access too. The steps described by Wesley are easy to understand and the instructions set up are pretty straightforward.

Continue reading

Standard