Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 71 bytes)

前端 未结 3 780
悲哀的现实
悲哀的现实 2020-12-05 06:32

I\'m getting an error when I try to open one of my dashboard pages in my wordpress script

The error message is as follows:

Fatal error: Allowe

3条回答
  •  萌比男神i
    2020-12-05 07:20

    I had this problem. I searched the internet, took all advices, changes configurations, but the problem is still there. Finally with the help of the server administrator, he found that the problem lies in MySQL database column definition. one of the columns in the a table was assigned to 'Longtext' which leads to allocate 4,294,967,295 bites of memory. It seems working OK if you don't use MySqli prepare statement, but once you use prepare statement, it tries to allocate that amount of memory. I changed the column type to Mediumtext which needs 16,777,215 bites of memory space. The problem is gone. Hope this help.

提交回复
热议问题