Comment to 'Cronjob error'
Comment to Cronjob error
  • 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.

        • 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