Archive for the ‘Techie stuff’ Category:

Call to a member function … on a non-object

This error usually means that either your code is expecting a variable that isn’t there (so for instance your database needs populating) or your code has assigned the variable in such a way that it can’t be picked up correctly. You can’t simply ‘echo’ the object variable to see what has been assigned however by

(Read More…)

How do I import a large mysql databse file?

If you are importing a file over a few MB more often than not the phpadmin interface will crash. Depending on the size of the file it is possible to simply break it into chunks and paste each section into the sql window but this very quickly becomes tiresome and also could lead to missing

(Read More…)

How can I update a WordPress password directly in the database?

I have found it useful at times to be able to simply change a password directly in the database, here’s the MySQL query to do it: UPDATE wp_users SET user_pass = MD5(‘THE_PASSWORD’) WHERE wp_users.user_login =’THE_USERNAME’ LIMIT 1;  

How to stop SQL injection attacks

If you have a website which is powered by a database it is potentially vulnerable to SQL injection attacks – this is relatively simple to protect against and the risks of not doing so are to compromise the integrity of the data stored on your server and possibly the website itself. What is an SQL

(Read More…)

auto-responder – the saga continues!

Aggrr.. I set up my autoresponder as per previous posts, everything worked a charm until… my email client decided to start downloading all previously downloaded emails – it didn’t actually get that far as two days later it was still calculating the size of the download. Either way, I had two days worth of emails

(Read More…)

auto-responder update

This is the first time I’ve had to set my auto-responder since last time, the biggest problem I see is how not to get stuck in the auto-responder loop. I’ve been through the emails I get and have a more comprehensive list of generic emails not to reply to: no-reply noreply do-not-reply my own domain

(Read More…)

WordPress: switch between subfolder and subdomain for blogs

I set up a new wordpress/buddypress site and managed to select the option which creates new blogs as subdomains rather than subdirectories, which was what I wanted. Having done this some time ago I knew there was a simple way to switch between the two but a thorough search of forums etc suggested that a

(Read More…)

Which WordPress e-commerce plugin?

I’ve had a few customers come to me looking for a website to display their products. Their budgets did not really warrant a custom built e-commerce site so I took a look at whether a customised WordPress site might be able to offer them what they wanted within their budget. My first attempt was with

(Read More…)


common autoresponder mistakes

Setting up an autoresponder for your emails for when you are away is relatively well documented but there are some additional things you need to do to ensure it works as you plan, otherwise you can get caught out. 1. The autoresponder loop If you setup an autoresponder to simply reply to any incoming email

(Read More…)

bb press security options

There are a bewlidering array of plugins that try and control security settings within bbPress. Which one(s) to use?? The plugins don’t appear to be categorised in any useful manner so I’ve trawled through and here’s my list: Registration Approve user registration – adds a manual check Clickcha – adds a visual puzzle to forms

(Read More…)