Questions tagged [logs]
The logs tag has no usage guidance.
27
questions
2
votes
1answer
42 views
How can I debug `craft\web\User::_validateUserAgentAndIp()` warnings
On a production site, we're seeing a ton of the following warning in our web.log files for (seemingly) every request, creating a ton of noise in the logs and making it hard to spot "real" issues:
&...
1
vote
1answer
41 views
How to read logs?
This might be little vague question, but how do you make logs more readable? Each time Craft runs, tons of log text is generated. Most of it is probably not related to specific problem one is trying ...
1
vote
1answer
76 views
send e-mails via smtp without authentification
I try to send e-mails via SMTP without authentification and I'm getting the following error:
There was an error testing your email settings.
I checked my setup on https://www.smtper.net/. No ...
1
vote
1answer
40 views
I do not have the /craft/storage/runtime/logs/ folder
I am trying to set up SMTP emails using Microsoft 365 and the settings are not working so I need to dig into the logs to find out why.
When I go to find the folder it is not there. Instead I have a /...
1
vote
1answer
56 views
Custom plugin log not logging
I'm having this weird issue that both of my custom plugin logs are not working but all other third party ones including craft.log work fine. By 'not working' I mean the log file is generated, but ...
1
vote
2answers
144 views
Is it possible to stop Craft from logging so much?
I've got a Craft CMS installation that is set to production mode. I notice that my logs get flooded with a bunch of entries which don't seem very useful.
For example, in a matter of several days, I'...
1
vote
1answer
120 views
Craft 3 large log file sizes
I've noticed that Craft 3 log files in storage/logs e.g. web-404s.log and web.log don't seem to have a max size or rotate like with Craft 2.
The web-404s.log file is nearly 10 megs for 1 site now.
...
1
vote
1answer
192 views
Can I find log activity of who deleted a user and who edited an entry?
Is there a 'latest greatest' tool that I can add that has ongoing logging of disable/enable and delete/update activity of users or entries, etc..?
Is there a good way to track this information before ...
1
vote
2answers
74 views
wp-login.php bloating log files every 20-30 seconds
Hi has anyone come across this before. It seems like a hack attempt on the site from a bot trying to access it as a wordpress site. This is obviously causing loads of errors in the log files bloating ...
4
votes
2answers
2k views
Craft CMS 3.0 - Log file?
I've been playing around with Craft 3.0 and am just about to develop a site using it. First thing I see when testing my frontpage template is "Internal server error", styled as a Craft error box.
So ...
7
votes
2answers
1k views
Craft 3 plugins - Logging in a separate *.log file
In Craft 2, it was possible to have your plugin log to a separate file. For example, it would record items to a myplugin.log file. You would simply be able to do it like this...
MyPlugin::log('Lorem ...
1
vote
1answer
64 views
TemplatesController error related to webfont!
I'm getting a very strange 404 error on my live site:
Craft\HttpException: template = fonts/BlissBold-webfont.ttf in /path/to/mydomain/craft/app/controllers/TemplatesController.php:72
I've ...
1
vote
0answers
324 views
Debugging Craft search query: differences between craft.log and dump()
I'm new to Craft, coming over from ExpressionEngine to start doing maintenance on an agency-built Craft site, and I have what may well be a very basic question... please be gentle.
We have a page ...
2
votes
3answers
568 views
Constant exception.Craft\HttpException.404 in logs
My log is getting hammered nonstop by the same error about every second (see image). Any idea what's going on here?
Text is:
Level error
Category exception.Craft\HttpException.404
Message ...
1
vote
1answer
251 views
See 404 error cause by some weird URI in index.php
I have Craft 2.6.2986 in an AWS EC2 environment. My site looks fine, but in my craft.log, I see a lot of 404 errors. We don't have phpmyadmin2011 or phpmyadmin2012 page. Does anyone know how they get ...
2
votes
1answer
73 views
Unknown error in users section, after importing sql dump. Need help understanding logs
I am new to craftcms, and have installed a fresh copy. I am trying to create a lab version of our company's website.
I installed the fresh install, then I imported the database from sql_dump file, ...
1
vote
0answers
365 views
craft_cache / Integrity constraint violation: 1062 Duplicate entry, Serialization failure: 1213 Deadlock
Noticing these errors a lot it my logs. Any idea why, or how to stop it from happening?
Jan 27 15:02:58 myapp.com ool: myapp: [craft] [error] [system.db.CDbCommand] CDbCommand::execute() failed: ...
2
votes
2answers
426 views
GeneratePendingTransforms stuck every time
I get a stuck GeneratePendingTransforms task over and over again. In the first place, I don't know why any transforms are getting created at that point. By now, almost every image transform for every ...
1
vote
1answer
4k views
Getting PHP errors to log in Nginx/PHP-FPM
Under Nginx/PHP-FPM, I can't get PHP errors logged to craft/storage/runtime/logs/phperrors.log as they should be.
Initially, errors weren't logging anywhere, but I discovered I needed:
...
2
votes
1answer
2k views
Craft Error Logging not doing anything?
I have a plugin called EducatorEntriesPlugin, and in the controller of the plugin, I have a method called actionExportEducator. In this method, I am logging an error using the code below, but when the ...
1
vote
1answer
408 views
Craft files and DB out of sync
A client's site is currently showing this message:
Craft does not support backtracking to this version. Please upload
Craft 2773 or later.
I understand how to fix it, but I don't understand how ...
2
votes
1answer
848 views
Can't get Craft running on Heroku
I'm familiar with Heroku, but new to Craft CMS.
In order to get a site running, I followed this tutorial: https://medium.com/@aj1215/craft-cms-on-heroku-79b991665b0b#.8b561b1b4
But the site isn't ...
3
votes
2answers
243 views
Craft CMS Log Rotation
Does Craft have somewhere where I can setup log rotation for the craft.log file, or do admins have to manage that manually?
1
vote
0answers
93 views
How to troubleshoot Inline Image Transform when there is no error logged?
Having some odd issues in 2.5 with image transforms (apparently). They are defined in the template, and saved to a Rackspace Cloud Files container. Often, we are getting a 500 Internal Server Error ...
5
votes
2answers
1k views
Output array to Plugin::log
Just wondering if its possible to output an array to the Plugin::log call? Would be really handy to see if an error occurs, what a data object's values are!
Tried the following:
Plugin::log(array('...
0
votes
1answer
468 views
Javascript console logs in devMode not always showing?
Im only recently noticed that sites with devMode turned on add some helpful information about queries and other logs into the console.
See this screenshot:
but im also noticing that some of our ...
4
votes
1answer
373 views
Set logging path/file to use php://stderr
I'm rethinking our Craft environment/workflow. My idea is to accommodate disposable and/or multiple container (or server) environments. As a result I want to use log aggregation apps like papertrail,...