Categories
Uncategorized

ZWNBSP meaning.

ZWNBSP is Unicode character ZERO WIDTH NO-BREAK SPACE also known as BOM.

The word joiner (WJ) is a format character in Unicode used to indicate that word separation should not occur at a position, when using scripts that do not use explicit spacing. It is encoded since Unicode version 3.2 (released in 2002) as U+2060 WORD JOINER (HTML ⁠ · ⁠). The word joiner does not produce any space and prohibits a line break at its position.

The word joiner replaces the zero width no-break space (ZWNBSP), a deprecated use of the Unicode character at code point U+FEFF. Character U+FEFF is intended for use as a Byte Order Mark (BOM) at the start of a file. However, if encountered elsewhere, it should, according to Unicode, be treated as a “zero width no-break space”. The deliberate use of U+FEFF for this purpose is deprecated as of Unicode 3.2, with the word joiner strongly preferred.

Categories
Uncategorized

How to fix Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 96 bytes) in

Once i visited my site and found it’s broken and shows following error:

Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 96 bytes) in /home/globalre/globalrecruiters.com.ua/www/wp-content/themes/Avada/includes/lib/inc/class-fusion-settings.php on line 170

Let’s open wp-includes/default-constants.php and see default constants:

function wp_initial_constants() {
global $blog_id;

/**#@+
 * Constants for expressing human-readable data sizes in their respective number of bytes.
 *
 * @since 4.4.0
 */
define( 'KB_IN_BYTES', 1024 );
define( 'MB_IN_BYTES', 1024 * KB_IN_BYTES );
define( 'GB_IN_BYTES', 1024 * MB_IN_BYTES );
define( 'TB_IN_BYTES', 1024 * GB_IN_BYTES );

define( 'WP_MEMORY_LIMIT', '128M' );
/**#@-*/

// Start of run timestamp.
if ( ! defined( 'WP_START_TIMESTAMP' ) ) {
    define( 'WP_START_TIMESTAMP', microtime( true ) );

Now let’s change it and set WP_MEMORY_LIMIT to 128M.

function wp_initial_constants() {
global $blog_id;

/**#@+
 * Constants for expressing human-readable data sizes in their respective number of bytes.
 *
 * @since 4.4.0
 */
define( 'KB_IN_BYTES', 1024 );
define( 'MB_IN_BYTES', 1024 * KB_IN_BYTES );
define( 'GB_IN_BYTES', 1024 * MB_IN_BYTES );
define( 'TB_IN_BYTES', 1024 * GB_IN_BYTES );

define( 'WP_MEMORY_LIMIT', '128M' );
/**#@-*/

// Start of run timestamp.
if ( ! defined( 'WP_START_TIMESTAMP' ) ) {
    define( 'WP_START_TIMESTAMP', microtime( true ) );
}