Carregando...
 

Corrigir erro Horde

 Erro:

A fatal error has occurred

Call to a member function write() on a non-object

Details have been logged for the administrator.

 

Verificar se o arquivos /home/clini417/.cphorde/horde.sqlite esta zerado, caso esteja basta recriar as tabelas default com o comando abaixo:

 

Upgrade tables or create missing tables in an existing database for cPanel user bob.
# /usr/local/cpanel/bin/update_horde_config --user=bob --full

 

Outros erros:

 

Erro ao criar conta de e-mail
error Error
The operation “GET” “/cpsess1431827515/json-api/cpanel?cpanel_jsonapi_version=2&cpanel_jsonapi_module=Email&cpanel_jsonapi_func=addpop&email=teste0002&password=!Te%5d%40sIg%26Z~%25"a=250&domain=chamepedreira.com.br&cache_fix=1489585701517” failed with a “The system could not create the calendar “Calendar” for “teste0002@chamepedreira.com.br”: Cpanel::Exception::Database::Error/(XID tjrfm6) DBD::SQLite::db selectrow_hashref failed: database disk image is malformed
at /usr/local/cpanel/Cpanel/Exception.pm line 220. Cpanel::Exception::new("Cpanel::Exception::Database::Error", Cpanel::ExceptionMessage::Raw=SCALAR(0x7910d30), HASH(0x790e390)) called at /usr/local/cpanel/Cpanel/Exception.pm line 73 Cpanel::Exception::create("Database::Error", Cpanel::ExceptionMessage::Raw=SCALAR(0x7910d30), HASH(0x790e390)) called at /usr/local/cpanel/Cpanel/Exception.pm line 90 Cpanel::Exception::create_raw("Database::Error", "DBD::SQLite::db selectrow_hashref failed: database disk image"..., HASH(0x790e390)) called at /usr/local/cpanel/Cpanel/DBI.pm line 126 Cpanel::DBI::_create_exception(Cpanel::DBI::db=HASH(0x790b258), "DBD::SQLite::db selectrow_hashref failed: database disk image"..., undef) called at /usr/local/cpanel/Cpanel/DBI.pm line 114 Cpanel::DBI::_error_handler("DBD::SQLite::db selectrow_hashref failed: database disk image"..., Cpanel::DBI::db=HASH(0x790b258), undef) called at /usr/local/cpanel/Cpanel/DAV/Backend/DB/Horde.pm line 88 eval {...} called at /usr/local/cpanel/Cpanel/DAV/Backend/DB/Horde.pm line 88 Cpanel::DAV::Backend::DB::Horde::select_one(Cpanel::DBI::db=HASH(0x790b258), " SELECT * FROM kronolith_shares\x{a} WHERE attribute_name ="..., "Calendar", "teste0002\@chamepedreira.com.br") called at /usr/local/cpanel/Cpanel/DAV/Backend/HordeCalendar.pm line 58 Cpanel::DAV::Backend::HordeCalendar::create_calendar(Cpanel::DAV::Principal=HASH(0x22793c8), "Calendar", "This is your personal calendar.") called at /usr/local/cpanel/Cpanel/DAV/Calendars.pm line 59 Cpanel::DAV::Calendars::create_calendar(Cpanel::DAV::Principal=HASH(0x22793c8), "Calendar", "This is your personal calendar.") called at /usr/local/cpanel/Cpanel/DAV/Defaults.pm line 57 Cpanel::DAV::Defaults::create_calendar(Cpanel::DAV::Principal=HASH(0x22793c8)) called at /usr/local/cpanel/Cpanel/DAV/Defaults.pm line 137 Cpanel::DAV::Defaults::create_calendars_and_address_books("teste0002\@chamepedreira.com.br") called at /usr/local/cpanel/Cpanel/API/Email.pm line 1146 Cpanel::API::Email::add_pop(Cpanel::Args=HASH(0x785c098), Cpanel::Result=HASH(0x785c488)) called at /usr/local/cpanel/Cpanel/API.pm line 284 Cpanel::API::__ANON__() called at /usr/local/cpanel/Cpanel/API.pm line 356 eval {...} called at /usr/local/cpanel/Cpanel/API.pm line 356 Cpanel::API::_eval_guard(Cpanel::Result=HASH(0x785c488), CODE(0x78594a8)) called at /usr/local/cpanel/Cpanel/API.pm line 284 Cpanel::API::_run_module_function(Cpanel::Args=HASH(0x785c098), Cpanel::Result=HASH(0x785c488), "Email", "add_pop") called at /usr/local/cpanel/Cpanel/API.pm line 81 Cpanel::API::_execute("Email", "add_pop", HASH(0x785c068)) called at /usr/local/cpanel/Cpanel/API.pm line 427 Cpanel::API::wrap_deprecated("Email", "add_pop", HASH(0x785c068)) called at /usr/local/cpanel/Cpanel/Email.pm line 1273 Cpanel::Email::api2_addpop(__CPANEL_HIDDEN__, 250, __CPANEL_HIDDEN__, __CPANEL_HIDDEN__, __CPANEL_HIDDEN__, __CPANEL_HIDDEN__, __CPANEL_HIDDEN__, 1489585701517, __CPANEL_HIDDEN__, ...) called at /usr/local/cpanel/Cpanel/Api2/Exec.pm line 118 eval {...} called at /usr/local/cpanel/Cpanel/Api2/Exec.pm line 118 Cpanel::Api2::Exec::api2_exec("Email", "addpop", HASH(0x785c788), HASH(0x7841688)) called at cpanel.pl line 1501 cpanel::cpanel::docpanelaction(HASH(0x7841808)) called at cpanel.pl line 4969 cpanel::cpanel::run_fast_json_mode() called at cpanel.pl line 855 cpanel::cpanel::script("cpanel::cpanel", "--json-fast-connect", "--stdin") called at cpanel.pl line 332 ” error.

 

Rodar o comando acima de update_horde_config

Caso apresente o erro:

2017-03-15T13:02:25+00:00 ERR: HORDE [horde] SQL QUERY FAILED: SQLSTATE[HY000]: General error: 11 database disk image is malformed  
    SELECT name FROM sqlite_master WHERE type = 'table' UNION ALL SELECT
      name FROM sqlite_temp_master WHERE type = 'table' AND name !=
      'sqlite_sequence' ORDER BY name [pid 2842 on line 234 of "/usr/local/cpanel/3rdparty/php/54/lib/php/Horde/Db/Adapter/Pdo/Base.php"]

Basta remover o arquivo "horde.sqlite" da pasta /hom/usuario/.cphorde/ e rodar o comando novamente.