문제

Wiki 소프트웨어를 사용하고 있습니다 : Dokuwiki 및 템플릿을 설치 한 이후 : http : //www.dokuwiki.org / 템플릿 : MonoBook

Windows 7 64bit에서 습격을 사용하여 로컬로 테스트 할 때이 오류가 발생했습니다. Apache : 2.2.11
PHP : 5.3.0

update 내 PHP 버전을 5.3.1로 업그레이드했으며 오류가 수정되었습니다.

경고 : 해석 오류 C : \ Wamp \ www \ wiki \ lib \ exe /.././ lib / tpl / monobook / style.ini 라인 30 c : \ wamp \ www \ wiki \ lib \ exe \ css.php 라인 54
경고 : 잘못된 인수가 제공됩니다.foreach () in. c : \ amp \ www \ wiki \ lib \ exe \ css.php 55

style.ini

; INI to handle loading of the CSS files of the "monobook" template for DokuWiki
;
;
; LICENSE: This file is open source software (OSS) and may be copied under
;          certain conditions. See COPYING file for details or try to contact
;          the author(s) of this file in doubt.
;
; @license GPLv2 (http://www.gnu.org/licenses/gpl2.html)
; @author Andreas Haerter <development@andreas-haerter.com>
; @link http://andreas-haerter.com/projects/dokuwiki-template-monobook
; @link http://www.dokuwiki.org/template:monobook
; @link http://www.dokuwiki.org/devel:css#styleini



; Please see http://www.php.net/manual/en/function.parse-ini-file.php
; for limitations of the ini format used here

; Define the stylesheets your template uses here. The second value
; defines for which output media the style should be loaded. Currently
; print, screen and rtl are supported. rtl styles are loaded additionally
; to screen styles if a right-to-left language is selected (eg. hebrew)
[stylesheets]

; screen
; note to myself: don't forget to respect the workaround within "bug49642.php"
;                 when adding new screen styles.
; load the DokuWiki styles. See <http://j.mp/eq8zSo> why I am doing this.
[line:30] static/3rd/dokuwiki/_imgdetail.css        = screen
static/3rd/dokuwiki/_media_popup.css      = screen
static/3rd/dokuwiki/_media_fullscreen.css = screen
static/3rd/dokuwiki/_fileuploader.css     = screen
static/3rd/dokuwiki/_tabs.css             = screen
static/3rd/dokuwiki/_links.css            = screen
static/3rd/dokuwiki/_toc.css              = screen
static/3rd/dokuwiki/_footnotes.css        = screen
static/3rd/dokuwiki/_search.css           = screen
static/3rd/dokuwiki/_recent.css           = screen
static/3rd/dokuwiki/_diff.css             = screen
static/3rd/dokuwiki/_edit.css             = screen
static/3rd/dokuwiki/_modal.css            = screen
static/3rd/dokuwiki/_forms.css            = screen
static/3rd/dokuwiki/_admin.css            = screen

; load the most important MediaWiki monobook styles
static/3rd/monobook/main.css = screen

; load the specific "monobook for dokuwiki" styles
static/css/screen.css = screen
user/screen.css       = screen
.

이것은 ini 파일을로드하는 css.php의 PHP 코드입니다.

// load template styles
$tplstyles = array();
if(@file_exists($tplinc.'style.ini')){
    $ini = parse_ini_file($tplinc.'style.ini',true);
    foreach($ini['stylesheets'] as $file => $mode){
        $tplstyles[$mode][$tplinc.$file] = $tpldir;
    }
}
.

도움이 되었습니까?

해결책

이것은 실제로 PHP 5.3.0에서만 알려진 버그입니다. https://bugs.php.net/bug.php?id=49692ITINCH.ID=49692 "참조">

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top