Hi
There are two logs which keep filling up my servers unnecessarily: Admin Activity and the MyDebug logs.
Is there any way that I can deactivate these please?
Thanks
Hi
There are two logs which keep filling up my servers unnecessarily: Admin Activity and the MyDebug logs.
Is there any way that I can deactivate these please?
Thanks
That is something you don't truly want to do. The logs are generated because something is not right. While the filename looks mostly the same each time, the content of each file (just start with the most recent) will identify what problem is occurring which can lead to a solution. The solution will prevent the need for the log to be generated which is much different than just not generating logs any more...
Note, the content of a myDEBUG-adm file will include a path to your store's admin, please replace the foldername with "admin" when posting here. Also, just before pasting the content, press the hashtag button (#) in the messagebox toolbar.
ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...
@mc covered the case of debug logs above. For admin activity logs, these can be archived off and then cleared:
https://docs.zen-cart.com/user/admin.../#purging-logs
That Software Guy. My Store: Zen Cart Modifications
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.
How about showing us one like @mc suggested?
That Software Guy. My Store: Zen Cart Modifications
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.
The text of the log describes the exact reason. Read it. Google it.not sure why these keep getting generated
The people here don't do anything different.
Steve
github.com/torvista: Spanish Language Pack, Google reCaptcha, Structured Data, Multiple Copy-Move-Delete, Image Checker, BackupMySQL Admin/Auto...
I hope you don't mind me inserting myself into this thread, but I am also have an issue with logs and I have searched online with no luck. If I am out of line, my apologies. I am not well versed in coding so any help would be greatly appreciated.
First off, I am using 1.5.7c
Template: Yourstore
I keep getting the same error log and have tried referring to other files from other templates, but no luck.
The error I am receiving is:
[17-Aug-2021 10:54:40 America/Chicago] Request URI: /index.php?main_page=advanced_search_result&keyword=white&search_in_description=1 &categories_id=&manufacturers_id=&pfrom=&pto=&dfrom=&dto=, IP address: 99.57.241.122
#1 each() called at [/home/xxxxxx/public_html/includes/templates/yourstore/templates/tpl_advanced_search_result_default.php:33]
#2 require(/home/xxxxxx/public_html/includes/templates/yourstore/templates/tpl_advanced_search_result_default.php) called at [/home/xxxxxx/public_html/includes/templates/yourstore/common/tpl_main_page.php:293]
#3 require(/home/xxxxxx/public_html/includes/templates/yourstore/common/tpl_main_page.php) called at [/home/xxxxxx/public_html/index.php:94]
--> PHP Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/xxxxxx/public_html/includes/templates/yourstore/templates/tpl_advanced_search_result_default.php on line 33.
Line #33 reads as:
while (list($key, $value) = each($_GET)) {
the line immediately after:
if ( ($key != 'currency') && ($key != zen_session_name()) && ($key != 'x') && ($key != 'y') ) {
Any input from coders would be greatly appreciated.
Thank you.
Seems pretty clear what the error is: "The each() function is deprecated" in the file /tpl_advanced_search_result_default
Not an error as such but just php complaining...which it will do more of, every time your host upgrades.
It needs to be fixed as what is just a complaint now, will become a shop-stopper in a future php when it no longer allows this function at all. This is a heads-up and you need to deal with it.
So search for that and the first result is (as is often the case) in stack overflow with several examples of code snippets that may trigger this error, with corresponding equivalents that do NOT use each().
However, what I would do after reading that and learning something, is
1) First check your file against the latest version/default files....and I see that "each" is not used in the referenced file....meaning that your override version is not updated to 157c at all.
2) Compare that file with the development version on GitHub....chances are someone has already fixed it and you'll find a snippet there to copy.
So between those and stack overflow...a fix can be attempted.
Steve
github.com/torvista: Spanish Language Pack, Google reCaptcha, Structured Data, Multiple Copy-Move-Delete, Image Checker, BackupMySQL Admin/Auto...
To go that even extra step forward from what torvista said recently: So the searching about which torvista described would be something like: 'the each function is depricated php'.
Such should lead to many sites where something like: list() = each is no longer supported. Now, unfortunately I don't have the associated docs entry bookmarked, but that specific issue is captured in the docs for Zen Cart. I believe it is in the developer side of the information and associated with updating plugins.
ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...
Bookmarks