Roundcube Community Forum

 

So many errors in log file

Started by bjiag0, February 15, 2013, 12:13:40 PM

Previous topic - Next topic

bjiag0

Please! Help me to reduce errors in log file. For 2-3 weeks this file grows more then 100 megs!


[14-Feb-2013 07:24:50 UTC] PHP Notice:  Undefined index: user_id in /www/roundcube/program/include/rcmail.php on line 714
[14-Feb-2013 07:24:50 UTC] PHP Notice:  Undefined index: user_id in /www/roundcube/program/include/rcmail.php on line 181
[14-Feb-2013 07:24:50 UTC] PHP Notice:  Undefined variable: prefs in /www/roundcube/program/include/rcube_user.php on line 142
[14-Feb-2013 07:24:50 UTC] PHP Notice:  Undefined index: language in /www/roundcube/program/include/rcmail.php on line 249
[14-Feb-2013 07:24:50 UTC] PHP Notice:  Undefined index: _task in /www/roundcube/program/include/rcmail.php on line 1450
[14-Feb-2013 07:24:50 UTC] PHP Notice:  Undefined index: task in /www/roundcube/program/include/rcmail.php on line 192
[14-Feb-2013 07:24:50 UTC] PHP Notice:  Undefined index: head in /www/roundcube/program/include/rcube_html_page.php on line 69
[14-Feb-2013 07:24:50 UTC] PHP Notice:  Undefined index: nr in /www/roundcube/program/include/rcmail.php on line 994
[14-Feb-2013 07:24:50 UTC] PHP Notice:  Undefined index: ru_ru in /www/roundcube/program/include/rcmail.php on line 998
[14-Feb-2013 07:24:50 UTC] PHP Notice:  Undefined index: en_us in /www/roundcube/program/include/rcmail.php on line 998
[14-Feb-2013 07:24:50 UTC] PHP Notice:  Undefined index: vars in /www/roundcube/program/include/rcmail.php on line 1034
[14-Feb-2013 07:24:50 UTC] PHP Notice:  Undefined index: uppercase in /www/roundcube/program/include/rcmail.php on line 1040
[14-Feb-2013 07:24:50 UTC] PHP Notice:  Undefined index: ucfirst in /www/roundcube/program/include/rcmail.php on line 1040
[14-Feb-2013 07:24:50 UTC] PHP Notice:  Undefined index: uppercase in /www/roundcube/program/include/rcmail.php on line 1042
[14-Feb-2013 07:24:50 UTC] PHP Notice:  Undefined index: lowercase in /www/roundcube/program/include/rcmail.php on line 1044
[14-Feb-2013 07:24:50 UTC] PHP Notice:  Undefined index: nr in /www/roundcube/program/include/rcmail.php on line 994
[14-Feb-2013 07:24:50 UTC] PHP Notice:  Undefined index: ru_ru in /www/roundcube/program/include/rcmail.php on line 998
[14-Feb-2013 07:24:50 UTC] PHP Notice:  Undefined index: en_us in /www/roundcube/program/include/rcmail.php on line 998
[14-Feb-2013 07:24:50 UTC] PHP Notice:  Undefined index: vars in /www/roundcube/program/include/rcmail.php on line 1034
[14-Feb-2013 07:24:50 UTC] PHP Notice:  Undefined index: uppercase in /www/roundcube/program/include/rcmail.php on line 1040
[14-Feb-2013 07:24:50 UTC] PHP Notice:  Undefined index: ucfirst in /www/roundcube/program/include/rcmail.php on line 1040
[14-Feb-2013 07:24:50 UTC] PHP Notice:  Undefined index: uppercase in /www/roundcube/program/include/rcmail.php on line 1042
[14-Feb-2013 07:24:50 UTC] PHP Notice:  Undefined index: lowercase in /www/roundcube/program/include/rcmail.php on line 1044
[14-Feb-2013 07:24:50 UTC] PHP Notice:  Undefined index: config_get in /www/roundcube/program/include/rcube_plugin_api.php on line 244
[14-Feb-2013 07:24:50 UTC] PHP Notice:  Undefined index: plugin_manager in /www/roundcube/program/include/rcube_plugin_api.php on line 164


More errors in file http://rghost.net/private/43820559/07f3647ef30bd6fbf1e86880312ab5f1 pass: 3362
I can't post everything here due to limit 20000ch.

SKaero

Turn off PHP strict error reporting.

bjiag0


bpat1434

Depending on your host setup you can either set error_reporting to "E_ALL & ~E_STRICT" in php.INI or set the php_value to the correct integer value in .htaccess.

See http://www.php.net/error_reporting for more information.

Sent from my SGH-I897 using Tapatalk 2

 
 

bjiag0

#4
I download latest version of Roundcube (0.8.5) and replaced files in my dir with new ones, but then I try to login, there is an error message:

ERROR: Wrong 'error_reporting' option value. Read REQUIREMENTS section in INSTALL file or use Roundcube Installer, please!

I execute  MySQL query but the error is still present(

/*!40014 SET FOREIGN_KEY_CHECKS=0 */;

ALTER TABLE `contacts` DROP FOREIGN KEY `user_id_fk_contacts`;
ALTER TABLE `contacts` DROP INDEX `user_contacts_index`;
ALTER TABLE `contacts` MODIFY `email` text NOT NULL;
ALTER TABLE `contacts` ADD INDEX `user_contacts_index` (`user_id`,`del`);
ALTER TABLE `contacts` ADD CONSTRAINT `user_id_fk_contacts` FOREIGN KEY (`user_id`)
   REFERENCES `users`(`user_id`) ON DELETE CASCADE ON UPDATE CASCADE;

ALTER TABLE `cache` ALTER `user_id` DROP DEFAULT;
ALTER TABLE `cache_index` ALTER `user_id` DROP DEFAULT;
ALTER TABLE `cache_thread` ALTER `user_id` DROP DEFAULT;
ALTER TABLE `cache_messages` ALTER `user_id` DROP DEFAULT;
ALTER TABLE `contacts` ALTER `user_id` DROP DEFAULT;
ALTER TABLE `contactgroups` ALTER `user_id` DROP DEFAULT;
ALTER TABLE `contactgroupmembers` ALTER `contact_id` DROP DEFAULT;
ALTER TABLE `identities` ALTER `user_id` DROP DEFAULT;
ALTER TABLE `searches` ALTER `user_id` DROP DEFAULT;

/*!40014 SET FOREIGN_KEY_CHECKS=1 */;

So I uploaded old files back.


It's not allowed to change php.ini for my by my host provider .

What about string "php_flag   log_errors" in .htaccess

And if ($this->prop['debug_level'] & 1) {
            ini_set('log_errors', 1);

            if ($this->prop['log_driver'] == 'syslog') {
                ini_set('error_log', 'syslog');
            }
            else {
                ini_set('error_log', $this->prop['log_dir'].'/errors');
            }
        }

in rcube_config.php