我遇到了一个奇怪的问题,我在我的PhP Pro上尝试了MAMP和MacBook / Apache的标准安装,并且总是得到这个错误
警告: require_once(../interfaces/class-ai1ec-get-data-from-cache.php):未能打开流:在第3行的/usr/local/zend/apache2/htdocs/wordpress/wp-content/plugins/all-in-one-event-calendar-premium/app/strategies/get_data_from_cache/class-ai1ec-get-data-from-db-cache.php中没有这样的文件或目录,致命错误: require_once():未能打开所需的./接口/class-ai1ec-get-data-from-cache.php‘(include_path='.:/usr/local/zend/share/ZendFramework/library:/usr/local/zend/share/pear'),在第3行的/usr/local/zend/apache2/htdocs/wordpress/wp-content/plugins/all-in-one-event-calendar-premium/app/strategies/get_data_from_cache/class-ai1ec-get-data-from-db-cache.php中
从这个电话里
require_once ( '/../interfaces/class-ai1ec-get-data-from-cache.php' );我是新来的麦克,所以这肯定是件很愚蠢的事,但我被堵住了。
当然每个版本我都试过了
require_once ( '../interfaces/class-ai1ec-get-data-from-cache.php' );
require_once ( './../interfaces/class-ai1ec-get-data-from-cache.php' );发布于 2012-08-13 14:52:04
这是毫无意义的:
require_once ( '/../interfaces/class-ai1ec-get-data-from-cache.php' );您从根目录开始,然后尝试从根目录向上移动一个目录。
尝试键入您的实际完整文件路径,并查看这是否有效。
https://stackoverflow.com/questions/11936504
复制相似问题