Forums | Mahara Community

Support /
Just Blank Screen after installation


anonymous profile picture
Account deleted
Posts: 8

26 January 2009, 9:18

Hey,

 i just tried many times to install Mahara.

After the license agreement the next step works fine but after that i just get a blank screen.

Here´s a part of the error log:

 

374

[26-Jan-2009 13:55:05]   * error(2, "array_merge() [<a href='function.array-merge'>func...", "/www/htdocs/w00aaf83/mahara/lib/mahara.php", 445, array(size 5)) at Unknown:0

[26-Jan-2009 13:55:05]   * array_merge(array(size 1), false, array(size 0)) at /www/htdocs/w00aaf83/mahara/lib/mahara.php:445

[26-Jan-2009 13:55:05]   * language_get_searchpaths() at /www/htdocs/w00aaf83/mahara/lib/mahara.php:469

[26-Jan-2009 13:55:05]   * get_language_root() at /www/htdocs/w00aaf83/mahara/lib/mahara.php:311

[26-Jan-2009 13:55:05]   * get_string_location("username", "mahara", array(size 0)) at /www/htdocs/w00aaf83/mahara/lib/mahara.php:177

[26-Jan-2009 13:55:05]   * get_string("username") at /www/htdocs/w00aaf83/mahara/auth/lib.php:1007

[26-Jan-2009 13:55:05]   * auth_get_login_form() at /www/htdocs/w00aaf83/mahara/auth/lib.php:468

[26-Jan-2009 13:55:05]   * auth_setup() at /www/htdocs/w00aaf83/mahara/init.php:206

[26-Jan-2009 13:55:05]   * require("/www/htdocs/w00aaf83/mahara/init.php") at /www/htdocs/w00aaf83/mahara/index.php:30

[26-Jan-2009 13:55:05] 

[26-Jan-2009 13:55:05] [WAR] 3c (lib/mahara.php:469) Invalid argument supplied for foreach()

[26-Jan-2009 13:55:05] Call stack (most recent first):

[26-Jan-2009 13:55:05]   * log_message("Invalid argument supplied for foreach()", 8, true, true, "/www/htdocs/w00aaf83/mahara/lib/mahara.php", 469) at /www/htdocs/w00aaf83/mahara/lib/errors.php:374

[26-Jan-2009 13:55:05]   * error(2, "Invalid argument supplied for foreach()", "/www/htdocs/w00aaf83/mahara/lib/mahara.php", 469, array(size 2)) at /www/htdocs/w00aaf83/mahara/lib/mahara.php:469

[26-Jan-2009 13:55:05]   * get_language_root() at /www/htdocs/w00aaf83/mahara/lib/mahara.php:311

[26-Jan-2009 13:55:05]   * get_string_location("username", "mahara", array(size 0)) at /www/htdocs/w00aaf83/mahara/lib/mahara.php:177

[26-Jan-2009 13:55:05]   * get_string("username") at /www/htdocs/w00aaf83/mahara/auth/lib.php:1007

[26-Jan-2009 13:55:05]   * auth_get_login_form() at /www/htdocs/w00aaf83/mahara/auth/lib.php:468

[26-Jan-2009 13:55:05]   * auth_setup() at /www/htdocs/w00aaf83/mahara/init.php:206

[26-Jan-2009 13:55:05]   * require("/www/htdocs/w00aaf83/mahara/init.php") at /www/htdocs/w00aaf83/mahara/index.php:30

[26-Jan-2009 13:55:05] 

[26-Jan-2009 13:55:05] [WAR] 3c (lib/mahara.php:445) array_merge() [function.array-merge]: Argument #2 is not an array

[26-Jan-2009 13:55:05] Call stack (most recent first):

[26-Jan-2009 13:55:05]   * log_message("array_merge() [function.array-merge]: Argument #2 ...", 8, true, true, "/www/htdocs/w00aaf83/mahara/lib/mahara.php", 445) at /www/htdocs/w00aaf83/mahara/lib/errors.php:

 

Any ideas?

greetings, 

Christian 

 

anonymous profile picture
Account deleted
Posts: 1643

26 January 2009, 18:05

Hi Christian,

What version of Mahara are you using, have you set $cfg->langpacksearchpaths, and if you have, what is it set to?

anonymous profile picture
Account deleted
Posts: 8

27 January 2009, 6:28

Hi Nigel,

 i´m using Mahara 1.0.8 with german language pack.

$cfg->langpacksearchpaths = '/www/htdocs/w00aaf83/mahara/lang/de.utf8'; 

Heinz Krettek's profile picture
Posts: 480

27 January 2009, 8:43

Hallo Christian,

what happens if you remove the  var for the langpack in the config file? I would try to complete installation first and then add the langpack. In 1.0.8 there is no need to add the var. Just copy the langpack into the right dirs and change the setting in the admin area. Which german langpack do you use? 

Greetings from the black forest

Heinz

anonymous profile picture
Account deleted
Posts: 8

27 January 2009, 9:56

I also tried to install without language pack and var. Same result.
Heinz Krettek's profile picture
Posts: 480

27 January 2009, 10:47

Hi Christian,

Nigel will you ask about all details of your setting. Mahara version? php extensions checked?

code snippet of your config file (xxxx password)

did you try to install while copying  the code without the subdirs htdocs etc.?

Feel fre to send me a E-Mail ;-)

Heinz

anonymous profile picture
Account deleted
Posts: 8

27 January 2009, 11:50

Linux 2.6.24


PHP 5.2.6

MySQL 5.0.67


gd bundled (2.0.34 compatible)

json 1.2.1

libxml 2.6.26

SimpleXML $Revision: 1.151.2.22.2.39 $

OpenSSL 0.9.8a 11 Oct 2005

libcurl/7.15.3

xmlrpc, yes

 

Hosted on all-inkl.com / "Privat Plus " 

 

Config:

----------

<?php

/**

 * Mahara: Electronic portfolio, weblog, resume builder and social networking

 * Copyright (C) 2006-2008 Catalyst IT Ltd (http://www.catalyst.net.nz)

 *

 * This program is free software: you can redistribute it and/or modify

 * it under the terms of the GNU General Public License as published by

 * the Free Software Foundation, either version 3 of the License, or

 * (at your option) any later version.

 *

 * This program is distributed in the hope that it will be useful,

 * but WITHOUT ANY WARRANTY; without even the implied warranty of

 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the

 * GNU General Public License for more details.

 *

 * You should have received a copy of the GNU General Public License

 * along with this program.  If not, see <http://www.gnu.org/licenses/>.

 *

 * @package    mahara

 * @subpackage core

 * @author     Catalyst IT Ltd

 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL

 * @copyright  (C) 2006-2008 Catalyst IT Ltd http://catalyst.net.nz

 *

 */


$cfg = new StdClass;



// database connection details

// valid values for dbtype are 'postgres8' and 'mysql5'

$cfg->dbtype   = 'mysql5';

$cfg->dbhost   = 'localhost';

$cfg->dbport   = null;

$cfg->dbname   = 'd009f85e';

$cfg->dbuser   = 'd009f85e';

$cfg->dbpass   = 'XXXX';

$cfg->dbprefix = 'mhr_';


// wwwroot - the web-visible path to your Mahara installation

// Normally, this is automatically detected - if it doesn't work for you

// then try specifying it here

$cfg->wwwroot = 'http://alumni-jura-goettingen.de/mahara/';


// dataroot - uploaded files are stored here

// must be writable by the webserver and outside document root.

// Mahara will NOT RUN if this is inside your document root, because

// this is a big security hole.


// Just for testing, other directory produce same errors!

$cfg->dataroot = '/tmp/';


// directorypermissions - what permissions to use for files and directories in 

// dataroot. The default allows only the web server user to read the data. If 

// you're on shared hosting and might want to download the contents of your 

// dataroot later (e.g. for backup purposes), set this to 0777. Otherwise, 

// leave it as is!

//$cfg->directorypermissions = 0700;


// insecuredataroot - whether to enforce checking that files being served have 

// come from dataroot. You would only want to turn this on if you were running 

// more than one Mahara against the same dataroot. If you are doing that, make 

// sure you create separate dataroots for each installation, but symlink the 

// artefact directory from all of them to one of them, and turn on 

// 'insecuredataroot' on all the ones you created symlinks for.

//

// If you don't know what you're doing/didn't understand the paragraph above, 

// then leave this setting alone!

//$cfg->insecuredataroot = false;


// system mail address. emails out come from this address.

// if not specified, will default to noreply@ automatically detected host.

// if that doesn't work or you want something else, then specify it here.

// $cfg->noreplyaddress = '[email protected]'


// Logging configuration

// For each log level, you can specify where the messages are displayed.

// LOG_TARGET_SCREEN makes the error messages go to the screen - useful

// when debugging but not on a live site!

// LOG_TARGET_ERRORLOG makes the error messages go to the log as specified

// by the apache ErrorLog directive. It's probably useful to have this on

// for all log levels.

// You can combine them with bitwise operations,

// e.g. LOG_TARGET_SCREEN | LOG_TARGET_ERRORLOG

//

// This configuration is suitable for people running Mahara for the first

// time. You will immediately see environment errors, and so can correct

// them. You will be able to see other debugging information in your error

// logs. Once your site is up and running you might want to remove the

// environment level logging completely, and just log everything else to

// the error log.

$cfg->log_dbg_targets     = LOG_TARGET_ERRORLOG;

$cfg->log_info_targets    = LOG_TARGET_ERRORLOG;

$cfg->log_warn_targets    = LOG_TARGET_ERRORLOG;

$cfg->log_environ_targets = LOG_TARGET_SCREEN | LOG_TARGET_ERRORLOG;

// This configuration is suitable for developers. You will see all errors

// and they will also be in the logs.

//$cfg->log_dbg_targets     = LOG_TARGET_SCREEN | LOG_TARGET_ERRORLOG;

//$cfg->log_info_targets    = LOG_TARGET_SCREEN | LOG_TARGET_ERRORLOG;

//$cfg->log_warn_targets    = LOG_TARGET_SCREEN | LOG_TARGET_ERRORLOG;

//$cfg->log_environ_targets = LOG_TARGET_SCREEN | LOG_TARGET_ERRORLOG;


// The log levels that will generate backtraces. Useful for development,

// but probably only warnings are useful on a live site.

$cfg->log_backtrace_levels = LOG_LEVEL_WARN | LOG_LEVEL_ENVIRON;


// Developer mode

// When set, the following things (among others) will happen:

//

// * 'debug.js' will be included on each page. You can edit this file to add 

//   debugging javascript at your discretion

// * 'debug.css' will be included on each page. You can edit this file to add 

//   debugging CSS at your discretion

// * firebuglite will be included, if you are not using Firefox

// * the unpacked version of MochiKit will be used

//

// These options are a performance hit otherwise, enable when you are 

// developing for Mahara

$cfg->developermode = false;


// Whether to send e-mail. If set to false, Mahara will not send any e-mail at 

// all. This is useful for when setting up development versions of Mahara where 

// you don't want to accidentally send email to users from this particular 

// Mahara installation.

//

// You can use sendallemailto to have all e-mails from this instance of Mahara 

// sent to one particular address instead of where they're aimed for. Leave 

// sendemail = true if you want to use this setting.

$cfg->sendemail = true;

// $cfg->sendallemailto = '[email protected]';



// capture performance information and print it

// $cfg->perftofoot = true; // needs a call to mahara_performance_info (smarty callback) - see default theme's footer.tpl

// $cfg->perftolog = true;

// if neither are set, performance info wont be captured.


// mail handling

// if you want mahara to use smtp servers to send mail, enter one or more here

// blank means mahara will use the default PHP method.

// $cfg->smtphosts = 'mail.a.com;mail.b.com';

// If you have specified an smtp server above, and the server requires authentication, 

// enter them here

// $cfg->smtpuser = '';

// $cfg->smtppass = '';


// maximum allowed size of uploaded images

// NOTE: the scalable resize might result in images with one dimesion larger than one of these sizes, but not both

$cfg->imagemaxwidth = 1024;

$cfg->imagemaxheight = 1024;


$cfg->langpacksearchpaths = '/www/htdocs/w00aaf83/mahara/lang/de.utf8';


?> 

anonymous profile picture
Account deleted
Posts: 1643

28 January 2009, 1:50

Hi Christian, try commenting out the langpacksearchpaths setting in your config.php, drop your database, create it again and try the install - does that fix the issue? If not, do you get the same backtrace?
anonymous profile picture
Account deleted
Posts: 8

28 January 2009, 8:49

Okay, i´ve created a new database, delete all files, download the mahara 1.0.8 package again, create a new config and upload all files without any language pack.

Result: Just the same errors.

Log: http://alumni-jura-goettingen.de/mahara/logfile.txt 

Heinz Krettek's profile picture
Posts: 480

28 January 2009, 9:52

Hi Christian,

what's about the config file? please copy the file here or via email.

I notice that you copied the mahara files in a dir name

/www/htdocs/w00aaf83/mahara
How did you name the maharadata dir? Did mahara create the dir within the datafolder?
What happens if you try to setup the config without renaming $cfg->dbprefix = ''; ?
 
cheers 
Heinz 
 

 

15 results