Loading...
 
Skip to main content

Make tiki-mods.php report more detailed error

Status
Closed
Subject
Make tiki-mods.php report more detailed error
Version
1.9.x
Category
  • Error
  • Usability
Feature
Administration
Installer (profiles, upgrades and server-related issues)
Mods
Resolution status
Out of Date
Submitted by
Fabián Rodríguez
Lastmod by
Marc Laporte
Rating
(0)
Description

When going to Admin mods (tiki-mods.php) on a new install, make it report the directory name when the mods directory hasn't been created or lacks correct permissions.

The error reported asks to run ./setup.sh but is not specific about the directory affected here. This would be helpful to manually fix the individual directory instead of running ./setup.sh (which may not be possible in some situations like FTP installs).

Solution

Around line 24, changethe line after:
if (!is_writable($mods_dir)) {

to:
$smarty->assign('msg', tra("$mods_dir has wrong permissions or could not be created. You need to run setup$ $smarty->display("error.tpl");

Importance
5
Priority
25
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
551
Created
Wednesday 19 April, 2006 02:32:00 UTC
by Unknown
LastModif
Monday 11 October, 2021 11:30:23 UTC


Show PHP error messages