Skip to content

Conversation

@tijmenbruggeman
Copy link
Collaborator

@tijmenbruggeman tijmenbruggeman commented Jan 6, 2026

We had two customers reporting two different issues which we could not figure out. Often times this is due to setup configurations but it is hard to figure out.

Having some diagnostics and logs should make it easier to troubleshoot these issues.

Good to know

  • Max 2MB log file, if limit is reached, old log will be deleted and new one will be created. This is the simplest method and prevents from adding rotation;
  • Turn off logs will delete the log file;
  • Requires ziparchive to download;
  • No sensitive data will be logged;
  • Logging will slow down performance as it will open and write the log entry each time something compresses;

Screenshots
Screenshot 2026-01-06 at 16 51 45
Customers can turn on logging and download a diagnostics zip file from within settings

image _Logs are formatted nicely_

* @since 3.6.8
* @var int
*/
const API_TIMEOUT = 10;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the connecttimeout should be short, but the full request can be quite long, depending on the complexity, load on the servers and size of the image the compression can take a long time.

global $wpdb;

return array(
'php_version' => phpversion(),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wouldnt it make sense to include the output of phpinfo()? then we can omit a lot of the code here.

I do not know if phpinfo() contains sensitive data though, if it does, we should not do it.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could store a phpinfo() html file in the diagnostics zip. Not sure if that is valuable though.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might use the level below env see flags. It could be valuable regarding php.ini config right?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants