我想知道这个错误意味着什么,因为它像疯了一样发送我的错误日志:
PHP警告:include():打开失败 'C:/domains/XXX/wwwroot/app/addons/banners/schemas/sharing/schema.post.php' 包括在内 (include_path中= '/无功/网络/应用程序/ LIB /梨/.:/ USR /共享/ PHP:在/ usr /共享/梨') 在/var/www/app/functions/fn.common.php第2106行
所以我决定访问2106行的php代码:代码行如下
$schema = $include_once ? include_once($file) : include($file);
你们有任何想法如何解决这个问题吗?
祝福,
答案 0 :(得分:1)
请在app / Tygh / Bootstrap.php文件中找到ini_set('include_path', $dir_root . '/app/lib/pear/' . ini_get('include_path'));
方法并替换此行:
ini_set('include_path', $dir_root . '/app/lib/pear/' . PATH_SEPARATOR . ini_get('include_path'));
有了这个:
{{1}}
这是最近发布的版本中修复的错误。
答案 1 :(得分:0)
您能确认文件C:/domains/XXX/wwwroot/app/addons/banners/schemas/sharing/schema.post.php
是否存在?
答案 2 :(得分:0)
是的,它存在,它包含以下代码:
<?php
/***************************************************************************
* *
* (c) 2004 Vladimir V. Kalynyak, Alexey V. Vinokurov, Ilya M. Shalnev *
* *
* This is commercial software, only users who have purchased a valid *
* license and accept to the terms of the License Agreement can install *
* and use this program. *
* *
****************************************************************************
* PLEASE READ THE FULL TEXT OF THE SOFTWARE LICENSE AGREEMENT IN THE *
* "copyright.txt" FILE PROVIDED WITH THIS DISTRIBUTION PACKAGE. *
****************************************************************************/
$schema['banners'] = array(
'controller' => 'banners',
'mode' => 'update',
'type' => 'tpl_tabs',
'params' => array(
'object_id' => '@banner_id',
'object' => 'banners'
),
'table' => array(
'name' => 'banners',
'key_field' => 'banner_id',
),
'request_object' => 'banner_data',
'have_owner' => true,
);
return $schema;