Category Archives: Wordpress

Pagination is everywhere in WordPress.

I have a lot of posts on my website (over 800) and as such finding or remembering a post I wrote last year or five years ago can be a pain if I have to click through 5 or even 20 posts.

To simply this process, on any of the WordPress menus (Posts, Links, Categories, Pages etc)…

  1. Click on the Screen Options at the top right of the Dashboard screen.
    Pagination in WordPress 1
  2. This opens a pull down where there is a section called Pagination. Overwrite the number of items per page (20) with a bigger number.
    Pagination in WordPress 2
  3. Now all items are listed on the same page and there is no more clicking through page numbers.
    Pagination in WordPress 3

Allowed memory size of X bytes – A fix.

Back on the 27th of June I wrote about a memory error I was seeing in my various WordPress sites. There error was very similar to this “Allowed memory size of 33554432 bytes exhausted”, and I found a fix for this error. I have started to see this error again so did another search and came across the following post in the forums of Bluehost.com. The fix is similar to below but you need to do one more thing if you are hosting your websites with Bluehost.com.

  1. Login to the Control Panel
  2. Scroll down to Software / Services and click on PHP Config.
  3. Choose the 2nd radio button PHP5 (Single php.ini) – Same as PHP5, but all subdirectories will use ~/public_html/php.ini
  4. Save Changes – Problem solved.

I’ve been seeing memory errors lately on my various WordPress websites and after much investigation found a support topic 194370, which offered a solution that has definitely fixed the problem for my three web sites.

In the root of your website or WordPress site edit the file wp-settings.php and on line 13 change the define(‘WP_MEMORY_LIMIT’, ‘32M‘); to define(‘WP_MEMORY_LIMIT’, ‘64M‘);

Fatal error: Allowed memory size of X bytes … – A fix.

WordPress LogoI’ve been seeing memory errors lately on my various WordPress websites and after much investigation found a support topic 194370, which offered a solution that has definitely fixed the problem for my three web sites.

In the root of your website or WordPress site edit the file wp-settings.php and on line 13 change the define(‘WP_MEMORY_LIMIT’, ‘32M‘); to define(‘WP_MEMORY_LIMIT’, ‘64M‘);

WordPress 2.7 beta 3 is out!

WPcamp cena logo #1I upgraded my WordPress today to the latest 2.7 beta 3 and there seems to be a ton of changes already from the previous two beta versions.

Here are just a few of the changes from the WordPress website:

  • Numerous style improvements and refinements.
  • All admin notices now go under the page title.
  • PHP Notice fixes.
  • Dashboard widget options now properly save.
  • Menu fixes.
  • New design for Quick Edit.
  • Canonical feed URL fixes.
  • Walker fixes.
  • An update for Hello Dolly.
  • Plugin installer updates.
  • Numerous font updates.
  • Updated login logo.
  • Switch position of “Save Draft” and “Preview” buttons in publish module.
  • File upload support for MS Office 2007+ file formats.
  • Media upload buttons won’t show if the user doesn’t have the upload capability.
  • Canonical redirects only do yes-www or no-www redirection for domains.
  • Shift-click checkbox range selection improvement.
  • Add New User page now separate.
  • Tag suggest only suggests tags (not other taxonomy terms).
  • QuickPress shows “Submit for Review” if user cannot publish.
  • Private posts/pages, and password-protected posts/pages are rolled into new “Visibility” section of publish module.

wp27b3

New WordPress Beta out (2.7).

verticalThere is a new WordPress available (2.7 beta), and it’s got quite a few new changes, noticeably the dashboard is different. They have changed the old horizontal menu with a vertical menu and spruced up the category icons. It does look slick.

The “Add New Post” page is a lot cleaner now with the “Publish, Tags, Categories and Privacy Options” all appearing on the right side of the page. There is designated “Preview” button now. I can’t remember seeing that in the previous version.

It’s not the final product, but it’s a damn good looking beta. If you would like to download this beta version then head over to the WordPress Blog. WordPress Fluid Icon

PHP4 to PHP5 – Some guide lines!

I was recently trying to install Umapper but couldn’t because it only runs on PHP5. I started reading up on PHP4/5 and how a lot of hosting companies are now moving to PHP5 because it’s better, faster and eliminates the overhead of loading the PHP interpretor on ever hit, and they are not going to support PHP4 for much longer.

I checked my hosting company (bluehost.com) and discovered this was true for them as well.  They have a panel where one can go and with a few simple steps, the change can be made easily.

As you can see I made the change to PHP5 (FastCGI). Then I discovered my website would not work correctly. Parts of the page would load, but the rest was missing. I also noticed that my permalinks, or category pages were not working at all. (how frustrating)!

I contacted the Live Chat Support Team, at Bluehost and they were very helpful, although they did everything I had already tried. They didn’t mentioned adding an Apache Handler, which I did later. (whether this made a difference I am not really sure).

But, I am sure of the following. I did a search in the WordPress Forums and found exactly what I was look for. There is always someone who has come across a similar problem to yours, and I found the following advice from a chap called Woordenaar:

This code needs to be added to your .htaccess file that sits in the root of your website. I had one, and mine was slightly different.

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress

Going back to the Apache Handler. The only reason I made a change to mine was because I was reading up on the Gallery 2 website, and noticed the “LoadModule php5_module. So I copied application/x-httpd-php and added it as a handler, and added the .php as the extension. (If you are a Bluehost customer the Apache handler configuration screen can be found under Advanced).

So it has taken me about four hours to figure this problem out, but it’s been worth it, and I’ve learnt a few things about PHP5 and Apache. I was determined to solve this problem and make my site faster (since it’s been snail pace recently). Now I can install the Umapper Plugin version 1.3.95. 🙂