Requesting some help please :)

Discussion in 'Scripts, 3rd Party Apps, and Programming' started by no2nsa, Aug 16, 2014.

  1. no2nsa

    no2nsa Member

    Messages:
    39
    Likes Received:
    4
    Trophy Points:
    8
    Anyone who knows about Wordpress please could you help me out here. I've installed a new theme and when I view the homepage I'm getting this error code.
    Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 72 bytes) in/home/no2nsax3/public_html/blog/wp-includes/cache.phpon line569

    I've checked inside the cache.phpon file and located line 569 and found this code here.
    $data = clone $data;

    The other code content around it is this look.
    Code:
        /**
         * Sets the data contents into the cache
         *
         * The cache contents is grouped by the $group parameter followed by the
         * $key. This allows for duplicate ids in unique groups. Therefore, naming of
         * the group should be used with care and should follow normal function
         * naming guidelines outside of core WordPress usage.
         *
         * The $expire parameter is not used, because the cache will automatically
         * expire for each time a page is accessed and PHP finishes. The method is
         * more for cache plugins which use files.
         *
         * @since 2.0.0
         *
         * @param int|string $key What to call the contents in the cache
         * @param mixed $data The contents to store in the cache
         * @param string $group Where to group the cache contents
         * @param int $expire Not Used
         * @return bool Always returns true
         */
        function set( $key, $data, $group = 'default', $expire = 0 ) {
            if ( empty( $group ) )
                $group = 'default';
    
            if ( $this->multisite && ! isset( $this->global_groups[ $group ] ) )
                $key = $this->blog_prefix . $key;
    
            if ( is_object( $data ) )
                $data = clone $data;
    
            $this->cache[$group][$key] = $data;
            return true;
        }
    This error is only appearing on the Homepage of my website please could someone help :(
    The theme I'm trying to use is this one >http://athemes.com/theme/wp-metro/
     
  2. ilindust

    ilindust New Member

    Messages:
    10
    Likes Received:
    1
    Trophy Points:
    3
    If you're still having this issue I have a few possible solutions. If one doesn't work, go on to the next.

    1. Check if any plugin you have could be interfering with theme. Turn them off and if the problem is gone, turn them on one by one to see what's the cause.
    2. Go into your wp-config.php file and add the following line:
    define('WP_MEMORY_LIMIT', '64M');
    3. Go into your .htaccess file and add the following line:
    php_value memory_limit 64M
    4. Ask host about it

    If there was access to PHP.INI file then you could edit that too, but i don't think access is allowed.
    If changes 2 or 3 cause your site to crash or have issues, simply remove the code.

    Hope this helps.
     

Share This Page