Cronjob error

After starting the cronjob i get warnings every minute:

PHP Notice:  Undefined variable: mixedArg in /domain.tld/httpdocs/inc/classes/BxDolDb.php on line 1054 

PHP Notice:  Undefined variable: mixedArg in /domain.tld/httpdocs/inc/classes/BxDolDb.php on line 1054 

PHP Notice:  Undefined variable: mixedArg in /domain.tld/httpdocs/inc/classes/BxDolDb.php on line 1054 

PHP Notice:  Undefined variable: mixedArg in /domain.tld/httpdocs/inc/classes/BxDolDb.php on line 1054 

PHP Notice:  Undefined variable: mixedArg in /domain.tld/httpdocs/inc/classes/BxDolDb.php on line 1054


There are also E-Mails with no content every minute.

What can be  the problem?

regards

  • 717
  • More
Replies (9)
    • Hello Holger Schrag !

      Please specify - did you modify your files? The BxDolDb.php in the v.9.0 package and in Github doesn't have something like this on the mentioned line. May you please shows us this code fragment here (from 1040 till 1070)?

      • Hi here are the lines:

                self::$_rLink->setAttribute(PDO::ATTR_ERRMODE, $this->_iPdoErrorMode);

                return empty($aResult) ? true : $aResult;

            }

            protected function executeStatement($oStatement, $aBindings = array(), $bVerbose = null)

            {

                $bResult = false;

                if (!isset($aBindings[0])) {

                    foreach($aBindings as $sKey => $mixedValue) {

                        if(is_null($mixedValue))

                            $oStatement->bindValue(":{$sKey}", $mixedValue, PDO::PARAM_NULL);

                        else if(is_numeric($mixedArg) && is_int($mixedArg))

                            $oStatement->bindValue(":{$sKey}", $mixedValue, PDO::PARAM_INT);

                        else

                            $oStatement->bindValue(":{$sKey}", $mixedValue, PDO::PARAM_STR);

                    }

                    $aBindings = array();

                }

                switch (self::$_rLink->getAttribute(PDO::ATTR_ERRMODE)) {

                    case PDO::ERRMODE_SILENT:

                        $bResult = $this->executeStatementSilent($oStatement, $aBindings, $bVerbose);

                        break;

                    case PDO::ERRMODE_EXCEPTION:

                        $bResult = $this->executeStatementException($oStatement, $aBindings, $bVerbose);

                        break;

                }

        • I don't modify the files.

          • LeonidS, was my info helpful?

             

            • Hello hollosch !

              It looks like you have an old inc/classes/BxDolDb.php file. You need to replace it with from the actual UNA v9.0 or from our GitHub https://github.com/unaio/una/blob/master/inc/classes/BxDolDb.php

              • HI LeonidS ,
                i changed the file. Error is gone, but there are emty emails every minute...

                They should only send if there are new "activity" from the user, or?

                regards

                • What shows your Studio->Dashboard->Server audit mailtest link? For now, it looks like the email template was changed incorrectly.

                  • Hi LeonidS, after (manual) upgrade to UNA 10 Beta1 the cron-job still doesn't work. Activating the cronjob send 2 empty mails to every user :-(
                    screen shows an actual test-amil from server audit

                    • Please provide me your UNA's operator and Control Panel accesses via Messenger here.

                      Login or Join to comment.