Tagged: child theme, fatal error
-
AuthorPosts
-
December 21, 2013 at 8:29 am #202823
I am getting the following fatal error, how can I fix it?
Fatal error: Allowed memory size of 41943040 bytes exhausted (tried to allocate 30720 bytes) in /home/redteam/public_html/wp-includes/SimplePie/Item.php on line 278
Also, I have a child theme for enfold. I would like to make some css changes, but have never done so with a child theme so am confused on how to do it? How do I make these changes, but not have them change if I update the site at a later time?
December 21, 2013 at 9:05 am #202830Hey lanikita!
1) You can add your custom styling code to the style.css file of your child theme. It will overwrite all parent theme styles.
2) The error indicates that your php memory is too low. Please increase the allocated php memory to 128M. http://www.wpbeginner.com/wp-tutorials/fix-wordpress-memory-exhausted-error-increase-php-memory/
Regards,
PeterDecember 21, 2013 at 9:32 am #202833thanks for the info.
What line do I add define(‘WP_MEMORY_LIMIT’, ‘128M’); in the wp-config.php file?
I tried adding define(‘WP_MEMORY_LIMIT’, ‘128M’); and got different error. Can you tell me with sample code? thanks.
December 21, 2013 at 10:30 am #202845Hey!
The code isn,’t correct. The ‘ character needs to be a ‘ – use following code
define('WP_MEMORY_LIMIT', '128M');
There’re some constants defined in wp-confug.php. Just insert it below another define(…) line.
Regards,
PeterDecember 21, 2013 at 11:22 am #202861Thanks, it looks like that fixed it. I had a few more questions
1.Also, for some reason my blog does not show the Full Easy Slider at the top of the page even though I have set it to on the Page in the Advanced Layout Editor. Is there a way to have the Full Easy Slider also on the blog, so it is consistent with my other pages.
link – http://teamredlands.com/team-news/
2. how can I change the side bar width so it is 300 pixels wide.
December 21, 2013 at 1:46 pm #202873Hey!
1) If you selected this page as “blog” page (Enfold > Theme Options) you can’t display a slider because a special blog template will be used for the blog page. However you can deselect the page (or select another page for the blog) and then add a blog element to the “Team News” page. The Team News page will then show the advanced layout – including the slider + blog element.
2) You can’t set the width of the sidebar to exactly 300px however you can change the layout by changing the container units class. See: https://kriesi.at/support/topic/changing-the-sidebar-width-and-keeping-it-responsive/
Regards,
Peter -
AuthorPosts
- The topic ‘Fatal error’ is closed to new replies.