How To Turn Off eShop Test Mode

If you are using the latest WordPress version (which you should!!!), you’ll notice that eShop plugin will be perpetually set to Test Mode and there’s no way to turn it off. There’s quite a number of suggestions in the official forum at quirm.net but as it turns out, the option is inadvertently hidden. All you have to do is to activate the two column mode of the dashboard and you’ll be able to see the dropdown option.


To be clear, here’s the screenshot on how to do it.
Step 1 : click on 2 in the Number of Columns Screen options.

Step 2 : Update the status to Live and click on Save.

For those looking for it, I know how you feel. I just felt too stupid to not thinking about it. Admittedly, it’s probably one of the many plugins affected by the latest WordPress enhancements. I bet once rich updated the plugin to conform with the new standard, then it won’t be a problem anymore.

Source:

http://quirm.net/forum/topic.php?id=4716

Incoming search terms:

  • eshop test mode
  • disable eshop test mode
  • disable test mode eshop
  • eshop in test mode
  • eshop turn off the test mode
  • test mode eshop plugin

Apache Cannot Allocate Memory Problem

For the past month, I have been encountering some problems with my WordPress installation. I keep getting the Error 500. I checked the log files and here’s what I found.
(12)Cannot allocate memory: couldn't create child process: /opt/suphp/sbin/suphp for
[Read more...]

Incoming search terms:

  • apache cannot allocate memory
  • Cannot allocate memory: couldn\t create child process: /opt/suphp/sbin/suphp
  • Cannot allocate memory: couldnt create child process: /opt/suphp/sbin/suphp
  • cannot allocate memory
  • cannot allocate memory apache
  • (12)Cannot allocate memory: couldn\t create child process: /opt/suphp/sbin/suphp
  • cannot allocate memory couldnt create child process opt suphp sbin suphp
  • cannot allocate memory couldn\t create child process wordpress
  • cannot allocate memory: couldnt create child process: /opt/suphp/sbin/suphp for apache
  • cannot allocate memory: couldn\t create child process: /opt/suphp/sbin/suphp for /home

Missing Custom Fields on WordPress 3.2

I’m now using WordPress 3.2 in all my new installation. Of course, I already upgraded the rest of my websites. But I found something that’s really strange. The Custom Fields and a few other modules are missing the the post editor. I was thinking maybe it was removed in the latest version or that it may have been affected by an errant plugin. The problem is that I’m using TwentyEleven theme and no plugins and yet the Custom Fields module is missing. It turned out that there’s actually an option in the Screen Options menu to display/hide certain parts of the editor.
[Read more...]

Incoming search terms:

  • custom fields wordpress 3 2
  • wordpress 3 2 custom fields
  • custom fields in wordpress 3 2
  • wordpress 3 2 add custom field
  • always show custom fields wordpress3
  • where are custom fields in wordpress 3
  • where is custom fields wordpress 3 2
  • wordpress 3 2 add custom fields
  • wordpress 3 2 how to show custom fields
  • wordpress 3 2 missing option custom content

Automatically Convert Emails to NoSpam

To prevent spam comments on one of the sites that I maintain, I send for approval any comment with at least one URL or email address in it. In that way, manual spammers will find no incentive on leaving comments on the site. At the same time, email addresses left by commenters will not be displayed in the site until it is sanitized. However, the amount of comments in the site in question is so many and manually sanitizing comments with emails is becoming a pain.
[Read more...]

Incoming search terms:

  • emailsafe jquery
  • \ [a-z0-9][a-z0-9_-]*

Private File Attachments in WordPress

Before WordPress 3.0, I use codes from the plugin Private Files in one of client website to protect the files from illegal download/viewing. It works by not allowing access to WP’s uploads directory and sending and then serving a custom 404 page. It works fine until WordPress 3.0 started sending headers before calling the template’s 404.php. This resulted to the plugin not generating the requested file. After so much googling, I found out that there’s a better way of doing it by using redirect in .htaccess.

Here’s my .htaccess placed on the /wp-content/uploads/ directory.
[Read more...]

Incoming search terms:

  • wordpress private files
  • file attachment wordpress
  • wordpress private downloads
  • private files wordpres
  • wordpress private uploads
  • wordpress private files manage
  • wordpress private files plugin
  • wordpress private file
  • wordpress share private files
  • wordpress plugin files private

WP MultiSite : Error Connecting to Database

I searched the interwebs and the solutions I found are mostly solving a different problem. To be specific, the problem being solved is about the WordPress MU migrated to WordPress MultiSite. Another problem raised that gets this message is about plugins incompatible with the MultiSite. Of course, you only need to disable those plugins.

Here’s the case I have.
Server Setup
Type : VPS
WebServer : nginx-0.8.51
WP Version : WP 3.0.1 multisite enabled
Plugins Installed : NONE
Problem Description :
After adding new blogs on my multisite installation, the error below

‘Error establishing a database connection
This either means that the username and password information in your wp-config.php file is incorrect or we can’t contact the database server at localhost. This could mean your host’s database server is down.’

Additional Detail : The main site is accessible without any problem. The admin dashboard is configurable. So the message that there’s a problem with the login credentials is simply not true.
[Read more...]

Incoming search terms:

  • wordpress multisite Error establishing a database connection
  • Error establishing database connection wordpress multisite
  • wordpress multisite error establishing database connection
  • Error establishing a database connection wordpress multisite
  • Error establishing a database connection multisite
  • wordpress multisite database error
  • error establishing database connection multisite
  • multisite error establishing a database connection
  • multisite wordpress error establishing database
  • wordpress multisite error connecting to database

Change WordPress Table Prefix

As part of hardening your WordPress installation, it is recommended that we change the prefix of our WP tables. In that way, the ‘bad guys’ and script kiddies will have to guess the name of your tables.

[Read more...]

Incoming search terms:

  • table prefix home pl
  • wordpress tagged with prefix

WordPress 404 Page Not Working in IE

As stated in the title, my 404 template in WordPress does not show up every time a non-existent URL is accessed in my site. The page works perfectly in FireFox and Chrome, though. So I made a quick search and found that the solution is to add another header information in the page. So here’s what to insert at the very start of 404.php.


<?php ob_start(); ?>
<?php header("HTTP/1.1 404 Not Found"); ?>

For this, credit goes to wpcanada.
http://wpcanada.ca/2008/03/20/ie-and-custom-error-pages/

[Read more...]

Incoming search terms:

  • header(\HTTP/1 1 404 Not Found\); not working wordpress
  • ie 404 page
  • ob_start header 404
  • wordpress 404 internet explorer
  • wordpress 404 on ie not on firefox
  • wordpress 404 php not working

Get Category Name in WordPress

This is another super simple and yet super helpful WordPress function that took me a while to find. I’m currently working on a WP Theme that requires me to show the category name. And I thought it isn’t right to write an SQL including all the necessary stuffs that comes with querying the database just to get the category name. There must be a simpler and better way… and there is! Here’s the simple code to do just that.


<?php get_cat_name( $cat_id ); ?>

Cool!

Reference: http://codex.wordpress.org/Function_Reference/get_cat_name

Incoming search terms:

  • get_category_name
  • wp get_category_name
  • get_category_name wordpress
  • get category name wordpress
  • wp get category title
  • wp get category name
  • wordpress sql category name
  • wordpress get the category title
  • the_category_name
  • get_category_title wordpress

WordPress : ‘You do not have sufficient permissions to access this page’

The problem looks like below.

You do not have sufficient permissions to access this page

The supposed permission problem has occured before and mainly involves plugins. For older version of wordpress, your problem may be solved by one or both of the

  • Change of table prefix - I suggest you visit this to solve that problem. And it also solves a string of other things, too.
  • Failed Upgrade - If you used an automatic upgrade and failed, it is possible that the version number saved in the database is already updated. You can force upgrade it by updating the your version number. Another alternative is by using MarkAquit’s script here

However, these solutions are only applicable for older versions of WordPress. If you have a clean install, you should not encounter this. That’s why it didn’t work and was back to square one of investigation. Upon further checking, it turned out that the problem is related to old plugins. Apparently, there are plugins that was written before the current releases and whose parts of the code is no longer compliant with the current version of WordPress.

Finding the offending plugin is a bit tricky especially if you are using a lot of plugins. Luckily, I only encounter this in a contact page plugin and replace it accordingly with a new plugin which was released lately. The problem with my older plugin is that there’s no more active development. And so when some of the codes were deprecated, the plugin fails.

So what’s the problem then? Old Plugins.

Incoming search terms:

  • wordpress plugins You do not have sufficient permissions to access this page