Exception
NoSuchPostBySpecifiedID Exception thrown with message "NoSuchPostBySpecifiedID" Stacktrace: #4 Exception in /home/743387.cloudwaysapps.com/gqysvfgfzb/public_html/wp-content/plugins/alpine-basicscw/hooks/0100_plugins_loaded.php:56 #3 get_post_by_slug in /home/743387.cloudwaysapps.com/gqysvfgfzb/public_html/wp-content/themes/continuum18/controllers/single-events.php:18 #2 include in /home/743387.cloudwaysapps.com/gqysvfgfzb/public_html/wp-includes/template-loader.php:106 #1 require_once in /home/743387.cloudwaysapps.com/gqysvfgfzb/public_html/wp-blog-header.php:19 #0 require in /home/743387.cloudwaysapps.com/gqysvfgfzb/public_html/index.php:17
Stack frames (5)
4
Exception
/home/743387.cloudwaysapps.com/gqysvfgfzb/public_html/wp-content/plugins/alpine-basicscw/hooks/0100_plugins_loaded.php56
3
get_post_by_slug
/home/743387.cloudwaysapps.com/gqysvfgfzb/public_html/wp-content/themes/continuum18/controllers/single-events.php18
2
include
/home/743387.cloudwaysapps.com/gqysvfgfzb/public_html/wp-includes/template-loader.php106
1
require_once
/home/743387.cloudwaysapps.com/gqysvfgfzb/public_html/wp-blog-header.php19
0
require
/home/743387.cloudwaysapps.com/gqysvfgfzb/public_html/index.php17
/home/743387.cloudwaysapps.com/gqysvfgfzb/public_html/wp-content/plugins/alpine-basicscw/hooks/0100_plugins_loaded.php
                abLog::f( __FILE__, $msg );
            }
 
        }
    }
 
 
    // In case this does not exist
    if (!function_exists('get_post_by_slug')) {
        function get_post_by_slug( $slug, $type ) {
        
            $posts = get_posts(array(
                    'name' => $slug,
                    'posts_per_page' => 1,
                    'post_type' => $type,
                    'post_status' => 'publish'
            ));
            
            if(! $posts ) {
                throw new Exception("NoSuchPostBySpecifiedID");
            }
        
            return $posts[0];
        }
    }
 
    return;
}
 
//
// Hook initial test of get variables.
//
add_action( 'plugins_loaded', 'alpinebasics_plugins_loaded' );
 
 
Arguments
  1. "NoSuchPostBySpecifiedID"
    
/home/743387.cloudwaysapps.com/gqysvfgfzb/public_html/wp-content/themes/continuum18/controllers/single-events.php
<?php
 
    // Standard Wordpress header
    get_header();
     
   //  use Timber\Timber;
 
    // http://continuum18.app66.alp1n3.com/practitioners/beverly-buehner-continuum-movement-teacher/
 
    global $pargs;
 
    $slug = $pargs['slug'];
 
    // single-practitioners.php
 
    $context = Timber::get_context();
 
    $context['post'] =  get_post_by_slug( $slug, 'event' );
 
    /*
 
*/
 
    $context['post_custom']['profile_image'] = 0;
 
    $post_thumbnail_id = get_post_thumbnail_id( $context['post']->ID  );
    if ( !empty( $post_thumbnail_id ) ) {
        $context['post_custom']['profile_image'] = new TimberImage( $post_thumbnail_id );
    }
    $context['post_custom']['cover_image'] =  get_post_meta( $context['post']->ID, "cover_image", true );
    
    $cover_image = $context['post_custom']['cover_image'];
    
    $context['event_cover_image'] = $cover_image["guid"] ?? 0;
    // $context['event_cover_image'] = wp_get_attachment_image($cover_image["ID"]);
    
//    d( $context['post_custom'] );
 
    $context['post_content'] = apply_filters( 'the_content', $context['post']->post_content );
 
/home/743387.cloudwaysapps.com/gqysvfgfzb/public_html/wp-includes/template-loader.php
            }
 
            break;
        }
    }
 
    if ( ! $template ) {
        $template = get_index_template();
    }
 
    /**
     * Filters the path of the current template before including it.
     *
     * @since 3.0.0
     *
     * @param string $template The path of the template to include.
     */
    $template = apply_filters( 'template_include', $template );
    if ( $template ) {
        include $template;
    } elseif ( current_user_can( 'switch_themes' ) ) {
        $theme = wp_get_theme();
        if ( $theme->errors() ) {
            wp_die( $theme->errors() );
        }
    }
    return;
}
 
Arguments
  1. "/home/743387.cloudwaysapps.com/gqysvfgfzb/public_html/wp-content/themes/continuum18/controllers/single-events.php"
    
/home/743387.cloudwaysapps.com/gqysvfgfzb/public_html/wp-blog-header.php
<?php
/**
 * Loads the WordPress environment and template.
 *
 * @package WordPress
 */
 
if ( ! isset( $wp_did_header ) ) {
 
    $wp_did_header = true;
 
    // Load the WordPress library.
    require_once __DIR__ . '/wp-load.php';
 
    // Set up the WordPress query.
    wp();
 
    // Load the theme template.
    require_once ABSPATH . WPINC . '/template-loader.php';
 
}
 
Arguments
  1. "/home/743387.cloudwaysapps.com/gqysvfgfzb/public_html/wp-includes/template-loader.php"
    
/home/743387.cloudwaysapps.com/gqysvfgfzb/public_html/index.php
<?php
/**
 * Front to the WordPress application. This file doesn't do anything, but loads
 * wp-blog-header.php which does and tells WordPress to load the theme.
 *
 * @package WordPress
 */
 
/**
 * Tells WordPress to load the WordPress theme and output it.
 *
 * @var bool
 */
define( 'WP_USE_THEMES', true );
 
/** Loads the WordPress Environment and Template */
require __DIR__ . '/wp-blog-header.php';
 
Arguments
  1. "/home/743387.cloudwaysapps.com/gqysvfgfzb/public_html/wp-blog-header.php"
    

Environment & details:

empty
empty
empty
empty
empty
Key Value
SERVER_SOFTWARE
"Apache/2.4.54 (Debian)"
REQUEST_URI
"/events/continuum-movement-training-program-module-5-4/"
WP_REDIS_DISABLED
"0"
USER
"gqysvfgfzb"
HOME
"/home/743387.cloudwaysapps.com/gqysvfgfzb"
SCRIPT_NAME
"/index.php"
QUERY_STRING
""
REQUEST_METHOD
"GET"
SERVER_PROTOCOL
"HTTP/1.1"
GATEWAY_INTERFACE
"CGI/1.1"
REDIRECT_URL
"/events/continuum-movement-training-program-module-5-4/"
REMOTE_PORT
"23842"
SCRIPT_FILENAME
"/home/743387.cloudwaysapps.com/gqysvfgfzb/public_html/index.php"
SERVER_ADMIN
"[no address given]"
CONTEXT_DOCUMENT_ROOT
"/home/743387.cloudwaysapps.com/gqysvfgfzb/public_html/"
CONTEXT_PREFIX
""
REQUEST_SCHEME
"http"
DOCUMENT_ROOT
"/home/743387.cloudwaysapps.com/gqysvfgfzb/public_html/"
REMOTE_ADDR
"127.0.0.1"
SERVER_PORT
"80"
SERVER_ADDR
"127.0.0.1"
SERVER_NAME
"continuummovement.com"
SERVER_SIGNATURE
"<address>Apache/2.4.54 (Debian) Server at continuummovement.com Port 80</address>\n"
PATH
"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
HTTP_X_VARNISH
"826410"
HTTP_ACCEPT_ENCODING
"gzip"
HTTP_HOST
"continuummovement.com"
HTTP_X_FORWARDED_FOR
"3.239.117.1"
HTTP_CDN_LOOP
"cloudflare"
HTTP_CF_IPCOUNTRY
"US"
HTTP_CF_CONNECTING_IP
"3.239.117.1"
HTTP_ACCEPT_LANGUAGE
"en-US,en;q=0.5"
HTTP_ACCEPT
"text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"
HTTP_USER_AGENT
"CCBot/2.0 (https://commoncrawl.org/faq/)"
HTTP_CF_VISITOR
"{\"scheme\":\"https\"}"
HTTP_CF_RAY
"7aca9dfa7d7a2028-IAD"
HTTP_X_VERSION
"60"
HTTP_X_APP_USER
"gqysvfgfzb"
HTTP_X_APPLICATION
"wordpress"
HTTP_X_FORWARDED_HOST
"continuummovement.com"
HTTP_X_FORWARDED_PROTO
"https"
HTTP_X_CLIENT_REAL_IP
"3.239.117.1"
HTTP_X_REAL_IP
"3.239.117.1"
BREEZE_BROWSER_CACHE_ON
"1"
BREEZE_GZIP_ON
"1"
SCRIPT_URI
"http://continuummovement.com/events/continuum-movement-training-program-module-5-4/"
SCRIPT_URL
"/events/continuum-movement-training-program-module-5-4/"
HTTP_AUTHORIZATION
""
HTTPS
"on"
cw_allowed_ip
"1"
REDIRECT_STATUS
"200"
REDIRECT_BREEZE_BROWSER_CACHE_ON
"1"
REDIRECT_BREEZE_GZIP_ON
"1"
REDIRECT_SCRIPT_URI
"http://continuummovement.com/events/continuum-movement-training-program-module-5-4/"
REDIRECT_SCRIPT_URL
"/events/continuum-movement-training-program-module-5-4/"
REDIRECT_HTTP_AUTHORIZATION
""
REDIRECT_HTTPS
"on"
REDIRECT_cw_allowed_ip
"1"
FCGI_ROLE
"RESPONDER"
PHP_SELF
"/index.php"
REQUEST_TIME_FLOAT
1679615850.7668
REQUEST_TIME
1679615850
empty
0. Whoops\Handler\PrettyPageHandler