ホーム » Dolphin

Dolphin cron PHP Fatal error: require_once():

Submitted by on 2010年3月12日 – 14:23コメントはありません。

動画コンパイルのためのcron.phpエラー

<?

/***************************************************************************
* Dolphin Smart Community Builder
* —————–
* begin : Mon Mar 23 2006
* copyright : (C) 2006 BoonEx Group
* website : http://www.boonex.com/
* This file is part of Dolphin – Smart Community Builder
*
* Dolphin is free software. This work is licensed under a Creative Commons Attribution 3.0 License.
* http://creativecommons.org/licenses/by/3.0/
*
* Dolphin is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the Creative Commons Attribution 3.0 License for more details.
* You should have received a copy of the Creative Commons Attribution 3.0 License along with Dolphin,
* see license.txt file; if not, write to marketing@boonex.com
***************************************************************************/

$site['ver'] = ‘7.0′;
$site['build'] = ‘0′;

省略

// set error reporting level
if (version_compare(phpversion(), “5.3.0″, “>=”) == 1)
error_reporting(E_ALL & ~E_NOTICE & ~E_DEPRECATED);
else
error_reporting(E_ALL & ~E_NOTICE);
set_magic_quotes_runtime(0);
ini_set(‘magic_quotes_sybase’, 0);

// set default encoding for multibyte functions
mb_internal_encoding(‘UTF-8′);
mb_regex_encoding(‘UTF-8′);

require_once(BX_DIRECTORY_PATH_INC . “security.inc.php”);
require_once(BX_DIRECTORY_PATH_ROOT . “flash/modules/global/inc/header.inc.php”);
require_once(BX_DIRECTORY_PATH_ROOT . “flash/modules/global/inc/content.inc.php”);
require_once(BX_DIRECTORY_PATH_CLASSES . “BxDolService.php”);
require_once(BX_DIRECTORY_PATH_CLASSES . ‘BxDolAlerts.php’);
$oZ = new BxDolAlerts(’system’, ‘begin’, 0);
$oZ->alert();
?>PHP Notice: Use of undefined constant BX_DIRECTORY_PATH_INC – assumed ‘BX_DIRECTORY_PATH_INC’ in /home/example/public_html/dolphin/periodic/cron.php on line 24
PHP Warning: require_once(BX_DIRECTORY_PATH_INCutils.inc.php): failed to open stream: No such file or directory in /home/example/public_html/dolphin/periodic/cron.php on line 24
PHP Fatal error: require_once(): Failed opening required ‘BX_DIRECTORY_PATH_INCutils.inc.php’ (include_path=’.:/usr/share/php5:/usr/share/php5/PEAR’) in /home/example/public_html/dolphin/periodic/cron.php on line 24

インストール途中で出た見本記述

MAILTO=info@example.jp
* * * * * cd /home/example/public_html/dolphin/periodic; /usr/bin/php -q cron.php

動作OKの記述

MAILTO=info@example.jp
* * * * * root php -c /etc/php5/apache2/php.ini -q /home/example/public_html/dolphin/periodic/cron.php

これで動画コンパイルOK、ログメールOKです。

人気度: 3% [?]