So I was trying to count the number of repeater rows for a ACF repeater field in my WordPress theme, something which I figured would be a simple use of the count() function on the returned field.
In turns out though, that the following code doesn’t work with a repeater field if it is part of a flexible content block. Continue reading “Developer // ACF: Counting Repeater Rows Inside Flexible Content”
After being told that emails sent from a client’s Wordpress site had suddenly started getting rejected I immediately assumed an SPF problem.
But when investigating the headers it became apparent that the return-path header getting set didn’t match what was being sent out. Continue reading “Developer // WordPress Mail Overwriting Return-Path Header”
First bit of new functionality work i’ve done in ModX for a longtime and I came unstuck by not being able to create any new template variables, due the the fact that ModX thought I had invalid characters in the variable title. Continue reading “ModX: Invalid Characters in a TV Name”
So I was installing Bower onto my work machine (currently running OS X 10.7) and installed the lastest versions of Node and Git.
When attempting to install Bower I received an error from Git, and on closer inspection any git command was producing ‘Segemntation Fault’ or ‘Illegal instruction’ errors. Continue reading “Installing Git on Mac OS X versions prior to 10.9: Segmentation fault 11”
I implemented JQueryUi’s accordion on a few sections of a recent project, styling up the headers and content from scratch so as to fit in with my site design. When it came to test the sections in IE7 however, the accordion simply displayed on the page as standard HTML h3’s and divs, as if the JQueryUI file had simply not been included in the page. Continue reading “If Your JQueryUI Is Broken in IE 7”
I was alerted to an error on a CodeIgniter site I am developing, which appeared randomly – no changes had been made to the site for a few days, relating to the Browscap functions Continue reading “Bug: CodeIgniter Browscap Error”
After developing and testing a mobile view for a site, I uploaded it to the live server and gave it a quick test. Loading it up on my iPhone the mobile view loaded as expected, but none of the jQuery features were working, as if the jQuery file hadn’t been uploaded. Continue reading “Mobile Safari jQuery Error”
Having to add a new form to an old Modx Evo site threw up a bug with the eForm add on today, when submitting the form I was constantly told I had an ‘Invalid Data Error’ on my dropdown field. Continue reading “Modx Evo eForm Throws Constant Validation Error On Select Options Created Using Snippet”
Creating an accordion in a page, set it to automatically take the height of the biggest div etc, all fine except I was getting an unwarranted scrollbar in one of the divs. Continue reading “JQuery UI: Unnecessary scrollbar in accordion”
Trying to upload a Zend Framework project to my 1and1 hosted webspace proved more complicated than it should have today.
Uploaded my working Zend project only to recieve errors when attempting to view it online, first thing to check – Is it in PHP5? According to my 1and1 control panel it is, but just to be sure I edited the local PHP settings to PHP5 too. Continue reading “Enabling PHP5 on 1and1 hosting”