Hello/Hi/Greetings,
I am trying to exclude subfolders from syncing. I have created a config.inc.php file under local/config with a line:
$conf['sync_exclude_folders'] = array('directory1','directory2');
However, when I start the web interface, I get the following error
$conf['sync_exclude_folders'] = array('Diversen','Eten_en_drinken','Familie_en_vrienden','Whisky','Zwart_wit');
Warning: session_set_save_handler(): Cannot change save handler when headers already sent in /share/CACHEDEV1_DATA/Web/piwigo/include/functions_session.inc.php on line 24
Warning: ini_set(): Headers already sent. You cannot change the session module's ini settings at this time in /share/CACHEDEV1_DATA/Web/piwigo/include/functions_session.inc.php on line 29
Warning: ini_set(): Headers already sent. You cannot change the session module's ini settings at this time in /share/CACHEDEV1_DATA/Web/piwigo/include/functions_session.inc.php on line 30
Warning: ini_set(): Headers already sent. You cannot change the session module's ini settings at this time in /share/CACHEDEV1_DATA/Web/piwigo/include/functions_session.inc.php on line 31
Warning: ini_set(): Headers already sent. You cannot change the session module's ini settings at this time in /share/CACHEDEV1_DATA/Web/piwigo/include/functions_session.inc.php on line 32
Warning: session_name(): Cannot change session name when headers already sent in /share/CACHEDEV1_DATA/Web/piwigo/include/functions_session.inc.php on line 35
Warning: session_set_cookie_params(): Cannot change session cookie parameters when headers already sent in /share/CACHEDEV1_DATA/Web/piwigo/include/functions_session.inc.php on line 36
Warning: session_start(): Cannot start session when headers already sent in /share/CACHEDEV1_DATA/Web/piwigo/include/common.inc.php on line 141
Warning: Cannot modify header information - headers already sent by (output started at /share/CACHEDEV1_DATA/Web/piwigo/local/config/config.inc.php:1) in /share/CACHEDEV1_DATA/Web/piwigo/include/page_header.php on line 86
Am I overlooking something?
Offline
You forgot that it is a file to be interpreted by PHP and omitted the <?php ... ?> tags so the content is displayed literally. Instead of just one line it should be three,
<?php $conf['sync_exclude_folders'] = array('Diversen','Eten_en_drinken','Familie_en_vrienden','Whisky','Zwart_wit'); ?>
Offline
erAck wrote:
You forgot that it is a file to be interpreted by PHP and omitted the <?php ... ?> tags so the content is displayed literally. Instead of just one line it should be three,
Code:
<?php $conf['sync_exclude_folders'] = array('Diversen','Eten_en_drinken','Familie_en_vrienden','Whisky','Zwart_wit'); ?>
Thank you, that takes me a step further. However I still get warnings:
Warning: session_set_save_handler(): Cannot change save handler when headers already sent in /share/CACHEDEV1_DATA/Web/piwigo/include/functions_session.inc.php on line 24 Warning: ini_set(): Headers already sent. You cannot change the session module's ini settings at this time in /share/CACHEDEV1_DATA/Web/piwigo/include/functions_session.inc.php on line 29 Warning: ini_set(): Headers already sent. You cannot change the session module's ini settings at this time in /share/CACHEDEV1_DATA/Web/piwigo/include/functions_session.inc.php on line 30 Warning: ini_set(): Headers already sent. You cannot change the session module's ini settings at this time in /share/CACHEDEV1_DATA/Web/piwigo/include/functions_session.inc.php on line 31 Warning: ini_set(): Headers already sent. You cannot change the session module's ini settings at this time in /share/CACHEDEV1_DATA/Web/piwigo/include/functions_session.inc.php on line 32 Warning: session_name(): Cannot change session name when headers already sent in /share/CACHEDEV1_DATA/Web/piwigo/include/functions_session.inc.php on line 35 Warning: session_set_cookie_params(): Cannot change session cookie parameters when headers already sent in /share/CACHEDEV1_DATA/Web/piwigo/include/functions_session.inc.php on line 36 Warning: session_start(): Cannot start session when headers already sent in /share/CACHEDEV1_DATA/Web/piwigo/include/common.inc.php on line 141 Warning: Cannot modify header information - headers already sent by (output started at /share/CACHEDEV1_DATA/Web/piwigo/local/config/config.inc.php:4) in /share/CACHEDEV1_DATA/Web/piwigo/include/page_header.php on line 86
I think something is still missing.
Offline
That looks unrelated and a different problem.
Offline
erAck wrote:
That looks unrelated and a different problem.
Well, the warnings disappear when I remove the config.inc.php file. I'll look further.
Offline
lexvo wrote:
erAck wrote:
That looks unrelated and a different problem.
Well, the warnings disappear when I remove the config.inc.php file. I'll look further.
Remove the line that contains "?>". The explanation is on php documentation if you care about it.
There are probably invisible characters (spaces, carriage return, ...) after that line.
Offline
Indeed, additional trailing blank lines after the closing ?> may cause exactly that. I'd rather remove those blank lines though..
Offline