From fer.grub at yahoo.de Mon Jan 27 11:20:37 2020 From: fer.grub at yahoo.de (Ferdinand Gruber) Date: Mon, 27 Jan 2020 12:20:37 +0100 Subject: [horde] Immediately logged out after login In-Reply-To: References: <320cd261-9101-eb7d-d5a9-9dc9171eccee.ref@yahoo.de> <320cd261-9101-eb7d-d5a9-9dc9171eccee@yahoo.de> Message-ID: Am 26.01.20 um 22:14 schrieb Ferdinand Gruber: > Am 25.01.20 um 16:10 schrieb Ferdinand Gruber: >> >> I have a local instance of horde for test purposes on my computer at >> home. >> >> When trying to login I suddenly get the message that the session has >> timed out. >> > I changed the authentication to 'htpasswd_file'. > > Now I am able to login as administrator and also as common user. > > But, when I click on "calendar" I see for a short moment the calendar > view and after that I get suddenly logged out. Again the message > appears, that the session has timed out. > I don't get it to work. Now I spent three days for that. I changed the configuration in horde/config/conf.php $conf['session']['use_only_cookies'] = false; The cookie definitions should now not be necessary, but I changed it to $conf['cookie']['domain'] = ''; $conf['cookie']['path'] = ''; Then I changed the serverName in /etc/apache2/default_server.conf to "localhost" ServerName localhost ServerAdmin root at localhost I deleted all session files rm /var/lib/php7/* Then I restarted the web server rcapache2 restart After loading firefox, I deleted cookies and cache Then I called http://localhost/horde The login page appears and I logged in as admin I am able to login. After click on "calendar" I can see for a moment the calendar view and then I get logged out. I get the message, that the session has timed out. BTW: I deleted all calendar events in the database. Please, please help ! -- Regards from Austria Ferdinand Gruber From fer.grub at yahoo.de Mon Jan 27 15:05:02 2020 From: fer.grub at yahoo.de (Ferdinand Gruber) Date: Mon, 27 Jan 2020 16:05:02 +0100 Subject: [horde] Immediately logged out after login In-Reply-To: References: <320cd261-9101-eb7d-d5a9-9dc9171eccee.ref@yahoo.de> <320cd261-9101-eb7d-d5a9-9dc9171eccee@yahoo.de> Message-ID: Am 27.01.20 um 15:49 schrieb Ferdinand Gruber: > Am 27.01.20 um 12:20 schrieb Ferdinand Gruber: >> Am 26.01.20 um 22:14 schrieb Ferdinand Gruber: >>> Am 25.01.20 um 16:10 schrieb Ferdinand Gruber: >>>> >>>> I have a local instance of horde for test purposes on my computer >>>> at home. >>>> >>>> When trying to login I suddenly get the message that the session >>>> has timed out. >>>> >>> I changed the authentication to 'htpasswd_file'. >>> >>> Now I am able to login as administrator and also as common user. >>> >>> But, when I click on "calendar" I see for a short moment the >>> calendar view and after that I get suddenly logged out. Again the >>> message appears, that the session has timed out. >>> >> I don't get it to work. Now I spent three days for that. >> Problem solved. It was caused by a configuration item in /etc/php7/apache2/php.ini Some weeks ago I set in php.ini: request_order = "CG" because I thought that could have advantages in one of my php projects. This setting caused my problems with horde login. -- Regards from Austria Ferdinand Gruber From fer.grub at yahoo.de Mon Jan 27 22:06:01 2020 From: fer.grub at yahoo.de (Ferdinand Gruber) Date: Mon, 27 Jan 2020 23:06:01 +0100 Subject: [horde] Using horde API to save data in calendar References: Message-ID: Hi, now, Horde Kronolith is working on my testsystem and I am trying to pass $_POST data to my kronolith calendar. $eol = PHP_EOL; $ical = "BEGIN:VCALENDAR".$eol." VERSION:2.0".$eol." BEGIN:VEVENT".$eol." DTSTART:".$_POST["event_start"].$eol." DTEND:".$_POST["event_end"].$eol." ... require_once '/srv/www/htdocs/horde/kronolith/lib/Application.php'; Horde_Registry::appInit('kronolith', array()); $registry->setAuth('user_name', array('password'=>'the_passwd'), array()); $registry->call('calendar/put',array('kronolith/user_name',$ical,"text/calendar")); First I got an error that /usr/share/php7/PEAR/Horde/Autoloader/Cache.php is missing I looked in the documentation and then I installed pear install horde/horde_autoloader_cache Now I get this error file_get_contents(/tmp/horde_autoloader_cache_71a082229a5386a280b68808643dcbdb): failed to open stream: Datei oder Verzeichnis nicht gefunden #2 /usr/share/php7/PEAR/Horde/Autoloader/Cache/Bootstrap.php(110):file_get_contents() #3 /usr/share/php7/PEAR/Horde/Autoloader/Cache.php(89):Horde_Autoloader_Cache_Bootstrap->get() #4 /usr/share/php7/PEAR/Horde/Autoloader/Cache.php(206):Horde_Autoloader_Cache->__construct() #5 /srv/www/htdocs/horde/lib/core.php(48):include_once() #6 /srv/www/htdocs/horde/kronolith/lib/Application.php(33):require_once() #7 /srv/www/include/php/kronolith.php(24):require_once() What can I do? Thank you for each hint. -- Regards from Austria Ferdinand Gruber From michael at brohl.net Thu Jan 30 16:52:42 2020 From: michael at brohl.net (Michael Brohl) Date: Thu, 30 Jan 2020 17:52:42 +0100 Subject: [horde] ActiveSync classes not found after Horde move In-Reply-To: <20200125165128.Horde.Ol9ODKil4mip854aJEX7ywx@tarn.theupstairsroom.com> References: <20200125165128.Horde.Ol9ODKil4mip854aJEX7ywx@tarn.theupstairsroom.com> Message-ID: <8a400cdc-2fd4-6a4c-6275-c4c0aba8d238@brohl.net> Thanks for pointing me in the right direction, Michael. The ActiveSync package was not installed due to a dependency to Horde_Mapi which has a dependeny on the PHP extension bcmath which was not available. sudo pear install horde/horde_activesync horde/Horde_Mapi requires PHP extension "bcmath" horde/Horde_ActiveSync requires package "horde/Horde_Mapi" (version >= 1.0.0, version <= 2.0.0alpha1, excluded versions: 2.0.0alpha1) No valid packages found install failed I must have missed this during the install. Everything works fine now. Thank you very much, Michael Am 25.01.20 um 17:51 schrieb Michael J Rubinsky: > > Quoting Michael Brohl : > >> Hi, >> >> after moving my Horde installation to a new server (Ubuntu 18.04 LTS, >> PHP 7.2) the active sync components do not work. >> >> If I go to the adminstration section (domain.tld/admin/config/) the >> following >> error is shown: >> >> Class 'Horde_ActiveSync_State_Sql' not found >> in /usr/share/php/Horde/Core/Factory/ActiveSyncState.php:24 >> >> 1. Horde_Core_Nosql->getDrivers() >> /usr/share/php/www/horde/admin/config/index.php:297 >> 2. Horde_Core_Nosql->{closure}() /usr/share/php/Horde/Core/Nosql.php:78 >> 3. Horde_Injector->getInstance() /usr/share/php/Horde/Core/Nosql.php:51 >> 4. Horde_Injector->createInstance() >> /usr/share/php/Horde/Injector.php:272 >> 5. Horde_Injector_Binder_Factory->create() >> /usr/share/php/Horde/Injector.php:238 >> 6. Horde_Core_Factory_ActiveSyncState->create() >> /usr/share/php/Horde/Injector/Binder/Factory.php:119 >> >> >> The horde logs (syslog) also show the following errors: >> >> HORDE[5618]: [horde] Error: Class 'Horde_ActiveSync_Wbxml' not found >> in /usr/share/php/Horde/Core/Factory/ActiveSyncServer.php:13 >> Stack trace: >> #0 /usr/share/php/Horde/Injector/Binder/Factory.php(119): >> Horde_Core_Factory_ActiveSyncServer->create(Object(Horde_Injector)) >> #1 /usr/share/php/Horde/Injector.php(238): >> Horde_Injector_Binder_Factory->create(Object(Horde_Injector)) >> #2 /usr/share/php/Horde/Injector.php(272): >> Horde_Injector->createInstance('Horde_ActiveSyn...') >> #3 /usr/share/php/www/horde/rpc.php(102): >> Horde_Injector->getInstance('Horde_ActiveSyn...') >> #4 {main} [pid 5618 on line 74 of >> "/usr/share/php/Horde/ErrorHandler.php"] >> >> HORDE[6107]: [horde] Error: Class 'Horde_ActiveSync_State_Sql' not >> found in /usr/share/php/Horde/Core/Factory/ActiveSyncState.php:24 >> Stack trace: >> #0 /usr/share/php/Horde/Injector/Binder/Factory.php(119): >> Horde_Core_Factory_ActiveSyncState->create(Object(Horde_Injector)) >> #1 /usr/share/php/Horde/Injector.php(238): >> Horde_Injector_Binder_Factory->create(Object(Horde_Injector)) >> #2 /usr/share/php/Horde/Injector.php(272): >> Horde_Injector->createInstance('Horde_ActiveSyn...') >> #3 /usr/share/php/Horde/Core/Nosql.php(51): >> Horde_Injector->getInstance('Horde_ActiveSyn...') >> #4 /usr/share/php/Horde/Core/Nosql.php(78): >> Horde_Core_Nosql->{closure}() >> #5 /usr/share/php/www/horde/admin/config/index.php(297): >> Horde_Core_Nosql->getDrivers('horde', 1) >> #6 {main} [pid 6107 on line 74 of >> "/usr/share/php/Horde/ErrorHandler.php"] >> >> >> I moved the installation by updating the old to the latest version >> through pear and installed the same on the new server. I copied over >> the install containing all configurations from old to new afterwards >> and restored the mysql dump on the new servers database. > > Do you mean that you physically copied the install from one machine to > the other, or just the config files after you installed Horde using > PEAR on the new machine? > >> Webmail and calendar are working fine but admin configuration is not >> possible because of the first error and syncing clients does not work. > > >> Any ideas how to solve this? > > > It sounds like either your include path is somehow messed up (though > unlikely since other things seem to be working?), or perhaps the > Horde_ActiveSync package is not installed (correctly) on the new host. >  To start with, see what: > > pear list -c pear.horde.org > > and > > pear config-show -c pear.horde.org > > > > shows. > > >> >> Thanks, >> Michael >> >> -- >> Horde mailing list >> Frequently Asked Questions: http://horde.org/faq/ >> To unsubscribe, mail: horde-unsubscribe at lists.horde.org > > > >