#1 2020-12-22 15:50:18

lexvo
Member
2019-08-05
9

error while trying to exclude folders from syncing

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

 

#2 2020-12-22 20:58:52

erAck
Only trying to help
2015-09-06
2196

Re: error while trying to exclude folders from syncing

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');
?>

Running Piwigo at https://erack.net/gallery/

Offline

 

#3 2020-12-22 21:06:40

lexvo
Member
2019-08-05
9

Re: error while trying to exclude folders from syncing

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:

Code:

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

 

#4 2020-12-23 00:30:00

erAck
Only trying to help
2015-09-06
2196

Re: error while trying to exclude folders from syncing

That looks unrelated and a different problem.


Running Piwigo at https://erack.net/gallery/

Offline

 

#5 2020-12-23 08:14:47

lexvo
Member
2019-08-05
9

Re: error while trying to exclude folders from syncing

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

 

#6 2020-12-23 08:59:02

nicolas
Former Piwigo Team
2004-12-30
1233

Re: error while trying to exclude folders from syncing

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

 

#7 2020-12-23 11:50:58

erAck
Only trying to help
2015-09-06
2196

Re: error while trying to exclude folders from syncing

Indeed, additional trailing blank lines after the closing ?> may cause exactly that. I'd rather remove those blank lines though..


Running Piwigo at https://erack.net/gallery/

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2025 · Contact