Photo credit: Books by Abee5 on Flickr.

Debug Report

/web/virtual/004/flaginc.org/htdocs/wp-content/themes/flag/functions.php

adding infinite scroll support [functions.php>flag_infinite_scroll_init>50]

/web/virtual/004/flaginc.org/htdocs/wp-content/themes/flag/attachment.php

/web/virtual/004/flaginc.org/htdocs/wp-content/themes/flag/publication.php

/web/virtual/004/flaginc.org/htdocs/wp-content/themes/flag/header.php

/web/virtual/004/flaginc.org/htdocs/wp-content/themes/flag/heroimage.php

image 1253 ID

/web/virtual/004/flaginc.org/htdocs/wp-content/themes/flag/footer.php

/web/virtual/004/flaginc.org/htdocs/wp-content/themes/flag/loginlink.php

/web/virtual/004/flaginc.org/htdocs/wp-content/themes/flag/google.php

$wp_query

WP_Query Object
(
    [query] => Array
        (
            [page] => 
            [publication] => farmers-guide-to-organic-contracts/fgoc_ch07
            [post_type] => publication
            [name] => farmers-guide-to-organic-contracts/fgoc_ch07
        )

    [query_vars] => Array
        (
            [page] => 0
            [publication] => farmers-guide-to-organic-contracts/fgoc_ch07
            [post_type] => attachment
            [name] => fgoc_ch07
            [error] => 
            [m] => 
            [p] => 148
            [post_parent] => 
            [subpost] => 
            [subpost_id] => 
            [attachment] => 
            [attachment_id] => 148
            [pagename] => fgoc_ch07
            [page_id] => 0
            [second] => 
            [minute] => 
            [hour] => 
            [day] => 0
            [monthnum] => 0
            [year] => 0
            [w] => 0
            [category_name] => 
            [tag] => 
            [cat] => 
            [tag_id] => 
            [author] => 
            [author_name] => 
            [feed] => 
            [tb] => 
            [paged] => 0
            [meta_key] => 
            [meta_value] => 
            [preview] => 
            [s] => 
            [sentence] => 
            [title] => 
            [fields] => 
            [menu_order] => 
            [embed] => 
            [category__in] => Array
                (
                )

            [category__not_in] => Array
                (
                )

            [category__and] => Array
                (
                )

            [post__in] => Array
                (
                )

            [post__not_in] => Array
                (
                )

            [post_name__in] => Array
                (
                )

            [tag__in] => Array
                (
                )

            [tag__not_in] => Array
                (
                )

            [tag__and] => Array
                (
                )

            [tag_slug__in] => Array
                (
                )

            [tag_slug__and] => Array
                (
                )

            [post_parent__in] => Array
                (
                )

            [post_parent__not_in] => Array
                (
                )

            [author__in] => Array
                (
                )

            [author__not_in] => Array
                (
                )

            [search_columns] => Array
                (
                )

            [ignore_sticky_posts] => 
            [suppress_filters] => 
            [cache_results] => 1
            [update_post_term_cache] => 1
            [update_menu_item_cache] => 
            [lazy_load_term_meta] => 1
            [update_post_meta_cache] => 1
            [posts_per_page] => 10
            [nopaging] => 
            [comments_per_page] => 50
            [no_found_rows] => 
            [order] => DESC
        )

    [tax_query] => 
    [meta_query] => WP_Meta_Query Object
        (
            [queries] => Array
                (
                )

            [relation] => 
            [meta_table] => 
            [meta_id_column] => 
            [primary_table] => 
            [primary_id_column] => 
            [table_aliases:protected] => Array
                (
                )

            [clauses:protected] => Array
                (
                )

            [has_or_relation:protected] => 
        )

    [date_query] => 
    [queried_object] => WP_Post Object
        (
            [ID] => 148
            [post_author] => 7
            [post_date] => 2013-03-09 20:39:52
            [post_date_gmt] => 2013-03-10 02:39:52
            [post_content] => 
            [post_title] => Farmers’ Guide to Organic Contracts Ch 7
            [post_excerpt] => 
            [post_status] => inherit
            [comment_status] => open
            [ping_status] => open
            [post_password] => 
            [post_name] => fgoc_ch07
            [to_ping] => 
            [pinged] => 
            [post_modified] => 2013-03-09 20:39:52
            [post_modified_gmt] => 2013-03-10 02:39:52
            [post_content_filtered] => 
            [post_parent] => 86
            [guid] => http://flag.wake.io/wp-content/uploads/2013/03/fgoc_ch07.pdf
            [menu_order] => 0
            [post_type] => attachment
            [post_mime_type] => application/pdf
            [comment_count] => 0
            [filter] => raw
        )

    [queried_object_id] => 148
    [request] => SELECT   wpowc_posts.*
					 FROM wpowc_posts 
					 WHERE 1=1  AND (wpowc_posts.ID = '148') AND wpowc_posts.ID = 148 AND wpowc_posts.post_type = 'attachment'
					 
					 ORDER BY wpowc_posts.post_date DESC
					 
    [posts] => Array
        (
            [0] => WP_Post Object
                (
                    [ID] => 148
                    [post_author] => 7
                    [post_date] => 2013-03-09 20:39:52
                    [post_date_gmt] => 2013-03-10 02:39:52
                    [post_content] => 
                    [post_title] => Farmers’ Guide to Organic Contracts Ch 7
                    [post_excerpt] => 
                    [post_status] => inherit
                    [comment_status] => open
                    [ping_status] => open
                    [post_password] => 
                    [post_name] => fgoc_ch07
                    [to_ping] => 
                    [pinged] => 
                    [post_modified] => 2013-03-09 20:39:52
                    [post_modified_gmt] => 2013-03-10 02:39:52
                    [post_content_filtered] => 
                    [post_parent] => 86
                    [guid] => http://flag.wake.io/wp-content/uploads/2013/03/fgoc_ch07.pdf
                    [menu_order] => 0
                    [post_type] => attachment
                    [post_mime_type] => application/pdf
                    [comment_count] => 0
                    [filter] => raw
                )

        )

    [post_count] => 1
    [current_post] => -1
    [before_loop] => 
    [in_the_loop] => 
    [post] => WP_Post Object
        (
            [ID] => 148
            [post_author] => 7
            [post_date] => 2013-03-09 20:39:52
            [post_date_gmt] => 2013-03-10 02:39:52
            [post_content] => 
            [post_title] => Farmers’ Guide to Organic Contracts Ch 7
            [post_excerpt] => 
            [post_status] => inherit
            [comment_status] => open
            [ping_status] => open
            [post_password] => 
            [post_name] => fgoc_ch07
            [to_ping] => 
            [pinged] => 
            [post_modified] => 2013-03-09 20:39:52
            [post_modified_gmt] => 2013-03-10 02:39:52
            [post_content_filtered] => 
            [post_parent] => 86
            [guid] => http://flag.wake.io/wp-content/uploads/2013/03/fgoc_ch07.pdf
            [menu_order] => 0
            [post_type] => attachment
            [post_mime_type] => application/pdf
            [comment_count] => 0
            [filter] => raw
        )

    [comment_count] => 0
    [current_comment] => -1
    [found_posts] => 1
    [max_num_pages] => 0
    [max_num_comment_pages] => 0
    [is_single] => 1
    [is_preview] => 
    [is_page] => 1
    [is_archive] => 
    [is_date] => 
    [is_year] => 
    [is_month] => 
    [is_day] => 
    [is_time] => 
    [is_author] => 
    [is_category] => 
    [is_tag] => 
    [is_tax] => 
    [is_search] => 
    [is_feed] => 
    [is_comment_feed] => 
    [is_trackback] => 
    [is_home] => 
    [is_privacy_policy] => 
    [is_404] => 
    [is_embed] => 
    [is_paged] => 
    [is_admin] => 
    [is_attachment] => 1
    [is_singular] => 1
    [is_robots] => 
    [is_favicon] => 
    [is_posts_page] => 
    [is_post_type_archive] => 
    [query_vars_hash:WP_Query:private] => c5defcacf24614723681fef40bfe5f0e
    [query_vars_changed:WP_Query:private] => 
    [thumbnails_cached] => 
    [allow_query_attachment_by_filename:protected] => 
    [stopwords:WP_Query:private] => 
    [compat_fields:WP_Query:private] => Array
        (
            [0] => query_vars_hash
            [1] => query_vars_changed
        )

    [compat_methods:WP_Query:private] => Array
        (
            [0] => init_query_flags
            [1] => parse_tax_query
        )

)

$_ENV

Array
(
    [PATH] => /sbin:/bin:/usr/sbin:/usr/bin
    [REDIRECT_STATUS] => 200
    [PHP_FCGI_MAX_REQUESTS] => 10100
    [PWD] => /web/cluster/common/cgi-bin
    [HTTP_CONNECTION] => close
    [SCRIPT_NAME] => /index.php
    [REQUEST_URI] => /publication/farmers-guide-to-organic-contracts/fgoc_ch07/
    [QUERY_STRING] => 
    [REQUEST_METHOD] => GET
    [SERVER_PROTOCOL] => HTTP/1.1
    [GATEWAY_INTERFACE] => CGI/1.1
    [REDIRECT_URL] => /publication/farmers-guide-to-organic-contracts/fgoc_ch07/
    [REMOTE_PORT] => 41090
    [SCRIPT_FILENAME] => /web/virtual/004/flaginc.org/htdocs/index.php
    [SERVER_ADMIN] => webmaster@flaginc.org
    [CONTEXT_DOCUMENT_ROOT] => /web/virtual/004/flaginc.org/htdocs
    [CONTEXT_PREFIX] => 
    [REQUEST_SCHEME] => http
    [DOCUMENT_ROOT] => /web/virtual/004/flaginc.org/htdocs
    [REMOTE_ADDR] => 18.222.23.31
    [REMOTE_HOST] => ec2-18-222-23-31.us-east-2.compute.amazonaws.com
    [SERVER_PORT] => 80
    [SERVER_ADDR] => 2602:ff3a:7::62
    [SERVER_NAME] => www.flaginc.org
    [SERVER_SOFTWARE] => Apache
    [SERVER_SIGNATURE] => 
    [LD_LIBRARY_PATH] => /usr/local/lib:/usr/local/lib
    [HTTP_X_FORWARDED_FOR] => 18.222.23.31
    [HTTP_ACCEPT_ENCODING] => gzip, deflate
    [HTTP_ACCEPT] => text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7
    [HTTP_USER_AGENT] => Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
    [HTTP_UPGRADE_INSECURE_REQUESTS] => 1
    [HTTP_CACHE_CONTROL] => no-cache
    [HTTP_PRAGMA] => no-cache
    [HTTP_HOST] => www.flaginc.org
    [db_quota] => 1000
    [db_user] => flaginc_org_5s5m
    [db_host] => 10.10.94.182
    [database] => flaginc_org_5s5m
    [HTTP_AUTHORIZATION] => 
    [UNIQUE_ID] => Z36X2fngbwReWxdPCl6dTQAAAAI
    [REDIRECT_db_quota] => 1000
    [REDIRECT_db_user] => flaginc_org_5s5m
    [REDIRECT_db_host] => 10.10.94.182
    [REDIRECT_database] => flaginc_org_5s5m
    [REDIRECT_HTTP_AUTHORIZATION] => 
    [REDIRECT_UNIQUE_ID] => Z36X2fngbwReWxdPCl6dTQAAAAI
    [FCGI_ROLE] => RESPONDER
)