Hello Jose and Elias, Thanks for reporting this problem.
It happens only with old PHP < 5.5 because in those versions empty() function doesn't support expressions. Usually CentOS 7 users can experience this bug as in this distribution is PHP 5.4. In attachment I am sending patch that fixes it for you and for other users. Best regards. Marcin Haba (gani) On Tue, 7 May 2019 at 04:47, Elias Pereira <empbi...@gmail.com> wrote: > > Hello Jose, > > Happened to me too! The principle does not seem to be errors, but warnings. > > I added ~E_WARNING on line 445 (error_reporting = E_ALL & ~E_DEPRECATED & > ~E_STRICT & ~E_WARNING) from the file /etc/php/7.0/apache2/php.ini and > resolved. > > On Mon, May 6, 2019 at 5:50 PM Jose Alberto <j.se...@gmail.com> wrote: >> >> Hi. >> >> i have bacula 9.4.2 and baculum 9.4.3 on Centos 7 amd64. >> >> The Baculum problem when Actions menu on Jobs >> >> Baculum Menu....... Jobs. Colum Actions "Details" >> >> the rest without problem >> >> Log: >> >> Prado\Exceptions\TPhpFatalErrorException >> Description >> [Compile Error] Can't use method return value in write context (@line 1 in >> file >> /usr/share/baculum/htdocs/framework/pradosoft/prado/framework/TComponent.php(1229) >> : eval()'d code). >> >> Source File >> /usr/share/baculum/htdocs/framework/pradosoft/prado/framework/PradoBase.php >> (193) >> >> 0182: * PHP shutdown function used to catch fatal errors. >> 0183: * This method should be registered as PHP error handler using >> 0184: * {@link register_shutdown_function}. The method throws an >> exception that >> 0185: * contains the error information. >> 0186: */ >> 0187: public static function phpFatalErrorHandler() >> 0188: { >> 0189: $error = error_get_last(); >> 0190: if ($error && >> 0191: TPhpErrorException::isFatalError($error) && >> 0192: error_reporting() & $error['type']) { >> 0193: self::exceptionHandler(new >> TPhpFatalErrorException($error['type'], $error['message'], $error['file'], >> $error['line'])); >> 0194: } >> 0195: } >> 0196: >> 0197: /** >> 0198: * Default exception handler. >> 0199: * This method should be registered as default exception handler >> using >> 0200: * {@link set_exception_handler}. The method tries to use the >> errorhandler >> 0201: * module of the Prado application to handle the exception. >> 0202: * If the application or the module does not exist, it simply >> echoes the >> 0203: * exception. >> 0204: * @param Exception $exception exception that is not caught >> 0205: */ >> >> Stack Trace >> #0 [internal function]: Prado\PradoBase::phpFatalErrorHandler() >> #1 {main} >> >> -- >> ############################# >> # Sistema Operativo: Debian # >> # Caracas, Venezuela # >> ############################# >> _______________________________________________ >> Bacula-users mailing list >> Bacula-users@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/bacula-users > > > > -- > Elias Pereira > _______________________________________________ > Bacula-users mailing list > Bacula-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/bacula-users -- "Greater love hath no man than this, that a man lay down his life for his friends." Jesus Christ "Większej miłości nikt nie ma nad tę, jak gdy kto życie swoje kładzie za przyjaciół swoich." Jezus Chrystus
commit 15c57c2cf09f27ddaa82d64dd005cda2937b0d9d Author: Marcin Haba <marcin.h...@bacula.pl> Date: Thu May 2 18:55:59 2019 +0200 baculum: Fix TPhpFatalErrorException exception on job view page with PHP version lower than 5.5 diff --git a/gui/baculum/protected/Web/Portlets/StatusSchedule.tpl b/gui/baculum/protected/Web/Portlets/StatusSchedule.tpl index 883d599b0d..c9530b5876 100644 --- a/gui/baculum/protected/Web/Portlets/StatusSchedule.tpl +++ b/gui/baculum/protected/Web/Portlets/StatusSchedule.tpl @@ -90,7 +90,7 @@ <th><%[ Type ]%></th> <th><%[ Priority ]%></th> <th><%[ Scheduled ]%></th> - <%=empty($this->getJob()) ? '<th>' . Prado::localize('Job name') . '</th>': ''%> + <%=empty($this->Job) ? '<th>' . Prado::localize('Job name') . '</th>': ''%> <th><%[ Client ]%></th> <th><%[ FileSet ]%></th> <th><%[ Schedule ]%></th> @@ -154,7 +154,7 @@ var oJobScheduleList = { return Units.format_date(data); } }, - <%=empty($this->getJob()) ? '{data: "name"},' : ''%> + <%=empty($this->Job) ? '{data: "name"},' : ''%> {data: 'client'}, {data: 'fileset'}, {data: 'schedule'}
_______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users