Beranda > Error > Fatal error: Cannot redeclare domxml_new_doc() in E:\moodle\auth\cas\CAS\domxml-php4-php5.php

Fatal error: Cannot redeclare domxml_new_doc() in E:\moodle\auth\cas\CAS\domxml-php4-php5.php

Pengalaman gw ketika install moodle dan sudah sampai pada tahap:

Current release and unattended option

The current release information is shown. Check off the unattended operations box. This will automatically advance through many screens. If you would like to watch the install screen by screen, do not check this box and be prepared to press the “continute button” many times.

  • Click the “Continue” button and wait.

Kemudian tampil proses (kayaknya proses create table dan input data ke database).
Setelah selesai proses tersebut tampil halaman kosong, saya lihat url-nya http://moodle/admin/index.php?.

Kalau menurut instalation guide-nya seharusnya tampil Administrator user profile?

Lumayan juga cukup membingungkan karena tidak ada error yang tampil. Seperti biasa kalau bingung tanya paman google, aduh…kok belum ketemu juga ya…mungkin kata kuncinya blom pas…, akh..beralih cara aja..balik lagi buka situs moodle langsung dan cari dokumentasinya….Alhamdulillah ketemu juga..gak sia-sia seharian di depan komputer (gak gitu-gitu amat sih ….. ada istirahatnya juga… sholat dan makan tidak terlupakan)..disini nih http://docs.moodle.org/en/PHP_error_logs

How to enable and check PHP error logs

PHP can be set up to log errors in a variety of different ways: two of these involve the use of the php.ini file and the ini_set command.

  • Using the php.ini file: The log settings are contained in the php.ini file stored on the server. If you don’t know where that is, edit your Moodle config.php and add the following as the second line
 phpinfo();
then reload the web page. Look for the entry Configuration File (php.ini) Path.
When you have located php.ini open it in your favorite text editor. Find the Error handling and logging section of the php.ini file. Make sure that both display_errors = On, display_startup_errors = On and log_errors = On are present and uncommented. Check the value of error_log – this tells you the location of the file errors are logged to. If it is commented out then errors will be sent to the web server error log file. Remember, if you make any changes to this file you will need to restart the web server (or just reboot the server).
  • Using ini_set commands: If you are using Moodle 1.7 or higher, the previous steps are not enough. In those versions error logging parameters are dependant on certain administrative settings that you specify in the debugging section. The problem is that if you can’t access the administrative pages, you can’t set the debugging options. So the only way to modify them is by adding the following lines to your config.php file, just before the last line (the one containing a single’?>’ only):
 ini_set ('display_errors', 'on');
 ini_set ('log_errors', 'on');
 ini_set ('display_startup_errors', 'on');
 ini_set ('error_reporting', E_ALL);
 $CFG->debug = DEBUG_ALL;
This will enable the same settings specified above even if Moodle sets them otherwise.
Important: Remember to put them just before the last line of config.php.

Kemudian refresh, ..cring…muncul tuh error :

Fatal error: Cannot redeclare domxml_new_doc() in E:\moodle\auth\cas\CAS\domxml-php4-php5.php on line 52

Pengalaman gw kalau error seperti ini uncomment aja extension=php_domxml.dll pada php.ini agar php tidak membaca modul ini. (nanti kita cari tahu ya extension=php_domxml.dll, kalau udah ada yang tahu silahkan komentar)

Kemudian Restart IIS…..

Horeee…. jalan juga akhirnya…..

Iklan
Kategori:Error
  1. Belum ada komentar.
  1. No trackbacks yet.

Tinggalkan Balasan

Isikan data di bawah atau klik salah satu ikon untuk log in:

Logo WordPress.com

You are commenting using your WordPress.com account. Logout /  Ubah )

Foto Google+

You are commenting using your Google+ account. Logout /  Ubah )

Gambar Twitter

You are commenting using your Twitter account. Logout /  Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout /  Ubah )

Connecting to %s

%d blogger menyukai ini: