In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
This article mainly introduces ThinkPHP prompt error Fatal error: Allowed memory size how to do, the article is very detailed, has a certain reference value, interested friends must read!
The detailed analysis is as follows:
If your ThinkPHP prompts you: fatal error: Allowed memory size, I don't think it's a good solution according to what the Internet says about increasing server memory usage. There's no need for trouble. This is because ThinkPHP itself has bugs.
Fatal error: Allowed memory size of 1073741824 bytes exhausted (tried to allocate 523800 bytes) in /var/www.example.com/ThinkPHP/Lib/Template/ThinkTemplate.class.php on line 265.
If your error message is the same as mine, it also tells you that there is an error in the file ThinkTemplate.class.php, that is, it appears in an endless loop when parsing its own tag include or other tags, resulting in insufficient server memory for this endless loop.
Solution:
1) Find the source of the problem. In the template page where the error (Fatal error: Allowed memory size) occurs, find the tag (include/if/empty, etc.) of ThinkPHP you used, delete the tests one by one, and see which tag caused it;
Replace the tags you use with native PHP, such as:
include './ Public/home/js/Company/companyJS.html';
If it is empty, you can refer to the above:
if(empty($a)){ echo 'a is empty'} The above is "Fatal error: Allowed memory size in ThinkPHP" All the contents of this article, thank you for reading! Hope to share the content to help everyone, more relevant knowledge, welcome to pay attention to the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.