Page 1 of 1
[solved] not able to display errors after failing module install
Posted: Wed Mar 31, 2010 9:24 pm
by Jos
I don't seem to find a way to show an errormessage after module install fails.
Yesterday Calguy suggested me in IRC:
That does stop executing
method.install.php, butt still results in a succesfully install message
To use
results in an immediate redirect to the succesfully install message...
Somebody has an idea to display errors during module install?
Re: not able to display errors after failing module install
Posted: Sat Apr 17, 2010 3:35 pm
by Jos
Can some module developer confirm if this code does or does not display an errormessage during the installationprocess of the module?
Code: Select all
return array(FALSE, 'install-error!');
Re: not able to display errors after failing module install
Posted: Sun Apr 18, 2010 5:26 pm
by Jos
Turns out to be a little bug...
it's a bug, I'll fix it in 1.7.1
but then in the method.install.php you will have to use a temporary variable to return an error
i.e:
Code: Select all
$tmp = 'This is an error message';
return $tmp;
Thx Calguy1000
Re: [solved] not able to display errors after failing module install
Posted: Sat Jul 31, 2010 4:45 pm
by dc2
I've the same problem here - I would like to abort installation if an error occurres (folder not writable) but if I use
Code: Select all
$tmp = $this->Lang('installerror');
return $tmp;
it refuses to work. Using this instead works:
Code: Select all
$tmp = 'An error occurred during installation';
return $tmp;
Using this before return also displays the correct message:
Does anybody know how to fix this?
Edit: Additionaly I found a bug in the error-message-page - the url of "Back zu Menu" looks like this:
admin/{$thisurl}
(#5242:
Bug-Tracker)