I am trying to help install a third party theme onto a WordPress installation and I get these three error codes when I click "live preview" or "activate" the theme:
Warning: session_start() [function.session-start]: open(/var/chroot/home/content/66/5232766/tmp/sess_1n0eifrftmjfu96hop17kihi35, O_RDWR) failed: No such file or directory (2) in /home/content/66/5232766/html/wp-content/themes/Drlawyer/functions.php on line 461
Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/content/66/5232766/html/wp-content/themes/Drlawyer/functions.php:461) in /home/content/66/5232766/html/wp-content/themes/Drlawyer/functions.php on line 461
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/content/66/5232766/html/wp-content/themes/Drlawyer/functions.php:461) in /home/content/66/5232766/html/wp-content/themes/Drlawyer/functions.php on line 461
How can I fix these things?
function cp_admin_init() { if (!session_id()) session_start(); }I added this code to the above code:ini_set('session.save_path', 'tmp');Now it is giving me this error code only in the dashboard and not on the actual site:Warning: session_start() [function.session-start]: open(tmp/sess_qrj5st7q63acsjrnsda545p6j2, O_RDWR) failed: No such file or directory (2) in /home/content/66/5232766/html/wp-content/themes/Drlawyer/functions.php on line 462- MikeWarning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/content/66/5232766/html/wp-content/themes/Drlawyer/functions.php:462) in /home/content/66/5232766/html/wp-content/themes/Drlawyer/functions.php on line 462- Mike