Sengoli sa Lingoloa
Mokhoa oa ho rarolla phoso ea WordPress "Temoso: session_start(): Na e ke ke ea romela moeli oa cache ea session"?
Ha Chen Weiliang a ne a leka sehlooho sa WP khomphuteng ya hae ya lehae, o ile a kopana le temoso e latelang ya PHP:
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
Tharollo ea ho qetela eo Chen Weiliang a e fumaneng kamora liteko ke ena .
- Fetola faele ea php.ini ho seva sa Linux:
session.auto_start = 0bakeng sasession.auto_start = 1
Re tšepa hore sengoloa se reng "Mokhoa oa ho rarolla phoso ea WordPress 'Temoso: session_start(): Na ha e khone ho romela moeli oa cache ea session'?" se arolelanoeng ho blog ea Chen Weiliang ( https://www.chenweiliang.com/ ) se tla u thusa.
Ikutloe u lokolohile ho arolelana sehokelo sa sengoloa sena: https://www.chenweiliang.com/cwl-568.html
