sympa-community / sympa

Sympa, Mailing List Management Software
https://www.sympa.community/sympa
GNU General Public License v2.0
248 stars 97 forks source link

template my.tt2 don't show lists when included in home.tt2 #60

Closed wouldsmina closed 6 years ago

wouldsmina commented 7 years ago

Hello, I need to show "my lists" on home page (into adiv) but they systematically show "No subscription.". When home page is called [% which %] is empty

OS : DEBIAN 9 SYMPA 6.2.16 from debian package repository

Portion of my home.tt2 :

...
[% IF user.email  %]
 <article class="small-12 medium-4 columns home">
    <div>
      [% PROCESS my.tt2 %]
    </div>
  </article>
[% END %]
...

logs (level 4) : my lists :

Sep 22 11:05:33 listes wwsympa[9852]: debug3 Sympa::List::get_lists() order ; name_list
Sep 22 11:05:33 listes wwsympa[9852]: debug3 Sympa::List::get_lists() order ; name_list
Sep 22 11:05:33 listes wwsympa[9852]: debug3 Sympa::Database::do_prepared_query() Will perform query "SELECT list_admin FROM admin_table WHERE robot_admin = ? AND user_admin = ? AND role_admin = ?"
Sep 22 11:05:33 listes wwsympa[9852]: debug3 Sympa::Database::do_prepared_query() Will perform query "SELECT list_admin FROM admin_table WHERE robot_admin = ? AND user_admin = ? AND role_admin = ?"
Sep 22 11:05:33 listes wwsympa[9852]: debug2 Sympa::List::new(test, listes.xxxxx.xx, skip_name_check/skip_sync_admin/filter)
Sep 22 11:05:33 listes wwsympa[9852]: debug2 Sympa::List::new(test, listes.xxxxx.xx, skip_name_check/skip_sync_admin/filter)
Sep 22 11:05:33 listes wwsympa[9852]: debug2 Sympa::List::load(Sympa::List <test@listes.xxxxx.xx>, test, listes.xxxxx.xx, ...)
Sep 22 11:05:33 listes wwsympa[9852]: debug2 Sympa::List::load(Sympa::List <test@listes.xxxxx.xx>, test, listes.xxxxx.xx, ...)
Sep 22 11:05:33 listes wwsympa[9852]: debug3 Sympa::List::_load_stats_file(/var/lib/sympa/list_data/test/stats)
Sep 22 11:05:33 listes wwsympa[9852]: debug3 Sympa::List::_load_stats_file(/var/lib/sympa/list_data/test/stats)
Sep 22 11:05:33 listes wwsympa[9852]: debug2 Sympa::List::get_lists(listes.xxxxx.xx, filter)
Sep 22 11:05:33 listes wwsympa[9852]: debug2 Sympa::List::get_lists(listes.xxxxx.xx, filter)
Sep 22 11:05:33 listes wwsympa[9852]: debug3 Sympa::List::get_lists() filter ! ($list->{"admin"}{"status"} eq "closed" || $list->{"admin"}{"status"} eq "family_closed"); NOT (status_list = 'closed' OR status_list = 'family_closed')
Sep 22 11:05:33 listes wwsympa[9852]: debug3 Sympa::List::get_lists() filter ! ($list->{"admin"}{"status"} eq "closed" || $list->{"admin"}{"status"} eq "family_closed"); NOT (status_list = 'closed' OR status_list = 'family_closed')
Sep 22 11:05:33 listes wwsympa[9852]: debug3 Sympa::List::get_lists() order ; name_list
Sep 22 11:05:33 listes wwsympa[9852]: debug3 Sympa::List::get_lists() order ; name_list
Sep 22 11:05:33 listes wwsympa[9852]: debug3 Sympa::Database::do_prepared_query() Will perform query "SELECT list_admin FROM admin_table WHERE robot_admin = ? AND user_admin = ? AND role_admin = ?"
Sep 22 11:05:33 listes wwsympa[9852]: debug3 Sympa::Database::do_prepared_query() Will perform query "SELECT list_admin FROM admin_table WHERE robot_admin = ? AND user_admin = ? AND role_admin = ?"
Sep 22 11:05:33 listes wwsympa[9852]: debug2 main::check_param_out() [robot listes.xxxxx.xx] [session 29732301565425] [client 192.168.0.1] [user xxxx.xxxx@xxxx.xx]
Sep 22 11:05:33 listes wwsympa[9852]: debug2 main::check_param_out() [robot listes.xxxxx.xx] [session 29732301565425] [client 192.168.0.1] [user xxxx.xxxx@xxxx.xx]
Sep 22 11:05:33 listes wwsympa[9852]: debug Sympa::Session::store()
Sep 22 11:05:33 listes wwsympa[9852]: debug Sympa::Session::store()
Sep 22 11:05:33 listes wwsympa[9852]: debug3 Sympa::Database::do_prepared_query() Will perform query "SELECT id_session FROM session_table WHERE prev_id_session = ?"
Sep 22 11:05:33 listes wwsympa[9852]: debug3 Sympa::Database::do_prepared_query() Will perform query "SELECT id_session FROM session_table WHERE prev_id_session = ?"
Sep 22 11:05:33 listes wwsympa[9852]: debug3 Sympa::Database::do_prepared_query() Will perform query "UPDATE session_table SET date_session = ?, remote_addr_session = ?, robot_session = ?, email_session = ?, start_date_session = ?, hit_session = ?, data_session = ? WHERE id_session = ? AND prev_id_session IS NOT NULL OR prev_id_session = ?"
Sep 22 11:05:33 listes wwsympa[9852]: debug3 Sympa::Database::do_prepared_query() Will perform query "UPDATE session_table SET date_session = ?, remote_addr_session = ?, robot_session = ?, email_session = ?, start_date_session = ?, hit_session = ?, data_session = ? WHERE id_session = ? AND prev_id_session IS NOT NULL OR prev_id_session = ?"
Sep 22 11:05:33 listes wwsympa[9852]: debug Sympa::Session::renew(id_session=29732301565425)
Sep 22 11:05:33 listes wwsympa[9852]: debug Sympa::Session::renew(id_session=29732301565425)
Sep 22 11:05:33 listes wwsympa[9852]: debug3 Sympa::Database::do_prepared_query() Will perform query "SELECT id_session FROM session_table WHERE prev_id_session = ?"
Sep 22 11:05:33 listes wwsympa[9852]: debug3 Sympa::Database::do_prepared_query() Will perform query "SELECT id_session FROM session_table WHERE prev_id_session = ?"
Sep 22 11:05:33 listes wwsympa[9852]: debug3 Sympa::Database::do_query() Will perform query "INSERT INTO session_table (id_session, prev_id_session, start_date_session, date_session, refresh_date_session, remote_addr_session, robot_session, email_session, hit_session, data_session) SELECT '80889355860585', id_session, start_date_session, date_session, 1506071133, '192.168.0.1', 'listes.xxxxx.xx', email_session, hit_session, data_session FROM session_table WHERE (id_session = '29732301565425' AND prev_id_session IS NOT NULL OR prev_id_session = '29732301565425') AND (remote_addr_session <> '192.168.0.1' OR refresh_date_session <= 1506071091)"
Sep 22 11:05:33 listes wwsympa[9852]: debug3 Sympa::Database::do_query() Will perform query "INSERT INTO session_table (id_session, prev_id_session, start_date_session, date_session, refresh_date_session, remote_addr_session, robot_session, email_session, hit_session, data_session) SELECT '80889355860585', id_session, start_date_session, date_session, 1506071133, '192.168.0.1', 'listes.xxxxx.xx', email_session, hit_session, data_session FROM session_table WHERE (id_session = '29732301565425' AND prev_id_session IS NOT NULL OR prev_id_session = '29732301565425') AND (remote_addr_session <> '192.168.0.1' OR refresh_date_session <= 1506071091)"
Sep 22 11:05:33 listes wwsympa[9852]: debug3 Sympa::Database::do_prepared_query() Will perform query "UPDATE session_table SET prev_id_session = NULL WHERE id_session = ?"
Sep 22 11:05:33 listes wwsympa[9852]: debug3 Sympa::Database::do_prepared_query() Will perform query "UPDATE session_table SET prev_id_session = NULL WHERE id_session = ?"
Sep 22 11:05:33 listes wwsympa[9852]: debug3 Sympa::Database::do_prepared_query() Will perform query "DELETE FROM session_table WHERE id_session = ? AND prev_id_session IS NULL"
Sep 22 11:05:33 listes wwsympa[9852]: debug3 Sympa::Database::do_prepared_query() Will perform query "DELETE FROM session_table WHERE id_session = ? AND prev_id_session IS NULL"
Sep 22 11:05:33 listes wwsympa[9852]: info Sympa::Session::renew() [robot listes.xxxxx.xx] [session 29732301565425] [client 192.168.0.1] [user xxxx.xxxx@xxxx.xx] new session 80889355860585
Sep 22 11:05:33 listes wwsympa[9852]: info Sympa::Session::renew() [robot listes.xxxxx.xx] [session 29732301565425] [client 192.168.0.1] [user xxxx.xxxx@xxxx.xx] new session 80889355860585
Sep 22 11:05:33 listes wwsympa[9852]: debug Sympa::Session::set_cookie(.xxxxx.xx, session, secure= )
Sep 22 11:05:33 listes wwsympa[9852]: debug Sympa::Session::set_cookie(.xxxxx.xx, session, secure= )
Sep 22 11:05:33 listes wwsympa[9852]: debug3 Sympa::search_fullpath(listes.xxxxx.xx, css.tt2, subdir)
Sep 22 11:05:33 listes wwsympa[9852]: debug3 Sympa::search_fullpath(listes.xxxxx.xx, css.tt2, subdir)
Sep 22 11:05:33 listes wwsympa[9852]: debug3 Sympa::get_search_path(listes.xxxxx.xx, lang_only, 1)
Sep 22 11:05:33 listes wwsympa[9852]: debug3 Sympa::get_search_path(listes.xxxxx.xx, lang_only, 1)
Sep 22 11:05:33 listes wwsympa[9852]: debug3 Sympa::get_search_path(listes.xxxxx.xx, subdir, web_tt2)
Sep 22 11:05:33 listes wwsympa[9852]: debug3 Sympa::get_search_path(listes.xxxxx.xx, subdir, web_tt2)
Sep 22 11:05:33 listes wwsympa[9852]: debug2 Sympa::List::new(test, listes.xxxxx.xx, )
Sep 22 11:05:33 listes wwsympa[9852]: debug2 Sympa::List::new(test, listes.xxxxx.xx, )
Sep 22 11:05:33 listes wwsympa[9852]: debug2 Sympa::List::load(Sympa::List <test@listes.xxxxx.xx>, test, listes.xxxxx.xx, ...)
Sep 22 11:05:33 listes wwsympa[9852]: debug2 Sympa::List::load(Sympa::List <test@listes.xxxxx.xx>, test, listes.xxxxx.xx, ...)
Sep 22 11:05:33 listes wwsympa[9852]: debug2 Sympa::Scenario::request_action(Sympa::List <test@listes.xxxxx.xx>, archive.web_access, md5, HASH, )
Sep 22 11:05:33 listes wwsympa[9852]: debug2 Sympa::Scenario::request_action(Sympa::List <test@listes.xxxxx.xx>, archive.web_access, md5, HASH, )
Sep 22 11:05:33 listes wwsympa[9852]: debug2 Sympa::Scenario::new()
Sep 22 11:05:33 listes wwsympa[9852]: debug2 Sympa::Scenario::new()
Sep 22 11:05:33 listes wwsympa[9852]: debug2 Sympa::Scenario::new()
Sep 22 11:05:33 listes wwsympa[9852]: debug2 Sympa::Scenario::new()
Sep 22 11:05:33 listes wwsympa[9852]: debug Sympa::Scenario::new() Unable to read file /var/lib/sympa/list_data/test/scenari/include.archive.web_access.header
Sep 22 11:05:33 listes wwsympa[9852]: debug Sympa::Scenario::new() Unable to read file /var/lib/sympa/list_data/test/scenari/include.archive.web_access.header
Sep 22 11:05:33 listes wwsympa[9852]: debug Sympa::Scenario::new() Unable to read file /etc/sympa/listes.xxxxx.xx/scenari/include.archive.web_access.header
Sep 22 11:05:33 listes wwsympa[9852]: debug Sympa::Scenario::new() Unable to read file /etc/sympa/listes.xxxxx.xx/scenari/include.archive.web_access.header
Sep 22 11:05:33 listes wwsympa[9852]: debug Sympa::Scenario::new() Unable to read file /etc/sympa/scenari/include.archive.web_access.header
Sep 22 11:05:33 listes wwsympa[9852]: debug Sympa::Scenario::new() Unable to read file /etc/sympa/scenari/include.archive.web_access.header
Sep 22 11:05:33 listes wwsympa[9852]: debug Sympa::Scenario::new() Unable to read file /usr/share/sympa/default/scenari/include.archive.web_access.header
Sep 22 11:05:33 listes wwsympa[9852]: debug Sympa::Scenario::new() Unable to read file /usr/share/sympa/default/scenari/include.archive.web_access.header
Sep 22 11:05:33 listes wwsympa[9852]: debug2 Sympa::Scenario::verify(HASH, true(), HASH, )
Sep 22 11:05:33 listes wwsympa[9852]: debug2 Sympa::Scenario::verify(HASH, true(), HASH, )

home:

Sep 22 11:06:04 listes wwsympa[9852]: info main::do_home() [robot listes.xxxxxxx.xx] [session 80889355860585] [client 192.168.0.1] [user xxxx.xxxx@xxxxxxx.xx]
Sep 22 11:06:04 listes wwsympa[9852]: info main::do_home() [robot listes.xxxxxxx.xx] [session 80889355860585] [client 192.168.0.1] [user xxxx.xxxx@xxxxxxx.xx]
Sep 22 11:06:04 listes wwsympa[9852]: debug2 Sympa::List::get_which(xxxx.xxxx@xxxxxxx.xx, listes.xxxxxxx.xx, owner)
Sep 22 11:06:04 listes wwsympa[9852]: debug2 Sympa::List::get_which(xxxx.xxxx@xxxxxxx.xx, listes.xxxxxxx.xx, owner)
Sep 22 11:06:04 listes wwsympa[9852]: debug2 Sympa::List::get_lists(listes.xxxxxxx.xx, filter)
Sep 22 11:06:04 listes wwsympa[9852]: debug2 Sympa::List::get_lists(listes.xxxxxxx.xx, filter)
Sep 22 11:06:04 listes wwsympa[9852]: debug3 Sympa::List::get_lists() filter ! ($list->{"admin"}{"status"} eq "closed" || $list->{"admin"}{"status"} eq "family_closed"); NOT (status_list = 'closed' OR status_list = 'family_closed')
Sep 22 11:06:04 listes wwsympa[9852]: debug3 Sympa::List::get_lists() filter ! ($list->{"admin"}{"status"} eq "closed" || $list->{"admin"}{"status"} eq "family_closed"); NOT (status_list = 'closed' OR status_list = 'family_closed')
Sep 22 11:06:04 listes wwsympa[9852]: debug3 Sympa::List::get_lists() order ; name_list
Sep 22 11:06:04 listes wwsympa[9852]: debug3 Sympa::List::get_lists() order ; name_list
Sep 22 11:06:04 listes wwsympa[9852]: debug3 Sympa::Database::do_prepared_query() Will perform query "SELECT list_admin FROM admin_table WHERE robot_admin = ? AND user_admin = ? AND role_admin = ?"
Sep 22 11:06:04 listes wwsympa[9852]: debug3 Sympa::Database::do_prepared_query() Will perform query "SELECT list_admin FROM admin_table WHERE robot_admin = ? AND user_admin = ? AND role_admin = ?"
Sep 22 11:06:04 listes wwsympa[9852]: debug2 Sympa::List::new(test, listes.xxxxxxx.xx, skip_name_check/skip_sync_admin/filter)
Sep 22 11:06:04 listes wwsympa[9852]: debug2 Sympa::List::new(test, listes.xxxxxxx.xx, skip_name_check/skip_sync_admin/filter)
Sep 22 11:06:04 listes wwsympa[9852]: debug2 Sympa::List::load(Sympa::List <test@listes.xxxxxxx.xx>, test, listes.xxxxxxx.xx, ...)
Sep 22 11:06:04 listes wwsympa[9852]: debug2 Sympa::List::load(Sympa::List <test@listes.xxxxxxx.xx>, test, listes.xxxxxxx.xx, ...)
Sep 22 11:06:04 listes wwsympa[9852]: debug2 Sympa::List::get_which(xxxx.xxxx@xxxxxxx.xx, listes.xxxxxxx.xx, editor)
Sep 22 11:06:04 listes wwsympa[9852]: debug2 Sympa::List::get_which(xxxx.xxxx@xxxxxxx.xx, listes.xxxxxxx.xx, editor)
Sep 22 11:06:04 listes wwsympa[9852]: debug2 Sympa::List::get_lists(listes.xxxxxxx.xx, filter)
Sep 22 11:06:04 listes wwsympa[9852]: debug2 Sympa::List::get_lists(listes.xxxxxxx.xx, filter)
Sep 22 11:06:04 listes wwsympa[9852]: debug3 Sympa::List::get_lists() filter ! ($list->{"admin"}{"status"} eq "closed" || $list->{"admin"}{"status"} eq "family_closed"); NOT (status_list = 'closed' OR status_list = 'family_closed')
Sep 22 11:06:04 listes wwsympa[9852]: debug3 Sympa::List::get_lists() filter ! ($list->{"admin"}{"status"} eq "closed" || $list->{"admin"}{"status"} eq "family_closed"); NOT (status_list = 'closed' OR status_list = 'family_closed')
Sep 22 11:06:04 listes wwsympa[9852]: debug3 Sympa::List::get_lists() order ; name_list
Sep 22 11:06:04 listes wwsympa[9852]: debug3 Sympa::List::get_lists() order ; name_list
Sep 22 11:06:04 listes wwsympa[9852]: debug3 Sympa::Database::do_prepared_query() Will perform query "SELECT list_admin FROM admin_table WHERE robot_admin = ? AND user_admin = ? AND role_admin = ?"
Sep 22 11:06:04 listes wwsympa[9852]: debug3 Sympa::Database::do_prepared_query() Will perform query "SELECT list_admin FROM admin_table WHERE robot_admin = ? AND user_admin = ? AND role_admin = ?"
Sep 22 11:06:04 listes wwsympa[9852]: debug2 Sympa::List::get_which(xxxx.xxxx@xxxxxxx.xx, listes.xxxxxxx.xx, member)
Sep 22 11:06:04 listes wwsympa[9852]: debug2 Sympa::List::get_which(xxxx.xxxx@xxxxxxx.xx, listes.xxxxxxx.xx, member)
Sep 22 11:06:04 listes wwsympa[9852]: debug2 Sympa::List::get_lists(listes.xxxxxxx.xx, filter)
Sep 22 11:06:04 listes wwsympa[9852]: debug2 Sympa::List::get_lists(listes.xxxxxxx.xx, filter)
Sep 22 11:06:04 listes wwsympa[9852]: debug3 Sympa::List::get_lists() filter ! ($list->{"admin"}{"status"} eq "closed" || $list->{"admin"}{"status"} eq "family_closed"); NOT (status_list = 'closed' OR status_list = 'family_closed')
Sep 22 11:06:04 listes wwsympa[9852]: debug3 Sympa::List::get_lists() filter ! ($list->{"admin"}{"status"} eq "closed" || $list->{"admin"}{"status"} eq "family_closed"); NOT (status_list = 'closed' OR status_list = 'family_closed')
Sep 22 11:06:04 listes wwsympa[9852]: debug3 Sympa::List::get_lists() order ; name_list
Sep 22 11:06:04 listes wwsympa[9852]: debug3 Sympa::List::get_lists() order ; name_list
Sep 22 11:06:04 listes wwsympa[9852]: debug3 Sympa::Database::do_prepared_query() Will perform query "SELECT list_subscriber FROM subscriber_table WHERE robot_subscriber = ? AND user_subscriber = ?"
Sep 22 11:06:04 listes wwsympa[9852]: debug3 Sympa::Database::do_prepared_query() Will perform query "SELECT list_subscriber FROM subscriber_table WHERE robot_subscriber = ? AND user_subscriber = ?"
Sep 22 11:06:04 listes wwsympa[9852]: debug3 Sympa::List::get_shared_moderated()
Sep 22 11:06:04 listes wwsympa[9852]: debug3 Sympa::List::get_shared_moderated()
Sep 22 11:06:04 listes wwsympa[9852]: debug3 Sympa::List::sort_dir_to_get_mod()
Sep 22 11:06:04 listes wwsympa[9852]: debug3 Sympa::List::sort_dir_to_get_mod()
Sep 22 11:06:04 listes wwsympa[9852]: debug2 main::check_param_out() [robot listes.xxxxxxx.xx] [session 80889355860585] [client 192.168.0.1] [user xxxx.xxxx@xxxxxxx.xx]
Sep 22 11:06:04 listes wwsympa[9852]: debug2 main::check_param_out() [robot listes.xxxxxxx.xx] [session 80889355860585] [client 192.168.0.1] [user xxxx.xxxx@xxxxxxx.xx]
Sep 22 11:06:04 listes wwsympa[9852]: debug Sympa::Session::store()
Sep 22 11:06:04 listes wwsympa[9852]: debug Sympa::Session::store()
Sep 22 11:06:04 listes wwsympa[9852]: debug3 Sympa::Database::do_prepared_query() Will perform query "SELECT id_session FROM session_table WHERE prev_id_session = ?"
Sep 22 11:06:04 listes wwsympa[9852]: debug3 Sympa::Database::do_prepared_query() Will perform query "SELECT id_session FROM session_table WHERE prev_id_session = ?"
Sep 22 11:06:04 listes wwsympa[9852]: debug3 Sympa::Database::do_prepared_query() Will perform query "UPDATE session_table SET date_session = ?, remote_addr_session = ?, robot_session = ?, email_session = ?, start_date_session = ?, hit_session = ?, data_session = ? WHERE id_session = ? AND prev_id_session IS NOT NULL OR prev_id_session = ?"
Sep 22 11:06:04 listes wwsympa[9852]: debug3 Sympa::Database::do_prepared_query() Will perform query "UPDATE session_table SET date_session = ?, remote_addr_session = ?, robot_session = ?, email_session = ?, start_date_session = ?, hit_session = ?, data_session = ? WHERE id_session = ? AND prev_id_session IS NOT NULL OR prev_id_session = ?"
Sep 22 11:06:04 listes wwsympa[9852]: debug Sympa::Session::renew(id_session=80889355860585)
Sep 22 11:06:04 listes wwsympa[9852]: debug Sympa::Session::renew(id_session=80889355860585)
Sep 22 11:06:04 listes wwsympa[9852]: debug3 Sympa::Database::do_prepared_query() Will perform query "SELECT id_session FROM session_table WHERE prev_id_session = ?"
Sep 22 11:06:04 listes wwsympa[9852]: debug3 Sympa::Database::do_prepared_query() Will perform query "SELECT id_session FROM session_table WHERE prev_id_session = ?"
Sep 22 11:06:04 listes wwsympa[9852]: debug3 Sympa::Database::do_query() Will perform query "INSERT INTO session_table (id_session, prev_id_session, start_date_session, date_session, refresh_date_session, remote_addr_session, robot_session, email_session, hit_session, data_session) SELECT '00035266018246', id_session, start_date_session, date_session, 1506071164, '192.168.0.1', 'listes.xxxxxxx.xx', email_session, hit_session, data_session FROM session_table WHERE (id_session = '80889355860585' AND prev_id_session IS NOT NULL OR prev_id_session = '80889355860585') AND (remote_addr_session <> '192.168.0.1' OR refresh_date_session <= 1506071133)"
Sep 22 11:06:04 listes wwsympa[9852]: debug3 Sympa::Database::do_query() Will perform query "INSERT INTO session_table (id_session, prev_id_session, start_date_session, date_session, refresh_date_session, remote_addr_session, robot_session, email_session, hit_session, data_session) SELECT '00035266018246', id_session, start_date_session, date_session, 1506071164, '192.168.0.1', 'listes.xxxxxxx.xx', email_session, hit_session, data_session FROM session_table WHERE (id_session = '80889355860585' AND prev_id_session IS NOT NULL OR prev_id_session = '80889355860585') AND (remote_addr_session <> '192.168.0.1' OR refresh_date_session <= 1506071133)"
Sep 22 11:06:04 listes wwsympa[9852]: debug3 Sympa::Database::do_prepared_query() Will perform query "UPDATE session_table SET prev_id_session = NULL WHERE id_session = ?"
Sep 22 11:06:04 listes wwsympa[9852]: debug3 Sympa::Database::do_prepared_query() Will perform query "UPDATE session_table SET prev_id_session = NULL WHERE id_session = ?"
Sep 22 11:06:04 listes wwsympa[9852]: debug3 Sympa::Database::do_prepared_query() Will perform query "DELETE FROM session_table WHERE id_session = ? AND prev_id_session IS NULL"
Sep 22 11:06:04 listes wwsympa[9852]: debug3 Sympa::Database::do_prepared_query() Will perform query "DELETE FROM session_table WHERE id_session = ? AND prev_id_session IS NULL"
Sep 22 11:06:04 listes wwsympa[9852]: info Sympa::Session::renew() [robot listes.xxxxxxx.xx] [session 80889355860585] [client 192.168.0.1] [user xxxx.xxxx@xxxxxxx.xx] new session 00035266018246
Sep 22 11:06:04 listes wwsympa[9852]: info Sympa::Session::renew() [robot listes.xxxxxxx.xx] [session 80889355860585] [client 192.168.0.1] [user xxxx.xxxx@xxxxxxx.xx] new session 00035266018246
Sep 22 11:06:04 listes wwsympa[9852]: debug Sympa::Session::set_cookie(.xxxxxxx.xx, session, secure= )
Sep 22 11:06:04 listes wwsympa[9852]: debug Sympa::Session::set_cookie(.xxxxxxx.xx, session, secure= )
Sep 22 11:06:04 listes wwsympa[9852]: debug3 Sympa::search_fullpath(listes.xxxxxxx.xx, css.tt2, subdir)
Sep 22 11:06:04 listes wwsympa[9852]: debug3 Sympa::search_fullpath(listes.xxxxxxx.xx, css.tt2, subdir)
Sep 22 11:06:04 listes wwsympa[9852]: debug3 Sympa::get_search_path(listes.xxxxxxx.xx, subdir, web_tt2)
Sep 22 11:06:04 listes wwsympa[9852]: debug3 Sympa::get_search_path(listes.xxxxxxx.xx, subdir, web_tt2)
Sep 22 11:06:04 listes wwsympa[9852]: debug3 Sympa::get_search_path(listes.xxxxxxx.xx, subdir, web_tt2)
Sep 22 11:06:04 listes wwsympa[9852]: debug3 Sympa::get_search_path(listes.xxxxxxx.xx, subdir, web_tt2)
ikedas commented 7 years ago

I suppose "my" page can be shown by accessing to URL /sympa/my.

Can setting default_home my in sympa.conf satisfy your need?

wouldsmina commented 7 years ago

Hi @ikedas

I suppose "my" page can be shown by accessing to URL /sympa/my.

Yes, "my" page work fine.

Can setting default_home my in sympa.conf satisfy your need?

No, I need to show "my" and "lists_categories" into "home" (cf. screenshot)

sympa home

ikedas commented 7 years ago

@wouldsmina,

Just an idea, but how about using iframe?

...
[% IF user.email  %]
 <article class="small-12 medium-4 columns home">
    <iframe src="/sympa/nomenu/my">
    </iframe>
  </article>
[% END %]
...

nomenu/ suppresses header/footer in content.


Update: modified src path.

wouldsmina commented 7 years ago

it's work, but iframe is deprecated and less beautiful than a div :disappointed_relieved:

ikedas commented 7 years ago

HTML 4.01/STRICT did not define iframe, but HMTL5 defines it. To make it more beautiful, add a style to css.tt2:

iframe { border: 0; }
wouldsmina commented 7 years ago

ok. I would have preffered the [% which %] tt2 variable into home but it's seems not possible...

thank you @ikedas

ikedas commented 7 years ago

Thanks for sharing your experiences. This issue is closed.

wouldsmina commented 7 years ago

sorry but that does not fit in the end. with iframe, when selecting a list it's appears in the iframe :/

ikedas commented 7 years ago

Though I haven't tried, sandbox attribute seems to be useful: MDN: