Mac Locahost uploads broken after Mac OS Upgrade

Before the recent MAC OS upgrade, wordpress plugin updates were working fine on my local development environment. Then I started getting messages like “upload failed server error” when attempting to update wordpress plugins from my local hosted wordpress sites. At first, I made sure the permissions were correct and that the files and directories had… Read more Mac Locahost uploads broken after Mac OS Upgrade

operator not supported for strings slider_markup_init.php [SOLVED]

This error comes from an older version of the   WordPress LayerSlider plugin after an upgrade to PHP 7. In case you are unable to upgrade your LayerSlider plugin, or do not wish to,  here is a patch to fix the issue. Don’t worry it’s pretty easy.  : ) How to resolve error: operator not supported… Read more operator not supported for strings slider_markup_init.php [SOLVED]

Resolve Website Issues After PHP upgrade 2017 [SOLVED]

Site Issues after upgrading PHP After upgrading to PHP 7, you may notice that your site is having issues. For example on a WordPress site, certain plugins will be disabled and you will see messages stating that certain PHP modules are missing. eg. requires the function mb_detect_encoding to import and export CSV files …currently has… Read more Resolve Website Issues After PHP upgrade 2017 [SOLVED]

How to fix wp-user stopped working after PHP Upgrade [resolved]

A server side user can have special permissions to won you WordPress application. If you have set one up and it stops working after you upgrade your PHP it is likely related to SSH2 PHP module. A while back I took advantage of this post from Digital Ocean about Secure Updates and Installations in WordPress… Read more How to fix wp-user stopped working after PHP Upgrade [resolved]

Error First Callbacks in Node JS

Callbacks are a systemic part of a Node.js application. A non-blocking well-balanced flow of controlled asynchronous modules is made possible by properly implemented callbacks. But what is “properly implemented”? Creating code that will scale with your projects means using a reliable protocol that is a well-known standard. The “error-first” callback (also known as an “error-back”,… Read more Error First Callbacks in Node JS

Why New Domain Keeps Forwarding to Old Domain [Solution]

After changing a domain name and updating the DNS records you might find yourself baffled by the fact that the site continues to redirect to the old domain. You may be frustrated as you have seemingly tried everything. Likely, you are dealing with a WordPress site. With a WordPress website, references to the domain name… Read more Why New Domain Keeps Forwarding to Old Domain [Solution]

SOLID OOP, Liskov Substitution Principle

Liskov Substitution Principle The Liskov Substitution Principle [1] (LSP) is applied to inheritance hierarchies. LSP specifies that classes should be designed such that client dependencies can be substituted with subclasses without the client “knowing”. How to apply the Liskov Substitution Principle To adhere to Liskov Substitution Principle, subclasses must function in the same way as… Read more SOLID OOP, Liskov Substitution Principle

SOLID OOP, OPEN/CLOSE PRINCIPLE (OCP)

Open/Close Principle (OCP) The Open/Close Principle means that software entities should be open for extension but closed for modification [1]. Open to extension “Open to extension” means that classes are designed with the possibility of new functionality in mind. Down the road, one can extend functionality as new requirements come up. Closed for modification “Closed… Read more SOLID OOP, OPEN/CLOSE PRINCIPLE (OCP)

SOLID OOP, Single Responsibility Principle

Single Responsibility Principle (SRP): Single responsibility principle [1] means that any one class should not have more than one reason to change. For this to be true, a class will only have one single responsibility. Avoid creating a god class [2]. Objects that are controlling way too many other objects in a system and often… Read more SOLID OOP, Single Responsibility Principle