07 Feb

What to do if WordPress site just shows a blank page

Sometimes a poor setup for wordpress can cause the site to return a blank screen. If you try accessing through /wp-admin/ and it still returns a blank screen then there are generally three causes:

  1. A broken .htaccess file
  2. A broken theme
  3. A plugin causing issues

Go through the following steps to fix this issue:

  1. Try removing the .htaccess in the root directory and see if the site works
  2. Remove the main theme directory (using FTP access) and see if the site works.
  3. If this fails turn off your plugins (by deleting them using FTP if you can’t get in through wp-admin) and again see if the site works.
Read the rest
16 Jan

WordPress Returns ‘Unknown Host’

I wanted to park one of my domains on top of another and use the canonical feature of WordPress to redirect the inbound link equity from the one domain to the other domain however when setup the second domain always returned ‘Unknown host: xxxx.com’.

I know if this is default behavior however I had so many plugins on this server it is often hard to tell what comes from WordPress core and what comes from plugins. As this is a live site I didn’t want to turn off all plugins until I found the one creating the issue.

My solution was to use a .htaccess… Read the rest

12 Jan

Google likes to push its own products

Can’t stand this personalization kick they’ve been going on – the results I got back from one recent search where totally skewed in a way I didn’t want and didn’t ask for:

They know I shared the URLs so if Google wants to implement personalization they obviously don’t need me to join Google+ – this appears to be leveraging one product to hawk another which is what Microsoft kept doing (and kept getting fined for doing) with their Internet Explorer product. Hopefully Google will get investigated and fined – as they should be for this blatantly anti-competitive behavior by a monopoly in the search market.… Read the rest

12 Jan

WordPress Theme Scanning

Noticed on one of our clients someone was trying to scan the theme directory looking for style.css files that might exist. I would imagine this is to find themes installed, and their version numbers which would then allow the person scanning to use a known exploit to break into a WordPress installation.

I caught this because I have the ‘Redirection’ plugin installed and set to log all accesses that result in a 404 error – usually I use this to put in redirects to stop the visitor getting a ‘page not found’ message. In this instance it has helped highlight someone trying to hack the site.… Read the rest

28 Dec

Unable to post message to http://googleads.g.doubleclick.net. Recipient has origin xxxx

Had this issue on one site when running Chrome and after much hunting did not find a documented solution. However I did manage to find and correct the issue after a little playing with my code.

The issue ended up being a totally unrelated

tag with a float left (it was a div around the breadcrumbs). This tag was used on other pages with ads with no issues, just one page had this problem. Unfortunately it was the template for the main part of the site so the ‘unable to post message’ issue had to be fixed.

To track down if a ‘float left’ is the cause of your problem try removing all CSS style sheets and see if the ads now start working.

Read the rest
15 Dec

WordPress How To Convert Tables to Innodb

Innodb tables are tables within MySQL that should be used instead of MyISAM for numerous reasons, the very least is that their transactional nature means they will not corrupt if you system has to reboot or lose power.

One of the problems is to change your tables from MyISAM to Innodb you need to run the following command:
ALTER TABLE YourDB.wp_posts ENGINE=InnoDB;
Once per table and that means lots of manual typing

I found a script that will create the list of tables for you:
SELECT CONCAT( 'ALTER TABLE `', table_schema, '`.`', table_name, '` ENGINE=InnoDB;' )
FROM information_schema.tables
WHERE ENGINE = 'MyISAM'
AND table_schema NOT
IN (
'information_schema', 'mysql'
)

Which outputs something like:
ALTER TABLE YourDB.wp_bad_behaviorRead the rest

02 Dec

DropBox High I/O Issue

DropBox is a miracle, allowing you to share files and keeping all your files up to date without the need to install a file server. This problem happened when I tried to install DropBox on a Windows Vista laptop – an old Dell Inspiration 620. The symptoms reported by the user were slow application response times since DropBox was installed.

I had a look and the machine had a few gigs of disk space but DropBox was stuck reporting ‘Downloading 10 files….’ though it never seemed to do anything.

I had a look at the Resource Monitor application and sure enough DropBox had really high read/writes and the hard disk was running at 100%.… Read the rest

04 Nov

Reasons I did not renew with Inmotion Hosting

Just received a invoice payment chaser from Inmotion Hosting. Thought I would share with you why I am not using their service anymore:

We moved off your servers months ago due to having the service turned off randomly, god awful support, and when we complained to your quality assurance department they said that your service was just fine. Well it wasn’t, we’re not on you anymore, and we’re not recommending you to anyone anymore.

While realizing we’re a small fish for you we were much bigger having multiple hosting accounts, a dedicated server and two VPS servers. We used your services for years.… Read the rest

02 Nov

Convert WordPress Comments Form into a Table

If you’re fed up with your comment form fields not lining up properly here’s how to turn the form fields into a table which you can then use CSS to format.

In your theme’s functions.php file add the following code:

<php
add_action( 'comment_form_before_fields', 'uniquename_comment_form_before_fields' );
function uniquename_comment_form_before_fields() {
      echo '<table id="PostCommentTable">';
}
add_action( 'comment_form', 'uniquename_comment_form' );
function uniquename_comment_form() {
      echo '</td></tr></table>';
}
?>

Then in your comments.php file locate the line that reads ‘comment_form()’ and replace with the following:

<?php
$comment_args = array( 'fields' => apply_filters( 'comment_form_default_fields', array(
       'author' => '<tr><td>' .
       '<label for="author">' . __( 'Your Name' ) .
Read the rest
06 Oct

Steps to Move eCommerce Store to New Domain Name

Before you move the store:

  • Check that the cart will handle the change in domain names, nothing is hard coded to the current domain, no license restrictions, etc.
  • Check your host allows parked domains.
  • You will need to obtain a SSL certificate for the new store so your checkout continues to work.
  • Does your site enforce one domain? If so can you change to the new domain name?
  • Check none of the coded pages refers directly to the old domain name– the only time it should be hard coded is the jump to the secure checkout. If there are pages with the domain in them you will need to edit to remove the domain name or list them for change after the conversion.
Read the rest