Radicore Forum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » RADICORE development » Framework » Empty Folder name anomaly
Empty Folder name anomaly [message #6302] Sat, 15 April 2017 03:38 Go to next message
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 #6303 is a reply to message #6302] Sat, 15 April 2017 05:08 Go to previous messageGo to next message
AJM is currently offline  AJM
Messages: 2371
Registered: April 2006
Location: Surrey, UK
Senior Member
They are supposed to be empty.

Re: Empty Folder name anomaly [message #6314 is a reply to message #6303] Sun, 16 April 2017 06:13 Go to previous messageGo to next message
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 #6320 is a reply to message #6314] Sun, 16 April 2017 08:17 Go to previous messageGo to next message
AJM is currently offline  AJM
Messages: 2371
Registered: April 2006
Location: Surrey, UK
Senior Member
I shall change that directory name. I shall not be using GitHub.

Re: Empty Folder name anomaly [message #6323 is a reply to message #6320] Sun, 16 April 2017 11:36 Go to previous messageGo to next message
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

Re: Empty Folder name anomaly [message #6331 is a reply to message #6323] Mon, 17 April 2017 04:45 Go to previous message
AJM is currently offline  AJM
Messages: 2371
Registered: April 2006
Location: Surrey, UK
Senior Member
That will be fixed in the next release.

Previous Topic: Radicore Forum 11th Birthday
Next Topic: CSRF check failed
Goto Forum:
  


Current Time: Tue Dec 03 12:58:18 EST 2024

Total time taken to generate the page: 0.01196 seconds