• Skip to primary navigation
  • Skip to main content
Sal Ferrarello
  • About Sal Ferrarello
  • Speaking
  • Connect
    Mastodon GitHub Twitter (deprecated)
You are here: Home / Archives for Dev Tips

Dev Tips

WP Engine Syntax Error Composer autoload_static.php

Last updated on January 17, 2017 by Sal Ferrarello

While working with a client recently, I found that deploying to WP Engine with Git had stopped working. The Symptom The following appeared on the command line when I ran git push production remote: – warning: syntax Error Found in wp-content/vendor/composer/autoload_static.php … remote: – failed: we detected a PHP syntax failure. The Problem The file […]

Filed Under: Dev Tips, Solution Tagged With: Git, WordPress, WP Engine

Avoid Mucking Up DNS

How to Avoid Mucking Up Your DNS

Last updated on August 16, 2018 by Sal Ferrarello

At WordCamp Lehigh Valley 2018, I presented How to Avoid Mucking Up Your DNS. When I started working with websites, modifying DNS settings terrified me. We’ll discuss the things I wished I knew then: A records, CNAMEs, TTLs, name servers, and how to test these things. We’ll look at things I broke and how the […]

Filed Under: Computing, Dev Tips, Presentation Tagged With: DNS

WordPress Responsive Images Increased Page Size

Last updated on December 29, 2016 by Sal Ferrarello

Let me establish right away, I think WordPress Responsive Images are a good thing and I am an edge case. Unfortunately, in my case the page size has increased rather than decreased with responsive images. Background As part of my Friday night fun I’d planned to review the positive impact of responsive images on my […]

Filed Under: Dev Tips Tagged With: WordPress

WordPress Maintain Aspect Ratio Thumbnail

Last updated on September 16, 2015 by Sal Ferrarello

In WordPress your thumbnails will be cropped to exactly 150px by 150px regardless of the original aspect ratio. With this setting, if your original image is very short and wide, the left and right edges will be removed to make the image square. This is called “hard cropping”. In many cases this works well, but […]

Filed Under: Dev Tips, Programming Tagged With: WordPress

Round Gravatar Hovercard Problem

Last updated on July 9, 2019 by Sal Ferrarello


Warning: DOMDocument::loadHTML(): Tag template invalid in Entity, line: 12 in /home/customer/www/salferrarello.com/public_html/wp-content/plugins/gistpress/includes/class-gistpress.php on line 466

Warning: DOMDocument::loadHTML(): Tag svg invalid in Entity, line: 14 in /home/customer/www/salferrarello.com/public_html/wp-content/plugins/gistpress/includes/class-gistpress.php on line 466

Warning: DOMDocument::loadHTML(): Tag path invalid in Entity, line: 15 in /home/customer/www/salferrarello.com/public_html/wp-content/plugins/gistpress/includes/class-gistpress.php on line 466

Warning: DOMDocument::loadHTML(): Tag template invalid in Entity, line: 27 in /home/customer/www/salferrarello.com/public_html/wp-content/plugins/gistpress/includes/class-gistpress.php on line 466

Warning: DOMDocument::loadHTML(): Tag svg invalid in Entity, line: 29 in /home/customer/www/salferrarello.com/public_html/wp-content/plugins/gistpress/includes/class-gistpress.php on line 466

Warning: DOMDocument::loadHTML(): Tag path invalid in Entity, line: 30 in /home/customer/www/salferrarello.com/public_html/wp-content/plugins/gistpress/includes/class-gistpress.php on line 466

I see this problem on a lot of WordPress blogs using a round Gravatar with Jetpack Hovercards. When you hover over a user’s Gravatar (often in the comments) there is a hover state that appears while the Hovercard loads and this hover state has the Gravatar image but it has the wrong aspect ratio. Below […]

Filed Under: Dev Tips Tagged With: Gravatar, WordPress

Amazon S3 URL Redirect

Last updated on July 21, 2015 by Sal Ferrarello

Recently I found it necessary to create an Amazon S3 URL redirect. In the case where the Amazon S3 bucket is setup to act as a website, you can setup this up by adding the redirect directly to the file metadata. Instructions to setup an Amazon S3 website URL redirect Unfortunately, in this case the […]

Filed Under: Dev Tips Tagged With: AWS, S3

Loading a Private WordPress Plugin with Composer

Last updated on February 4, 2017 by Sal Ferrarello

Previously, I described my process in loading WordPress.org plugins via composer, however, a number of plugins I use are private plugins (either because they are commercial plugins I’ve purchased or internal plugins I’ve written). One can use composer to load these plugins by doing two things: Create a repository for the plugin (this can be […]

Filed Under: Dev Tips, Programming Tagged With: composer, WordPress, WordPress Plugin

Install WordPress with Composer

Last updated on December 27, 2018 by Sal Ferrarello

You can setup WordPress in a sub-directory using composer, thanks to John P Bloch‘s WordPress Core Installer. Below I’ve outlined the bare minimum steps to get this running. Step 1: composer.json Create a composer.json in the root of your project with the following content. { “require”: { “johnpbloch/wordpress”: “*” } } Step 2: Execute composer […]

Filed Under: Dev Tips, Programming Tagged With: composer, WordPress

WordPress Development Setup

Last updated on April 15, 2015 by Sal Ferrarello

Inspired by Sam Hotchkiss’s post What’s your WordPress Development Setup?, I decided to give a quick run down of the tools I use as a WordPress developer. My WordPress Development Setup Hardware 2013 MacBook Pro 13″ Retina with 16GB RAM and 512GB SSD for me this machine is the perfect combination of screen size, speed, […]

Filed Under: Dev Tips, Programming Tagged With: WordPress

Composer WordPress.org Plugins

Last updated on March 10, 2017 by Sal Ferrarello

I’ve recently been introduced to managing WordPress.org plugins via Composer. This makes it more convenient when excluding plugins from your working repository. Composer is capable of doing far more than managing plugins but at this point, that is the extent of how I’m using it. This allows me to exclude my plugins via .gitignore yet […]

Filed Under: Dev Tips, Programming Tagged With: composer, WordPress, WordPress Plugin

  • «Previous Page
  • Go to page 1
  • Interim pages omitted …
  • Go to page 18
  • Go to page 19
  • Go to page 20
  • Go to page 21
  • Go to page 22
  • Next Page»

Copyright © 2023 · Bootstrap4 Genesis on Genesis Framework · WordPress · Log in