메뉴

Codeigniter & Bootstrap 기반 게시판 KI_Board v2.6 설치 에러 몇 가지 해결방법

2015년 2월 16일 - devstory

오랜만에 Codeigniter 를 설치해서 무언가를 만들어야 할 일이 생김
마냐님의 공개보드를 설치해 봄
무수한 에러와의 만남과 해결
아까워서 적어 봄

Download 
– https://github.com/CatsMiaow/KI_Board

Source Version
– PHP Framework Codeigniter(v2.1.4)
– UI Framework Bootstrap(v3.1.0)

Server Setting
– Apache 2.4
– PHP Version 5.6.3
– MySQL 5.6.21

—————————————————————————————————-
Issue
<?php 로 시작해야 php 코드가 인식 될 때

Fix
php.ini 파일 수정

– before
short_open_tag=Off

– after
short_open_tag = On

—————————————————————————————————-
Issue
A PHP Error was encountered
Severity: Notice
Message: Only variable references should be returned by reference
Filename: core/Common.php
Line Number: 257

Fix
D:\00.Dev_PHP\KI_Board-2.6\_Codeigniter\core
Common.php

– before
return $_config[0] =& $config;

– after
$_config[0] =& $config;
return $_config[0];

—————————————————————————————————-

Issue
A PHP Error was encountered
Severity: 8192
Message: Assigning the return value of new by reference is deprecated
Filename: libraries/Widget.php
Line Number: 23

Fix
deprecated <-폐지예정.. php버전업될때 이전 버전에서 사용되던 함수가 폐기되는 경우가 있음

– before
if ($class =& new $class()) {

– after
if ($class = new $class()) {

—————————————————————————————————-
Issue

A PHP Error was encountered
Severity: 8192
Message: Non-static method Widget::run() should not be called statically, assuming $this from incompatible context
Filename: controllers/main.php
Line Number: 37

A PHP Error was encountered
Severity: 8192
Message: Non-static method Widget::run() should not be called statically, assuming $this from incompatible context
Filename: controllers/main.php
Line Number: 39

A PHP Error was encountered
Severity: 8192
Message: Non-static method Widget::run() should not be called statically, assuming $this from incompatible context
Filename: controllers/main.php
Line Number: 41

A PHP Error was encountered
Severity: 8192
Message: Non-static method Widget::run() should not be called statically, assuming $this from incompatible context
Filename: member/login.php
Line Number: 32

A PHP Error was encountered
Severity: 8192
Message: Non-static method Widget::run() should not be called statically, assuming $this from incompatible context
Filename: member/login.php
Line Number: 34

Fix

– before
widget::run(‘head’);
$this->load->view(‘main/main’, $data);
widget::run(‘tail’);

– after
$this->widget->run(‘head’);
$this->load->view(‘main/main’, $data);
$this->widget->run(‘tail’);

—————————————————————————————————-

The End.

Codeigniter & Bootstrap 기반 게시판 KI_Board v2.6 설치 에러 몇 가지 해결방법”에 대한 2개의 생각

Dug

how to translate this page?

응답
    노들이

    Modified this page

    응답

답글 남기기

이메일은 공개되지 않습니다. 필수 입력창은 * 로 표시되어 있습니다.