How to fix this error?
-
Hello WP guys!
I was following a course of developing theme in WP,
installed bootstrap css and js folder inside the theme folder
All steps since starting going ok, till reached to add some code in the file: functions.php
===========
<?phpfunction load_css()
{wp_register_style(‘bootstrap’, get_template_directory_uri(). ‘/css/bootstrap.min.css’, array(), false, ‘all’ );
wp_enqueue_style(‘bootstrap’);}
add_action(‘wp_enqueue_scripts’, ‘load_css’);function load_js()
{
wp_enqueue_scripts(‘jquery’);
wp_register_script(‘bootstrap’, get_template_directory_uri() . ‘/js/bootstrap.min.js’, ‘jquery’, false, true);
wp_enqueue_script(‘bootstrap’);
}
add_action(‘wp_enqueue_scripts’, ‘load_js’);
===========When loaded the main (home page) this result was displayed:
———————-
Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 262144 bytes) in C:\laragon\www\test\wp-includes\cache.php on line 544Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 262144 bytes) in Unknown on line 0
———————-I’m using windows 10, 64 bit,
Local server: laragonAs per the following the course on Youtube, saying that the main page will show as a blank page, why I am seeing these errors?
Please help how to solve this issue,
Thanks,
- The topic ‘How to fix this error?’ is closed to new replies.