Can't say for certain what the problem is until you see an error. I suspect a memory problem but to be sure please follow these steps
1. Modify your config.php file to include:
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;
put these lines at the end of the config file, just before the "?>"
2. upload the new, debug config.php to your moodle directory
3. go back to your moodle/admin/index.php page, it will still be blank and then refresh
4. see if an error message appears at the top of the page.
5. if it says something like this:
Fatal error: Allowed memory size of 50331648 bytes exhausted (tried to allocate 24 bytes) in /var/www/u13752099/htdocs/moodle/admin/mnet/MethodTable.php on line 77
then check with your provider and see if you can get more memory allocated. I had to change from 50 Mb to 128 Mb before the installation finished.
cheers
Ivan
You didn't do anything wrong. I had the same problem, which thank God is now fixed after much agida, and with the help of the forum, particularly RLE! There really should be better instructions in the moodle installation pages, since this seems to happen a lot - script writers, are you listening?!
If I remember, search the forums for the .htaccess file which you need to create in notepad, upload with FTP, and name it .htaccess, not .htaccess.txt. It should contain the lines:
AddType x-mapp-php5 .php
AddType application/x-rpt rpc
Upload it to the moodle root folder and admin folder
Also create a php.ini file in the root folder with the text:
magic_quotes_gpc = 1
magic_quotes_runtime = 0
file_uploads = 1
session.auto_start = 0
session.bug_compat_warn = 0
upload_max_filesize = 128M
max_execution_time = 2400
memory_limit = 40M
post_max_size = 10M
SMTP = localhost
error_reporting = E_ALL & ~E_NOTICE
If that still doesn't work, you need to figure out where the error is coming from, so insert this text in config.php at the bottom below the ?
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;
Most likely there is a memory issue, there was with me!
Hope that helps
Scott
Scott - Thanks for this post it has helped me resolve an issue with a recent upload of moodle which also showed a blank page at the Admin sector
Thanks
John
- Thx to SvN for the acknowledgement.
- But in his post, the error_reporting line shown in php.ini will exclude display of notices, while the one shown in config.php will include them. If you use both, the latter will override the former, and you may see a lot of notices that will look like errors but they aren't and should be ignored. If you don't want to see them, use
ini_set ('error_reporting', E_ALL & ~E_NOTICE);
instead. - If you are using a commercial web hosting service, check with their tech. support before using the php.ini file. Some hosts support custom php.ini files and some don't. And among those that do, the procedure for using them varies from host to host. The same applies to .htaccess, which is only for servers using Apache. Furthermore, for those hosts that support .htaccess files, it is up to each one to determine which Apache directives they allow to be used in them.
- For more on blank page problems, see
Installation FAQ#Why_are_all_my_pages_blank.3F
Installation FAQ#Why_is_a_particular_page_blank_or_incomplete.3F
Installation FAQ#Installation_hangs_when_setting-up_database_tables