T Archives - [oik] plugins.com https://www.oik-plugins.com/letters/t/ WordPress plugins and themes Tue, 08 Jun 2021 13:30:33 +0000 en-US hourly 1 https://wordpress.org/?v=6.8.3 ThisIs… – experimental Full Site Editing theme https://www.oik-plugins.com/oik-themes/thisis-experimental-full-site-editing-theme/ Wed, 19 May 2021 11:25:10 +0000 https://s.b/oikcom/?post_type=oik-themes&p=46867 Trace Information box https://www.oik-plugins.com/wordpress-plugins-from-oik-plugins/free-oik-plugins/oik-trace-plugin/settings-oik-trace-options/trace-information-box/ Thu, 05 Dec 2019 11:00:48 +0000 https://s.b/oikcom/?page_id=34928

The Information box is displayed on both the Settings > oik trace options and Settings > oik action options admin pages.

It shows some useful information about the site.

]]>
Trace ‘shutdown’ trace functions count https://www.oik-plugins.com/wordpress-plugins-from-oik-plugins/free-oik-plugins/oik-trace-plugin/settings-oik-action-options/action-options-options/trace-shutdown-trace-functions-count/ Wed, 04 Dec 2019 17:30:59 +0000 https://s.b/oikcom/?page_id=34903

Select the Trace 'shutdown' trace functions count checkbox to obtain a summary of the calls to bw_trace2().

Use this table to

]]>
Trace ‘shutdown’ output buffer https://www.oik-plugins.com/wordpress-plugins-from-oik-plugins/free-oik-plugins/oik-trace-plugin/settings-oik-action-options/action-options-options/trace-shutdown-output-buffer/ Wed, 04 Dec 2019 17:09:03 +0000 https://s.b/oikcom/?page_id=34898

Use the Trace 'shutdown' output buffer action to view the contents of any output buffer that hasn't been flushed by 'shutdown'.

Trace records are produced if zlib.output_compression is not set.

  • Output from [api ob_get_status]
  • Buffered content if there is any.
  • The contents of the global variable $theme_ob_stack.

Example

Notes

  • See [api bw_trace_output_buffer]
]]>
Trace ‘shutdown’ saved queries https://www.oik-plugins.com/wordpress-plugins-from-oik-plugins/free-oik-plugins/oik-trace-plugin/settings-oik-action-options/action-options-options/trace-shutdown-saved-queries/ Wed, 04 Dec 2019 16:04:32 +0000 https://s.b/oikcom/?page_id=34889

Select the Trace 'shutdown' saved queries checkbox to obtain a summary of the queries performed during the transaction.

The output is produced in two trace records.

  1. The WPDB global object - providing all the details.
  2. Summarised using [bw_code bw_sql] shortcodes.

Example

and

Notes

  • In my experience the elapsed time of the SQL queries hardly ever reveals a performance problem with data access.
  • When this option is selected the Daily Trace Summary report will show the Query time.
  • See [api bw_trace_saved_queries].
]]>
Trace ‘shutdown’ included files https://www.oik-plugins.com/wordpress-plugins-from-oik-plugins/free-oik-plugins/oik-trace-plugin/settings-oik-action-options/action-options-options/trace-shutdown-included-files/ Wed, 04 Dec 2019 15:49:37 +0000 https://s.b/oikcom/?page_id=34881

Use the Trace 'shutdown' included files checkbox to obtain a report of all the PHP files loaded in the transaction.

There will be hundreds.

]]>
Trace Error, Warning and Notice messages https://www.oik-plugins.com/wordpress-plugins-from-oik-plugins/free-oik-plugins/oik-trace-plugin/settings-oik-action-options/action-options-options/trace-error-warning-and-notice-messages/ Wed, 04 Dec 2019 15:26:05 +0000 https://s.b/oikcom/?page_id=34873

Use the Trace Error, Warning and Notice messages action option to find where your code causes PHP to issue Error, Warning and Notice messages.

Selecting this option causes oik-bwtrace to attach an error handler which will produce two trace records and a bw_backtrace().

The first trace record reports the message with trace level BW_TRACE_ERROR. The second reports the error context with trace level BW_TRACE_VERBOSE.

]]>
Trace deprecated messages https://www.oik-plugins.com/wordpress-plugins-from-oik-plugins/free-oik-plugins/oik-trace-plugin/settings-oik-action-options/action-options-options/trace-deprecated-messages/ Wed, 04 Dec 2019 15:19:39 +0000 https://s.b/oikcom/?page_id=34871

Use the Trace deprecated messages action option to find where your site uses code that has been deprecated.

Selecting this checkbox attaches a trace function to the WordPress hooks that indicate that you're using deprecated logic or otherwise doing it wrong.

When these action hook functions are invoked they each produce a BW_TRACE_ERROR message reporting the problem, followed by a [api bw_backtrace()]

]]>
Trace ‘wp’ global wp_rewrite https://www.oik-plugins.com/wordpress-plugins-from-oik-plugins/free-oik-plugins/oik-trace-plugin/settings-oik-action-options/action-options-options/trace-wp-global-wp_rewrite/ Wed, 04 Dec 2019 14:50:29 +0000 https://s.b/oikcom/?page_id=34868

When the Trace 'wp' global wp_rewrite checkbox is selected the global WP_Rewrite Object is traced.

C:\apache\htdocs\wordpress\wp-content\plugins\oik-bwtrace\includes\oik-actions.php(444:0) bw_trace_wp_rewrite(1) 21 0 2019-12-04T14:46:10+00:00 0.206450 0.021838 cf=wp 30 3254 6291456/6291456 256M F=556 wp_rewrite WP_Rewrite Object 
(     
[permalink_structure] => /%year%/%monthnum%/%day%/%postname%/     [use_trailing_slashes] => 1     
[author_base] => author     
[search_base] => search     
[comments_base] => comments     
[pagination_base] => page     
[comments_pagination_base] => comment-page     
[feed_base] => feed     
[front] => /     
[root] =>      
[index] => index.php     
[matches] =>      
[rules] => Array 
...

See [api bw_trace_wp_rewrite()].

]]>
Trace ‘wp’ action https://www.oik-plugins.com/wordpress-plugins-from-oik-plugins/free-oik-plugins/oik-trace-plugin/settings-oik-action-options/action-options-options/trace-wp-action/ Wed, 04 Dec 2019 14:36:13 +0000 https://s.b/oikcom/?page_id=34861

When the Trace 'wp' action checkbox is selected the WP object is traced with a trace level of BW_TRACE_ALWAYS.

Four trace records are produced showing;

  1. WP Object
  2. Option values for show_on_front, page_on_front and page_for_posts
  3. Whether or not [api is_home()] is true.
  4. Whether or not [api is_front_page()] is true.

Example

C:\apache\htdocs\wordpress\wp-content\plugins\oik-bwtrace\includes\oik-actions.php(424:0) bw_trace_wp(1) 21 0 2019-12-04T14:21:13+00:00 0.220078 0.035864 cf=wp 30 3254 6291456/6291456 256M F=556 1 WP Object 
(     
[public_query_vars] => Array         
(             
[0] => m             
[1] => p             
[2] => posts             
[3] => w             
[4] => cat             
[5] => withcomments             
[6] => withoutcomments             
[7] => s 
...
C:\apache\htdocs\wordpress\wp-content\plugins\oik-bwtrace\includes\oik-actions.php(430:0) bw_trace_wp(2) 22 0 2019-12-04T14:21:13+00:00 0.220398 0.000320 cf=wp 30 3254 6291456/6291456 256M F=556 posts,0,0 show,page,posts
C:\apache\htdocs\wordpress\wp-content\plugins\oik-bwtrace\includes\oik-actions.php(431:0) bw_trace_wp(3) 23 0 2019-12-04T14:21:13+00:00 0.220564 0.000166 cf=wp 30 3254 6291456/6291456 256M F=556 home 1
C:\apache\htdocs\wordpress\wp-content\plugins\oik-bwtrace\includes\oik-actions.php(432:0) bw_trace_wp(4) 24 0 2019-12-04T14:21:13+00:00 0.220685 0.000121 cf=wp 30 3254 6291456/6291456 256M F=556 front 1 

See [api bw_trace_wp]

]]>