debug_to_log writing to file instead of log

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
JamesT
Forum Members
Forum Members
Posts: 175
Joined: Tue Sep 08, 2015 10:41 am

debug_to_log writing to file instead of log

Post by JamesT »

I have a file in my public_html directory:

Code: Select all

-rw-r--r--  1 xxxxx 51553   100 Dec 29 15:31 Is missing in the languagefile: NMS
The contents of the file are:

Code: Select all

Debug display of 'Languagestring: "unsubscribe"':(0.337978) - (usage: 12949008) - (peak: 13015208)
I believe this file was put there by the debug_to_log() function. Is this meant to be written to the Admin Log or to a file?



----------------------------------------------
Cms Version: 2.1.1
Installed Modules:
CMSMailer: 5.2.4
FileManager: 1.5.2
ModuleManager: 2.0.1
News: 2.50.3
Search: 1.50.2
ThemeManager: 1.1.8
Captcha: 0.5.2
FormBuilder: 0.8.1.2
MicroTiny: 2.0.2
AdminSearch: 1.0
CGExtensions: 1.51
CGJobMgr: 1.3.4
NMS: 2.10
Banners: 2.7.6
CGSimpleSmarty: 2.0.2
CGSmartImage: 1.20.5
JQueryTools: 1.3.8
CGBlog: 1.13.3
CMSContentManager: 1.1
DesignManager: 1.1.1
Navigator: 1.0.2

Config Information:
php_memory_limit:
max_upload_size: 100000000
url_rewriting: none
page_extension:
query_var: page
auto_alias_content: true
locale:
set_names: true
timezone: Europe/London
permissive_smarty: true

Php Information:
phpversion: 7.0.0
md5_function: On (True)
json_function: On (True)
gd_version: 2
tempnam_function: On (True)
magic_quotes_runtime: Off (False)
E_STRICT: 2048
E_DEPRECATED: 0
test_file_timedifference: No time difference found
test_db_timedifference: No time difference found
create_dir_and_file: 1
memory_limit: 128M
max_execution_time: 60
register_globals: Off (False)
output_buffering: On
disable_functions:
open_basedir:
test_remote_url: Success
file_uploads: On (True)
post_max_size: 100M
upload_max_filesize: 100M
session_save_path: /tmp (0777)
session_use_cookies: On (True)
xml_function: On (True)
xmlreader_class: On (True)
check_ini_set: On (True)
curl: On

Performance Information:
allow_browser_cache: Off (False)
browser_cache_expiry: 60
php_opcache: Off (False)
smarty_cache: Off (False)
smarty_compilecheck: Off (False)
smarty_cache_udt: Off (False)
auto_clear_cache_age: On (True)
Server Information:
Server Software: Apache
Server Api: cgi-fcgi
Server Os: Linux 2.6.32.21-grsec On x86_64
Server Db Type: MySQL (mysqli)
Server Db Version: 5.6.21
Server Db Grants: Found a "GRANT ALL" statement that appears to be suitable
----------------------------------------------
JamesT
Forum Members
Forum Members
Posts: 175
Joined: Tue Sep 08, 2015 10:41 am

Re: debug_to_log writing to file instead of log

Post by JamesT »

On closer analysis, this appears to be due to a change in class.CmsLangOperations.php whereby audit() was changed to debug_to_log().

Perhaps it would be neater to write this message to the Admin Log instead?
Post Reply

Return to “CMSMS Core”