Advanced Debugging Techniques for PHP
Debugging is an essential part of any developer’s development process. Most of us are familiar with the Xdebug debugger, but there are also a handful of other debugging tools we can utilize in our workflows.
How to Get a Summary of Watchdog (dblog) Messages
While working on a site audit, I wanted to be able to see what errors were currently happening on the site. I checked and they had dblog enabled already with a few days of errors, but going to admin/reports/dblog showed me pages full of the same error. This can happen when there is an error that occurs on a popular page or happens on every page load and it makes the logs difficult to read. In addition to that, the overview page truncates the error message and so you need to click through to the detail page to see the entire thing.
Conditionally Open a Link in a New Tab in Views Without the PHP Filter
I had a task. It seemed simple enough. It involved a link field with a title and a url (created by the Link module) and a single on/off checkbox field. The checkbox was a toggle for whether the link should open in a new browser tab/window.