Hi!
Recently I installed dolibarr on my website which is hosted by godaddy and is on a shared server…
There was issues with my server so they moved me over to a new one and since then I’ve had tons of issues with dolibarr. I reinstalled everything but I cant get rid of the following errors
Warning: session_start() [function.session-start]: open(/var/chroot/home/content/88/3724188/tmp/sess_s95nvtiid2rao09agai5tin173, O_RDWR) failed: No such file or directory (2) in /home/content/88/3724188/html/open/main.inc.php on line 166
Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/content/88/3724188/html/open/main.inc.php:166) in /home/content/88/3724188/html/open/main.inc.php on line 166
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/content/88/3724188/html/open/main.inc.php:166) in /home/content/88/3724188/html/open/main.inc.php on line 166
Warning: Cannot modify header information - headers already sent by (output started at /home/content/88/3724188/html/open/main.inc.php:166) in /home/content/88/3724188/html/open/index.php on line 49
Warning: Unknown: open(/var/chroot/home/content/88/3724188/tmp/sess_s95nvtiid2rao09agai5tin173, O_RDWR) failed: No such file or directory (2) in Unknown on line 0
Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct () in Unknown on line 0
now if I comment out line 161 to 174 in main.inc.php all the issues stop but the following code which i temporarily omitted
// Init session. Name of session is specific to Dolibarr instance.
$prefix=dol_getprefix();
$sessionname=‘DOLSESSID_’.$prefix;
$sessiontimeout=‘DOLSESSTIMEOUT_’.$prefix;
if (! empty($_COOKIE[$sessiontimeout])) ini_set(‘session.gc_maxlifetime’,$_COOKIE[$sessiontimeout]);
session_name($sessionname);
session_start();
if (ini_get(‘register_globals’)) // To solve bug in using $_SESSION
{
foreach ($_SESSION as $key=>$value)
{
if (isset($GLOBALS[$key])) unset($GLOBALS[$key]);
}
}
controls the session and without it after every action in dolibarr i have to re login…
could the above issues have anything to do with my dns a records? the only reason i ask is because when i was moved to the new servers i noticed I had no tmp and temp in my A (host) records which i had before…
Thanks in advance!!!