WordPress memory on 3.X

From quick look (at horribly minified code) plugin just echoes WP_MEMORY_LIMIT in that place so no idea what is going on for you. The basic way to retrieve real PHP memory limit (at specific point! it can be changed in runtime) is ini_get( ‘memory_limit’ ). Related WordPress constants are mostly just a guidelines for WP … Read more

Allowed memory size exhausted problem

The problem is that you don’t have enough memory allocated for your php script in your php.ini file. there are two ways to solve it increase the memory allocation which might require you to increase the actual physical memory you use give up on some features of your site. There is no one root cause … Read more

Why do get_category_by_slug() crashes WordPress 4.8

Because get_category_by calls get_term_by which calls get_terms which creates a WP_Term_Query which runs the list_terms_exclusions filter, which runs your code that calls get_category_by which calls get_term_by which calls get_terms etc etc etc Your problem is that of an infinite loop, the functions you call in your filter, trigger the filter they’re called in. It’s not … Read more

Defined WordPress Memory Limit to Unlimited

If you search WP source code, you’ll find _MEMORY_LIMIT in wp-includes/default-constants.php $current_limit = @ini_get( ‘memory_limit’ ); $current_limit_int = wp_convert_hr_to_bytes( $current_limit ); //.. if ( ! defined( ‘WP_MAX_MEMORY_LIMIT’ ) ) { if ( false === wp_is_ini_value_changeable( ‘memory_limit’ ) ) { define( ‘WP_MAX_MEMORY_LIMIT’, $current_limit ); } elseif ( -1 === $current_limit_int || $current_limit_int > 268435456 /* = … Read more

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