• I cannot access my websites dashboard. I can see this when I want to access my dashboard.

    Fatal error: Allowed memory size of 176160768 bytes exhausted (tried to allocate 87 bytes) in /home/itiwsbslws1/public_html/wp-includes/category.php on line 347

    How can I solve this problem?

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi, @answersmode

    To solve this problem you have to increase memory limit
    First, you need to edit the wp-config.php file on your WordPress site. It is located in your WordPress site’s root folder, and you will need to use an FTP client or file manager in your web hosting control panel.
    Next, you need to paste the following code in wp-config.php the file just before the line that says ‘That’s all, stop editing! Happy blogging.’

    define( 'WP_MEMORY_LIMIT', '256M' );

    Hope this will Help.

    Thanks.

    Thread Starter answersmode

    (@answersmode)

    I don’t know, How to locate site root folder?
    here is my wp-config.php file. Please tell me where I will edit?

    <?php
    /**
     * The base configuration for WordPress
     *
     * The wp-config.php creation script uses this file during the
     * installation. You don't have to use the web site, you can
     * copy this file to "wp-config.php" and fill in the values.
     *
     * This file contains the following configurations:
     *
     * * MySQL settings
     * * Secret keys
     * * Database table prefix
     * * ABSPATH
     *
     * @link https://codex.www.ads-software.com/Editing_wp-config.php
     *
     * @package WordPress
     */
    
    // ** MySQL settings - You can get this info from your web host ** //
    /** The name of the database for WordPress */
    define('WP_CACHE', true); //Added by WP-Cache Manager
    define( 'WPCACHEHOME', '/home/itiwsbslws1/public_html/wp-content/plugins/wp-super-cache/' ); //Added by WP-Cache Manager
    define('DB_NAME', 'xxxx');
    
    /** MySQL database username */
    define('DB_USER', 'xxxx');
    
    /** MySQL database password */
    define('DB_PASSWORD', 'xxxx');
    
    /** MySQL hostname */
    define('DB_HOST', 'localhost');
    
    /** Database Charset to use in creating database tables. */
    define('DB_CHARSET', 'utf8mb4');
    
    /** The Database Collate type. Don't change this if in doubt. */
    define('DB_COLLATE', '');
    
    /**#@+
     * Authentication Unique Keys and Salts.
     *
     * Change these to different unique phrases!
     * You can generate these using the {@link https://api.www.ads-software.com/secret-key/1.1/salt/ www.ads-software.com secret-key service}
     * You can change these at any point in time to invalidate all existing cookies. This will force all users to have to log in again.
     *
     * @since 2.6.0
     */
    define('AUTH_KEY',         'auth key');
    define('SECURE_AUTH_KEY',  'auth key');
    define('LOGGED_IN_KEY',    'auth key');
    define('NONCE_KEY',        'auth key');
    define('AUTH_SALT',        'auth key');
    define('SECURE_AUTH_SALT', 'auth key');
    define('LOGGED_IN_SALT',   'auth key');
    define('NONCE_SALT',       'auth key');
    
    /**#@-*/
    
    /**
     * WordPress Database Table prefix.
     *
     * You can have multiple installations in one database if you give each
     * a unique prefix. Only numbers, letters, and underscores please!
     */
    $table_prefix  = 'wpub_';
    
    /**
     * For developers: WordPress debugging mode.
     *
     * Change this to true to enable the display of notices during development.
     * It is strongly recommended that plugin and theme developers use WP_DEBUG
     * in their development environments.
     *
     * For information on other constants that can be used for debugging,
     * visit the Codex.
     *
     * @link https://codex.www.ads-software.com/Debugging_in_WordPress
     */
    define('WP_DEBUG', false);
    
    /* That's all, stop editing! Happy blogging. */
    
    /** Absolute path to the WordPress directory. */
    if ( !defined('ABSPATH') )
    	define('ABSPATH', dirname(__FILE__) . '/');
    
    /** Sets up WordPress vars and included files. */
    require_once(ABSPATH . 'wp-settings.php');
    

    Hello @answersmode

    Add this to the very bottom, right before the line that says, “Happy Blogging”.

    Thanks.

    @answersmode you MUST NEVER post the wp-config.php data publicly, you’re exposing your WP site to the public. please remove that file.

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    @answersmode, please change your database password immediately.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Allowed memory size of 176160768 bytes exhausted (tried to allocate 87 bytes)’ is closed to new replies.