Empty Folder name anomaly [message #6302] |
Sat, 15 April 2017 03:38 |
apmuthu
Messages: 30 Registered: April 2017 Location: Chennai Singapore
|
Member |
|
|
All component log folders are like radicore/*/sql/logs except for workflow which is radicore/workflow/sql/log - singular. Is this by design?
List of empty folders as of release 2017-04-02:
logs
audit/sql/logs
classroom/sql/logs
default/classes/custom-processing
default/reports/custom-processing
default/screens/custom-processing
default/sql/logs
default/sql/mysql
default/sql/oracle
default/sql/postgresql
default/sql/sqlsrv
default/text/custom-processing
dict/sql/logs
includes/tcpdf/cache
menu/sql/logs
product/sql/logs
survey/sql/logs
workflow/sql/log
xample/files/upload
xample/sql/logs
xample/videos
[Updated on: Sat, 15 April 2017 03:39] Report message to a moderator
|
|
|
|
Re: Empty Folder name anomaly [message #6314 is a reply to message #6303] |
Sun, 16 April 2017 06:13 |
apmuthu
Messages: 30 Registered: April 2017 Location: Chennai Singapore
|
Member |
|
|
The anomaly is in the naming of workflow/sql/log instead of as workflow/sql/logs like all the others.
The list will be useful to generate them if the code was from Github.
|
|
|
|
Re: Empty Folder name anomaly [message #6323 is a reply to message #6320] |
Sun, 16 April 2017 11:36 |
apmuthu
Messages: 30 Registered: April 2017 Location: Chennai Singapore
|
Member |
|
|
The function logSqlQuery() in includes/include.library.inc file in lines 4699-4704 has the path to the logs hardcoded thus:
$script_name = basename($_SERVER['PHP_SELF']);
if (!is_dir('./sql/logs')) {
mkdir('./sql/logs');
} // if
$fn = "./sql/logs/{$script_name}.{$_SESSION['logon_user_id']}.sql";
error_log("$string\r\n", 3, $fn);
Hence a mere rename of the workflow/sql/log folder to workflow/sql/logs may be sufficient.
[Updated on: Sun, 16 April 2017 11:36] Report message to a moderator
|
|
|
|