Control Web Panel

WebPanel => PHP => Topic started by: agharaafat on August 12, 2018, 11:46:59 AM

Title: Error with PHP
Post by: agharaafat on August 12, 2018, 11:46:59 AM
Hello,
i try to transfer from Kloxo-mr 7 to cwp7pro.
now i have cwp7pro with apache+nginx+virnish and php 7.2

after uploaded wordpress backup and restore it i got this error in all wordpress websites.

Code: [Select]
Warning: session_start(): open(\\\\\\\\/sess_fd71023043d07f49877523683d5d3f00, O_RDWR) failed: No such file or directory (2) in /dir.file.php on line 62

Warning: session_start(): Failed to read session data: files (path: \\\\\\\\) in /dir.file.php on line 62

Warning: Cannot modify header information - headers already sent by (output started at //dir.file.php on line 1219

what's correct session path dir for domain?

and what's wrong with headers?
Title: Re: Error with PHP
Post by: bullten on August 12, 2018, 12:29:06 PM
What is the path defined here /dir.file.php on line 62

Usually it is /tmp
Title: Re: Error with PHP
Post by: aidinmc on January 12, 2019, 09:35:19 PM
Those aren't error, those are warning, you can hide warnings by this code:
Code: [Select]
error_reporting(E_ERROR | E_PARSE);also you can turn off wordpress debugger in wp-config.php , replace this code
Code: [Select]
define( 'WP_DEBUG', true );with
Code: [Select]
define( 'WP_DEBUG', false );