Hi, I am trying to develop a plugin but don't seem to be able to start...
I have the plugin, it creates the DB tables it needs and then I am stuck. I registered a hook, it's supposed to write to the DB when that gets executed, nothing happens and I can't figure out how to find why.
In bullet points:
I have the plugin, it creates the DB tables it needs and then I am stuck. I registered a hook, it's supposed to write to the DB when that gets executed, nothing happens and I can't figure out how to find why.
In bullet points:
- At [piwik.org] the link to "Enable debug logging and SQL profiling" is wrong, it should link to [piwik.org]
- At [piwik.org] it should be added that except "screen" there are other options (file and database)
- I enabled logging to file, now in piwik/tmp/logs/logger_message.htm I have SQL queries. However, these are all SELECT queries. New visitors are being tracked, so there should be INSERT queries into piwik_log_visit but they are not there.
- I cannot even understand if the hook is being activated ('Tracker.newVisitorInformation' => 'newVisitorInformation') and my code in the newVisitorInformation function runs when a new visitor is recorded. If it does, is there an error in it and where is it logged?
- The query I have there is not in the log (it is an INSERT too).
- How can I display it on screen to verify it is correct?