Memory errors with media upload, WordPress can’t use more than 96M (while there’s 512 available!)

You’re looking at the problem the wrong way. The error you’re seeing isn’t an error coming from WordPress, it’s a PHP error. Somehow, somewhere, something is limiting the memory limit to 96M, and it ain’t WordPress that’s doing it. Here’s the thing: WordPress can’t actually limit the memory on most servers. I know that it … Read more

How many caching plugins should be used?

@Tal, Generally speaking you should only be using one caching plugin. WP Super Cache, W3 Total Cache, Hyper Cache and DB Cache Reloaded all drop files directly in your wp-content directory and they would conflict with each other and cause errors if you were using more than one. I would recommend using W3 Total Cache … Read more

Allowed Memory Size Error in WordPress

The amount of memory that is allocated to PHP is insufficient. Add this to your wp-config.php file: define(‘WP_MEMORY_LIMIT’, ’64M’); If that doesn’t work, the chances are your host has this locked down and you can’t change it, in which case you either need to simplify your site, or move hosts.

loop through all posts memory error

The posts are still held in memory under WordPress’ cache mechanism (even though you replace $posts on every loop) – delete each one after operating on it: # do some echoing with the $post # wipe post from memory wp_cache_delete( $post->ID, ‘posts’ ); wp_cache_delete( $post->ID, ‘post_meta’ ); Pro tip: save some needless queries with no_found_rows … Read more

Not enough memory

Using FTP, try increasing the memory for PHP and WordPress by editing the memory_limit line in your php.ini (if you have access to it) to 64M or 128M, which should be fine for non-multisite installs. memory_limit = 64M; If you can’t get to the php.ini file, add this line at the top of your .htaccess … Read more

Memory usage when querying users

In your example, you are getting all the fields in the get_users call, but you are only really using the ID and display_name fields. So you can save some memory by forcing get_users to only get the fields you need. $users = get_users(array( ‘role’=>’s2member_level3’, ‘fields’=>array(‘ID’, ‘display_name’), )); That will help reduce your memory footprint.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)