Sengoli sa Lingoloa
Mokhoa oa ho rarollaWordpressTlhokomeliso: session_start(): Na ha e khone ho romela "cache limiter" ea nako e hlahang?
Chen WeiliangHa u leka sehlooho sa WP khomphuteng ea lehae, molaetsa ona oa temoso oa PHP o hlahile:
Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at D:\xampp\htdocs\wp\ceshimuban\wp-content\plugins\wordpress-seo\frontend\class-json-ld.php:121) in D:\xampp\htdocs\wp\ceshimuban\wp-content\plugins\ad-inserter\class.php(360) : eval()'d code on line 14
bothata ba phetolelo
警告:session_start():无法发送会话缓存限制器 - 已发送的头文件(输出开始于D:\ xampp \ htdocs \ wp \ ceshimuban \ wp-content \ plugins \ wordpress-seo \ frontend \ class-json-ld.php: (360):eval()在第14行的d代码(第121行)在D:\ xampp \ htdocs \ wp \ ceshimuban \ wp-content \ plugins \ ad-inserter \ class.php
Tharollo
Batho ba bang ba rialo hobanesession_start();
statement, khoutu e 'ngoe ea html e teng, empa
Empa batho ba bang ba re oa hae session_start();
E se e entsoe pele.
Batho ba bang ba re ha ho molemo ho beha tsela ea ho boloka lenaneo, 'me hoa hlokahala ho fetola faele ea php.ini:session.save_path = "C:/phpsession"
(Tsela e ka morao e behiloe ke uena, 'me u netefatse hore e teng)
- Faele ea php.ini ka kakaretso e lokela ho ba tlas'a tsamaiso ea disk/Windows directory
LinuxLaela ho botsa tsela ea faele ea tlhophiso ea PHP
Taelo ea Linux e botsa sebaka sa polokelo ea faele ea php.ini ea PHP.
Etsa tlas'a khetla:
php -v / -name php.ini
kapa
find / -name php.ini
Se latelang keChen WeiliangKa mor'a tlhahlobo, tharollo ea ho qetela.
- Fetola faele ea php.ini ho seva sa Linux:
session.auto_start = 0
bakeng sasession.auto_start = 1
Hope Chen Weiliang Blog ( https://www.chenweiliang.com/ ) e arolelane "Mokhoa oa ho rarolla Tlhokomeliso: session_start(): Na ha u khone ho romela moeli oa cache oa nako ka WordPress? , ho u thusa.
Rea u amohela ho arolelana sehokelo sa sengoloa sena:https://www.chenweiliang.com/cwl-568.html
Rea u amohela ho mocha oa Telegraph oa blog ea Chen Weiliang ho fumana lintlha tsa morao-rao!
📚 Tataiso ena e na le boleng bo boholo, 🌟Ona ke monyetla o sa tloaelehang, se ke oa o fetoa! ⏰⌛💨
Share le rata haeba u rata!
Ho arolelana le lintho tseo u li ratang ke khothatso ea rona e tsoelang pele!