Jump to content
blank

Error Php

Recommended Posts

Salam...

Notice [PHP]: Only variable references should be returned by reference in file include/functions.php line 566
Notice [PHP]: Only variable references should be returned by reference in file kernel/object.php line 803
Notice [PHP]: Only variable references should be returned by reference in file kernel/configitem.php line 212
Notice [PHP]: Only variable references should be returned by reference in file kernel/configitem.php line 113
Notice [PHP]: Only variable references should be returned by reference in file kernel/configitem.php line 108
Notice [PHP]: Only variable references should be returned by reference in file kernel/configitem.php line 97
Notice [PHP]: Only variable references should be returned by reference in file include/functions.php line 566

Lepas install xoops keluar error ni. Aku dah off "error_reporting" dalam php.ini tapi sama jugak. Error ni berpunca dari php atau xoops? atau php ni tak compatible dgn xoops? Sebelum ni aku try xoops ni dgn php5..ok takde masalah..camne nak check?

Version

-------------------

PHP-4.4

Xoops-2.2

Apache-2.0

TQ...

Share this post


Link to post
Share on other sites

Notice tu takde kesan apa-apa.

Error ni terjadi bila ko guna PHP version terbaru sedangkan XOOPS masih guna function-function PHP yang lama.

display_errors = Off

Share this post


Link to post
Share on other sites

Kesan dia memang ada. Menyakitkan mata memandang. Setiap page ada lebih 50 line error, mcm tak normal plak homepage camtu.

Persoalannya boleh fix tak?

display_errors = Off = Tak memberi kesan.

Google.com = Tak banyak membeantu.

Thanx...

Share this post


Link to post
Share on other sites

Aku baru test guna Xoops 2.2.2, kecuali masa installation, yg lain takde masalah error display.

Tp aku guna apache 1.3 la (php 4.4.0)... try download Xoops 2.2.2, kalau nak try download RC1 tu pun ok gak.. tp yg tu aku rasa tak sesuai lagi sebab diorang tgh test.mmg banyak bugs aku tgk di Xoops 2.2

p/s: tak terinstall apache 2.0 dgn 1.3 sekali ke? biggrin.gif

Share this post


Link to post
Share on other sites

@electroboy - kau tau x nak wat xoops sampai jd mcm dreamsandwich.com?

aku baru xoops nie..  dry.gif

Sorry farkyiew... aku pun newbies dlm xoops dan dlm masa terdekat tak berminat utk pursue dgn lebih detail xoops ni.

Aku tgk dreamsandwich.com tu, dia guna template/themes tu. Cuba ko tgk footer website tu. Ada info ke link ni http://www.xoopsdesign.com/modules/news/

Kalau ko rajin nak 'h@ck' xoops, no hal la... smile.gif

p/s: nak guna joomla! buat masa terdekat. Sebab dah byk site aku tgk guna mambo tp desgin dah tak macam standard mambo dah.

Share this post


Link to post
Share on other sites

Bukan masalah apache.. masalah php nie.. aku baru try td.. problem sama dengan ko.. cuba ko downgrade ko punye php..

-------------

apache 2.0

php 4.4

xoops 2.2.3

-------------

Aku tgk byk problem datang dari function nie.. (include/function.php)..

function &xoops_gethandler($name, $optional = false )
{
    static $handlers;
    $name = strtolower(trim($name));
    if (!isset($handlers[$name])) {
        if ( file_exists( $hnd_file = XOOPS_ROOT_PATH.'/kernel/'.$name.'.php' ) ) {
            require_once $hnd_file;
        }
        $class = 'Xoops'.ucfirst($name).'Handler';
        if (class_exists($class)) {
            $handlers[$name] = new $class($GLOBALS['xoopsDB']);
        }
    }
    if (!isset($handlers[$name]) && !$optional ) {
        trigger_error('Class <b>'.$class.'</b> does not exist<br />Handler Name: '.$name, E_USER_ERROR);
    }
    if (isset($handlers[$name])) {
        return $handlers[$name];
    }
    else {
        $ret = false;
        return $ret;
    }
}

Edited by b1naryc0de

Share this post


Link to post
Share on other sites

blank, kalau ikut b1naryc0de problem tu datang dari include/function.php:

ko tambah kat file tu kod ni:

error_reporting(0);
<?php

error_reporting(0);
..
.
?>
ataupun
<?php

error_reporting(E_ALL ^ E_NOTICE);
..
.
?>

Share this post


Link to post
Share on other sites

Thanx puteranetwork, tapi code tu melenyapkan terus page aku.

Yup, semua error tu dari include/function.php. AKu dah belek semua line notice tu tapi tatau mende nak godek. Nanti aku try upgrade/downgrade apa2 yang boleh.

Share this post


Link to post
Share on other sites

blank, aku baru je test tadi guna version PHP-4.4, Xoops-2.2 & Apache-2.0.

Error banyak datang dari semua function-function yang passing by reference contohnya:

function &xoops_gethandler() <-- tanda & sebelum xoops_gethandler

Cuba ngko buang tanda & (by reference) pada semua file-file yang menyebabkan error. Semua error tu hilang, tapi ni masalah XOOPS ni. Dia tak compatible dengan PHP4.4.

Ada dalam 20 file semua function tu aku ubah (buang &), error tu hilang dah ok dah. Tapi kena tunggu la XOOPS jugak, atau boleh join community diorang:

http://www.xoops.org/modules/newbb/viewforum.php?forum=39

Share this post


Link to post
Share on other sites

Yes...success, memang hilang error tu. Thanx for your support.

Sebelum tu aku try compile php5, tak menjadi plak. Ada problem ke php5 dgn apache-2.0 ek? Dulu aku compile dgn lighttpd ok je...

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...