Client error: `GET https://api.rightsdesk.com/api/public/directory/search?page=1&tag=mo&role=contributor&sort=last_name%3Aasc&size=30` resulted in a `401 Unauthorized` response: {"message":"Unauthenticated."} (View: /var/www/mohrbooks.com/wp-content/themes/mohrbooks-v4/resources/views/partials/content-page.blade.php) (View: /var/www/mohrbooks.com/wp-content/themes/mohrbooks-v4/resources/views/partials/content-page.blade.php) (500 Internal Server Error)

Symfony Exception

ClientException ViewException ViewException

HTTP 500 Internal Server Error

Client error: `GET https://api.rightsdesk.com/api/public/directory/search?page=1&tag=mo&role=contributor&sort=last_name%3Aasc&size=30` resulted in a `401 Unauthorized` response:
{"message":"Unauthenticated."}
(View: /var/www/mohrbooks.com/wp-content/themes/mohrbooks-v4/resources/views/partials/content-page.blade.php) (View: /var/www/mohrbooks.com/wp-content/themes/mohrbooks-v4/resources/views/partials/content-page.blade.php)

Exceptions 3

Illuminate\View\ ViewException

  1.         if ($summary !== null) {
  2.             $message .= ":\n{$summary}\n";
  3.         }
  4.         return new $className($message$request$response$previous$handlerContext);
  5.     }
  6.     /**
  7.      * Obfuscates URI if there is a username and a password present
  8.      */
  1.         // flush out any stray output that might get out before an error occurs or
  2.         // an exception is thrown. This prevents any partial views from leaking.
  3.         try {
  4.             $this->files->getRequire($path$data);
  5.         } catch (Throwable $e) {
  6.             $this->handleViewException($e$obLevel);
  7.         }
  8.         return ltrim(ob_get_clean());
  9.     }
  1.         // Once we have the path to the compiled file, we will evaluate the paths with
  2.         // typical PHP just like any other templates. We also keep a stack of views
  3.         // which have been rendered for right exception messages to be generated.
  4.         try {
  5.             $results $this->evaluatePath($this->compiler->getCompiledPath($path), $data);
  6.         } catch (ViewException $e) {
  7.             if (! str($e->getMessage())->contains(['No such file or directory''File does not exist at path'])) {
  8.                 throw $e;
  9.             }
  1.      *
  2.      * @return string
  3.      */
  4.     protected function getContents()
  5.     {
  6.         return $this->engine->get($this->path$this->gatherData());
  7.     }
  8.     /**
  9.      * Get the data bound to the view instance.
  10.      *
  1.         // clear out the sections for any separate views that may be rendered.
  2.         $this->factory->incrementRender();
  3.         $this->factory->callComposer($this);
  4.         $contents $this->getContents();
  5.         // Once we've finished rendering the view, we'll decrement the render count
  6.         // so that each section gets flushed out next time a view is created and
  7.         // no old sections are staying around in the memory of an environment.
  8.         $this->factory->decrementRender();
  1.      * @throws \Throwable
  2.      */
  3.     public function render(callable $callback null)
  4.     {
  5.         try {
  6.             $contents $this->renderContents();
  7.             $response = isset($callback) ? $callback($this$contents) : null;
  8.             // Once we have the contents of the view, we will flush the sections if we are
  9.             // done rendering all views so that there is nothing left hanging over when
  1.   <body <?php body_class(); ?>>
  2.     <?php wp_body_open(); ?>
  3.     <?php do_action('get_header'); ?>
  4.     <div id="app">
  5.       <?php echo view(app('sage.view'), app('sage.data'))->render(); ?>
  6.     </div>
  7.     <?php do_action('get_footer'); ?>
  8.     <?php wp_footer(); ?>
  9.   </body>
include('/var/www/mohrbooks.com/wp-content/themes/mohrbooks-v4/index.php') in /var/www/mohrbooks.com/wp-includes/template-loader.php (line 106)
  1.      *
  2.      * @param string $template The path of the template to include.
  3.      */
  4.     $template apply_filters'template_include'$template );
  5.     if ( $template ) {
  6.         include $template;
  7.     } elseif ( current_user_can'switch_themes' ) ) {
  8.         $theme wp_get_theme();
  9.         if ( $theme->errors() ) {
  10.             wp_die$theme->errors() );
  11.         }
require_once('/var/www/mohrbooks.com/wp-includes/template-loader.php') in /var/www/mohrbooks.com/wp-blog-header.php (line 19)
  1.     // Set up the WordPress query.
  2.     wp();
  3.     // Load the theme template.
  4.     require_once ABSPATH WPINC '/template-loader.php';
  5. }
require('/var/www/mohrbooks.com/wp-blog-header.php') in /var/www/mohrbooks.com/index.php (line 17)
  1.  * @var bool
  2.  */
  3. define'WP_USE_THEMES'true );
  4. /** Loads the WordPress Environment and Template */
  5. require __DIR__ '/wp-blog-header.php';

Illuminate\View\ ViewException

Client error: `GET https://api.rightsdesk.com/api/public/directory/search?page=1&tag=mo&role=contributor&sort=last_name%3Aasc&size=30` resulted in a `401 Unauthorized` response: {"message":"Unauthenticated."} (View: /var/www/mohrbooks.com/wp-content/themes/mohrbooks-v4/resources/views/partials/content-page.blade.php)

  1.         if ($summary !== null) {
  2.             $message .= ":\n{$summary}\n";
  3.         }
  4.         return new $className($message$request$response$previous$handlerContext);
  5.     }
  6.     /**
  7.      * Obfuscates URI if there is a username and a password present
  8.      */
  1.         // flush out any stray output that might get out before an error occurs or
  2.         // an exception is thrown. This prevents any partial views from leaking.
  3.         try {
  4.             $this->files->getRequire($path$data);
  5.         } catch (Throwable $e) {
  6.             $this->handleViewException($e$obLevel);
  7.         }
  8.         return ltrim(ob_get_clean());
  9.     }
  1.         // Once we have the path to the compiled file, we will evaluate the paths with
  2.         // typical PHP just like any other templates. We also keep a stack of views
  3.         // which have been rendered for right exception messages to be generated.
  4.         try {
  5.             $results $this->evaluatePath($this->compiler->getCompiledPath($path), $data);
  6.         } catch (ViewException $e) {
  7.             if (! str($e->getMessage())->contains(['No such file or directory''File does not exist at path'])) {
  8.                 throw $e;
  9.             }
  1.      *
  2.      * @return string
  3.      */
  4.     protected function getContents()
  5.     {
  6.         return $this->engine->get($this->path$this->gatherData());
  7.     }
  8.     /**
  9.      * Get the data bound to the view instance.
  10.      *
  1.         // clear out the sections for any separate views that may be rendered.
  2.         $this->factory->incrementRender();
  3.         $this->factory->callComposer($this);
  4.         $contents $this->getContents();
  5.         // Once we've finished rendering the view, we'll decrement the render count
  6.         // so that each section gets flushed out next time a view is created and
  7.         // no old sections are staying around in the memory of an environment.
  8.         $this->factory->decrementRender();
  1.      * @throws \Throwable
  2.      */
  3.     public function render(callable $callback null)
  4.     {
  5.         try {
  6.             $contents $this->renderContents();
  7.             $response = isset($callback) ? $callback($this$contents) : null;
  8.             // Once we have the contents of the view, we will flush the sections if we are
  9.             // done rendering all views so that there is nothing left hanging over when
  1. <?php $__env->startSection('content'); ?>
  2.   <?php while(have_posts()): ?> <?php (the_post()); ?>
  3.     <?php echo $__env->first(['partials.content-page''partials.content'], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data''__path']))->render(); ?>
  4.   <?php endwhile; ?>
  5. <?php $__env->stopSection(); ?>
  6. <?php echo $__env->make('layouts.app'\Illuminate\Support\Arr::except(get_defined_vars(), ['__data''__path']))->render(); ?><?php /**PATH /var/www/mohrbooks.com/wp-content/themes/mohrbooks-v4/resources/views/page.blade.php ENDPATH**/ ?>
  1.             $__data $data;
  2.             return (static function () use ($__path$__data) {
  3.                 extract($__dataEXTR_SKIP);
  4.                 return require $__path;
  5.             })();
  6.         }
  7.         throw new FileNotFoundException("File does not exist at path {$path}.");
  8.     }
  1.             return (static function () use ($__path$__data) {
  2.                 extract($__dataEXTR_SKIP);
  3.                 return require $__path;
  4.             })();
  5.         }
  6.         throw new FileNotFoundException("File does not exist at path {$path}.");
  7.     }
  1.         // We'll evaluate the contents of the view inside a try/catch block so we can
  2.         // flush out any stray output that might get out before an error occurs or
  3.         // an exception is thrown. This prevents any partial views from leaking.
  4.         try {
  5.             $this->files->getRequire($path$data);
  6.         } catch (Throwable $e) {
  7.             $this->handleViewException($e$obLevel);
  8.         }
  9.         return ltrim(ob_get_clean());
  1.         // Once we have the path to the compiled file, we will evaluate the paths with
  2.         // typical PHP just like any other templates. We also keep a stack of views
  3.         // which have been rendered for right exception messages to be generated.
  4.         try {
  5.             $results $this->evaluatePath($this->compiler->getCompiledPath($path), $data);
  6.         } catch (ViewException $e) {
  7.             if (! str($e->getMessage())->contains(['No such file or directory''File does not exist at path'])) {
  8.                 throw $e;
  9.             }
  1.      *
  2.      * @return string
  3.      */
  4.     protected function getContents()
  5.     {
  6.         return $this->engine->get($this->path$this->gatherData());
  7.     }
  8.     /**
  9.      * Get the data bound to the view instance.
  10.      *
  1.         // clear out the sections for any separate views that may be rendered.
  2.         $this->factory->incrementRender();
  3.         $this->factory->callComposer($this);
  4.         $contents $this->getContents();
  5.         // Once we've finished rendering the view, we'll decrement the render count
  6.         // so that each section gets flushed out next time a view is created and
  7.         // no old sections are staying around in the memory of an environment.
  8.         $this->factory->decrementRender();
  1.      * @throws \Throwable
  2.      */
  3.     public function render(callable $callback null)
  4.     {
  5.         try {
  6.             $contents $this->renderContents();
  7.             $response = isset($callback) ? $callback($this$contents) : null;
  8.             // Once we have the contents of the view, we will flush the sections if we are
  9.             // done rendering all views so that there is nothing left hanging over when
  1.   <body <?php body_class(); ?>>
  2.     <?php wp_body_open(); ?>
  3.     <?php do_action('get_header'); ?>
  4.     <div id="app">
  5.       <?php echo view(app('sage.view'), app('sage.data'))->render(); ?>
  6.     </div>
  7.     <?php do_action('get_footer'); ?>
  8.     <?php wp_footer(); ?>
  9.   </body>
include('/var/www/mohrbooks.com/wp-content/themes/mohrbooks-v4/index.php') in /var/www/mohrbooks.com/wp-includes/template-loader.php (line 106)
  1.      *
  2.      * @param string $template The path of the template to include.
  3.      */
  4.     $template apply_filters'template_include'$template );
  5.     if ( $template ) {
  6.         include $template;
  7.     } elseif ( current_user_can'switch_themes' ) ) {
  8.         $theme wp_get_theme();
  9.         if ( $theme->errors() ) {
  10.             wp_die$theme->errors() );
  11.         }
require_once('/var/www/mohrbooks.com/wp-includes/template-loader.php') in /var/www/mohrbooks.com/wp-blog-header.php (line 19)
  1.     // Set up the WordPress query.
  2.     wp();
  3.     // Load the theme template.
  4.     require_once ABSPATH WPINC '/template-loader.php';
  5. }
require('/var/www/mohrbooks.com/wp-blog-header.php') in /var/www/mohrbooks.com/index.php (line 17)
  1.  * @var bool
  2.  */
  3. define'WP_USE_THEMES'true );
  4. /** Loads the WordPress Environment and Template */
  5. require __DIR__ '/wp-blog-header.php';

GuzzleHttp\Exception\ ClientException

Client error: `GET https://api.rightsdesk.com/api/public/directory/search?page=1&tag=mo&role=contributor&sort=last_name%3Aasc&size=30` resulted in a `401 Unauthorized` response: {"message":"Unauthenticated."}

  1.         if ($summary !== null) {
  2.             $message .= ":\n{$summary}\n";
  3.         }
  4.         return new $className($message$request$response$previous$handlerContext);
  5.     }
  6.     /**
  7.      * Obfuscates URI if there is a username and a password present
  8.      */
  1.                     static function (ResponseInterface $response) use ($request$bodySummarizer) {
  2.                         $code $response->getStatusCode();
  3.                         if ($code 400) {
  4.                             return $response;
  5.                         }
  6.                         throw RequestException::create($request$responsenull, [], $bodySummarizer);
  7.                     }
  8.                 );
  9.             };
  10.         };
  11.     }
  1.                  * itself we get a circular reference. We clear the $handler
  2.                  * here to avoid that memory leak.
  3.                  */
  4.                 $f $handler[$index];
  5.                 unset($handler);
  6.                 $promise->resolve($f($value));
  7.             } elseif ($index === 1) {
  8.                 // Forward resolution values as-is.
  9.                 $promise->resolve($value);
  10.             } else {
  11.                 // Forward rejections down the chain.
  1.         if (!is_object($value) || !method_exists($value'then')) {
  2.             $id $state === self::FULFILLED 2;
  3.             // It's a success, so resolve the handlers in the queue.
  4.             Utils::queue()->add(static function () use ($id$value$handlers): void {
  5.                 foreach ($handlers as $handler) {
  6.                     self::callHandler($id$value$handler);
  7.                 }
  8.             });
  9.         } elseif ($value instanceof Promise && Is::pending($value)) {
  10.             // We can just merge our handlers onto the next promise.
  11.             $value->handlers array_merge($value->handlers$handlers);
  1.     public function run(): void
  2.     {
  3.         while ($task array_shift($this->queue)) {
  4.             /** @var callable $task */
  5.             $task();
  6.         }
  7.     }
  8.     /**
  9.      * The task queue will be run and exhausted by default when the process
  1.     private function invokeWaitFn(): void
  2.     {
  3.         try {
  4.             $wfn $this->waitFn;
  5.             $this->waitFn null;
  6.             $wfn(true);
  7.         } catch (\Throwable $reason) {
  8.             if ($this->state === self::PENDING) {
  9.                 // The promise has not been resolved yet, so reject the promise
  10.                 // with the exception.
  11.                 $this->reject($reason);
  1.     private function waitIfPending(): void
  2.     {
  3.         if ($this->state !== self::PENDING) {
  4.             return;
  5.         } elseif ($this->waitFn) {
  6.             $this->invokeWaitFn();
  7.         } elseif ($this->waitList) {
  8.             $this->invokeWaitList();
  9.         } else {
  10.             // If there's no wait function, then reject the promise.
  11.             $this->reject('Cannot wait on a promise that has '
  1.         $waitList $this->waitList;
  2.         $this->waitList null;
  3.         foreach ($waitList as $result) {
  4.             do {
  5.                 $result->waitIfPending();
  6.                 $result $result->result;
  7.             } while ($result instanceof Promise);
  8.             if ($result instanceof PromiseInterface) {
  9.                 $result->wait(false);
  1.         if ($this->state !== self::PENDING) {
  2.             return;
  3.         } elseif ($this->waitFn) {
  4.             $this->invokeWaitFn();
  5.         } elseif ($this->waitList) {
  6.             $this->invokeWaitList();
  7.         } else {
  8.             // If there's no wait function, then reject the promise.
  9.             $this->reject('Cannot wait on a promise that has '
  10.                 .'no internal wait function. You must provide a wait '
  11.                 .'function when constructing the promise to be able to '
  1.         return $this->then(null$onRejected);
  2.     }
  3.     public function wait(bool $unwrap true)
  4.     {
  5.         $this->waitIfPending();
  6.         if ($this->result instanceof PromiseInterface) {
  7.             return $this->result->wait($unwrap);
  8.         }
  9.         if ($unwrap) {
  1.      */
  2.     public function request(string $method$uri '', array $options = []): ResponseInterface
  3.     {
  4.         $options[RequestOptions::SYNCHRONOUS] = true;
  5.         return $this->requestAsync($method$uri$options)->wait();
  6.     }
  7.     /**
  8.      * Get a client configuration option.
  9.      *
  1.      *
  2.      * @throws GuzzleException
  3.      */
  4.     public function get($uri, array $options = []): ResponseInterface
  5.     {
  6.         return $this->request('GET'$uri$options);
  7.     }
  8.     /**
  9.      * Create and send an HTTP HEAD request.
  10.      *
  1.         $response $this->client->get($this->getUrl("/api/public/directory/search"), [
  2.             'query'   => $request,
  3.             'debug'   => false,
  4.             'headers' => [
  5.                 'Accept'        => 'application/json',
  6.                 'Authorization' => 'Bearer ' $this->getToken(),
  7.             ],
  8.         ]);
  9.         return \GuzzleHttp\json_decode($response->getBody()->getContents());
  10.     }
  1.             "role" => $args["role"],
  2.             "sort" => $args["sort"],
  3.             "size" => $args["size"],
  4.         ], Arr::only($_REQUEST, ['role''tag']));
  5.         $response $this->directoryClient->getDirectory($request);
  6. //        dd($response);
  7.         return $this->renderTemplate($args["template"], [
  8.             "response" => $response,
Plugin->getDirectory() in /var/www/mohrbooks.com/wp-includes/shortcodes.php (line 355)
  1.         return $return;
  2.     }
  3.     $content = isset( $m[5] ) ? $m[5] : null;
  4.     $output $m[1] . call_user_func$shortcode_tags$tag ], $attr$content$tag ) . $m[6];
  5.     /**
  6.      * Filters the output created by a shortcode callback.
  7.      *
  8.      * @since 4.7.0
do_shortcode_tag()
preg_replace_callback() in /var/www/mohrbooks.com/wp-includes/shortcodes.php (line 227)
  1.     }
  2.     $content do_shortcodes_in_html_tags$content$ignore_html$tagnames );
  3.     $pattern get_shortcode_regex$tagnames );
  4.     $content preg_replace_callback"/$pattern/"'do_shortcode_tag'$content );
  5.     // Always restore square braces so we don't break things like <!--[if IE ]>.
  6.     $content unescape_invalid_shortcodes$content );
  7.     return $content;
  1.             if ( $instance['autop'] ) {
  2.                 $instance['text'] = wpautop$instance['text'] );
  3.             }
  4.             $instance['text'] = do_shortcodeshortcode_unautop$instance['text'] ) );
  5.             // Don't process more more quicktag if this is a preview.
  6.             if (
  7.                 ! $this->is_preview() &&
  8.                 empty( $GLOBALS'SITEORIGIN_PANELS_PREVIEW_RENDER' ] ) &&
SiteOrigin_Widget_Editor_Widget->get_template_variables() in /var/www/mohrbooks.com/wp-content/plugins/so-widgets-bundle/base/siteorigin-widget.class.php (line 194)
  1.             $this->enqueue_frontend_scripts$instance );
  2.         } else {
  3.             $css_name 'panels-preview';
  4.         }
  5.         $template_vars $this->get_template_variables$instance$args );
  6.         $template_vars apply_filters'siteorigin_widgets_template_variables_' $this->id_base$template_vars$instance$args$this );
  7.         // Storage hash allows templates to get access to
  8.         $template_vars'storage_hash' ] = '';
  1.         if ( ! empty( $widget_html ) ) {
  2.             echo $args['before_widget'];
  3.             echo $widget_html;
  4.             echo $args['after_widget'];
  5.         } elseif ( ! empty( $the_widget ) && is_a$the_widget'WP_Widget' ) ) {
  6.             $the_widget->widget$args$instance );
  7.         } else {
  8.             // This gives themes a chance to display some sort of placeholder for missing widgets
  9.             echo apply_filters'siteorigin_panels_missing_widget'$args['before_widget'] . $args['after_widget'], $widget_class$args$instance );
  10.         }
  11.     }
SiteOrigin_Panels_Renderer->the_widget() in /var/www/mohrbooks.com/wp-content/plugins/siteorigin-panels/inc/renderer.php (line 1108)
  1.             ! empty( $widget['panels_info']['style'] ) ? $widget['panels_info']['style'] : array(),
  2.             $post_id '-' $ri '-' $ci '-' $wi
  3.         );
  4.         $this->the_widget(
  5.             $widget['panels_info'],
  6.             $widget,
  7.             $ri,
  8.             $ci,
  9.             $wi,
  10.             $wi == 0,
SiteOrigin_Panels_Renderer->render_widget() in /var/www/mohrbooks.com/wp-content/plugins/siteorigin-panels/inc/renderer.php (line 1075)
  1.         foreach ( $cell['widgets'] as $wi => & $widget ) {
  2.             $is_last = ( $wi == count$cell['widgets'] ) - );
  3.             if ( apply_filters'siteorigin_panels_output_widget'true$widget$ri$ci$wi$panels_data$post_id ) ) {
  4.                 $this->render_widget$post_id$ri$ci$wi$widget$is_last );
  5.             }
  6.         }
  7.         // This allows other themes and plugins to add HTML inside of the cell after its contents.
  8.         echo apply_filters'siteorigin_panels_inside_cell_after'''$cell );
SiteOrigin_Panels_Renderer->render_cell() in /var/www/mohrbooks.com/wp-content/plugins/siteorigin-panels/inc/renderer.php (line 988)
  1.             // This gives other renderers a chance to change the cell order
  2.             $row['cells'] = $cells $this->modify_row_cells$row['cells'], $row );
  3.         }
  4.         foreach ( $row['cells'] as $ci => & $cell ) {
  5.             $this->render_cell$post_id$ri$ci$cell$row['cells'], $panels_data );
  6.         }
  7.         // This allows other themes and plugins to add HTML inside of the row after the row contents.
  8.         echo apply_filters'siteorigin_panels_inside_row_after'''$row );
SiteOrigin_Panels_Renderer->render_row() in /var/www/mohrbooks.com/wp-content/plugins/siteorigin-panels/inc/renderer.php (line 494)
  1.         echo apply_filters'siteorigin_panels_before_content'''$panels_data$post_id );
  2.         foreach ( $layout_data as $ri => & $row ) {
  3.             if ( apply_filters'siteorigin_panels_output_row'true$row$ri$panels_data$post_id ) ) {
  4.                 $this->render_row$post_id$ri$row$panels_data );
  5.             }
  6.         }
  7.         echo apply_filters'siteorigin_panels_after_content'''$panels_data$post_id );
  1.         // Check if this post has panels_data.
  2.         if ( get_post_meta$post_id'panels_data'true ) ) {
  3.             $panel_content SiteOrigin_Panels::renderer()->render(
  4.                 $post_id,
  5.                 // Add CSS if this is not the main single post, this is handled by add_single_css.
  6.                 $preview || $post_id !== get_queried_object_id()
  7.             );
  8.             if ( ! empty( $panel_content ) ) {
  9.                 $content $panel_content;
SiteOrigin_Panels->generate_post_content() in /var/www/mohrbooks.com/wp-includes/class-wp-hook.php (line 308)
  1.                 // Avoid the array_slice() if possible.
  2.                 if ( == $the_['accepted_args'] ) {
  3.                     $value call_user_func$the_['function'] );
  4.                 } elseif ( $the_['accepted_args'] >= $num_args ) {
  5.                     $value call_user_func_array$the_['function'], $args );
  6.                 } else {
  7.                     $value call_user_func_array$the_['function'], array_slice$args0, (int) $the_['accepted_args'] ) );
  8.                 }
  9.             }
  10.         } while ( false !== next$this->iterations$nesting_level ] ) );
WP_Hook->apply_filters() in /var/www/mohrbooks.com/wp-includes/plugin.php (line 205)
  1.     }
  2.     // Pass the value to WP_Hook.
  3.     array_unshift$args$value );
  4.     $filtered $wp_filter$hook_name ]->apply_filters$value$args );
  5.     array_pop$wp_current_filter );
  6.     return $filtered;
  7. }
  1.      *
  2.      * @since 0.71
  3.      *
  4.      * @param string $content Content of the current post.
  5.      */
  6.     $content apply_filters'the_content'$content );
  7.     $content str_replace']]>'']]&gt;'$content );
  8.     echo $content;
  9. }
  10. /**
  1. <?php (the_content()); ?>
  2. <?php echo wp_link_pages(['echo' => 0'before' => '<nav class="page-nav"><p>' __('Pages:''sage'), 'after' => '</p></nav>']); ?>
  3. <?php /**PATH /var/www/mohrbooks.com/wp-content/themes/mohrbooks-v4/resources/views/partials/content-page.blade.php ENDPATH**/ ?>
  1.             $__data $data;
  2.             return (static function () use ($__path$__data) {
  3.                 extract($__dataEXTR_SKIP);
  4.                 return require $__path;
  5.             })();
  6.         }
  7.         throw new FileNotFoundException("File does not exist at path {$path}.");
  8.     }
  1.             return (static function () use ($__path$__data) {
  2.                 extract($__dataEXTR_SKIP);
  3.                 return require $__path;
  4.             })();
  5.         }
  6.         throw new FileNotFoundException("File does not exist at path {$path}.");
  7.     }
  1.         // We'll evaluate the contents of the view inside a try/catch block so we can
  2.         // flush out any stray output that might get out before an error occurs or
  3.         // an exception is thrown. This prevents any partial views from leaking.
  4.         try {
  5.             $this->files->getRequire($path$data);
  6.         } catch (Throwable $e) {
  7.             $this->handleViewException($e$obLevel);
  8.         }
  9.         return ltrim(ob_get_clean());
  1.         // Once we have the path to the compiled file, we will evaluate the paths with
  2.         // typical PHP just like any other templates. We also keep a stack of views
  3.         // which have been rendered for right exception messages to be generated.
  4.         try {
  5.             $results $this->evaluatePath($this->compiler->getCompiledPath($path), $data);
  6.         } catch (ViewException $e) {
  7.             if (! str($e->getMessage())->contains(['No such file or directory''File does not exist at path'])) {
  8.                 throw $e;
  9.             }
  1.      *
  2.      * @return string
  3.      */
  4.     protected function getContents()
  5.     {
  6.         return $this->engine->get($this->path$this->gatherData());
  7.     }
  8.     /**
  9.      * Get the data bound to the view instance.
  10.      *
  1.         // clear out the sections for any separate views that may be rendered.
  2.         $this->factory->incrementRender();
  3.         $this->factory->callComposer($this);
  4.         $contents $this->getContents();
  5.         // Once we've finished rendering the view, we'll decrement the render count
  6.         // so that each section gets flushed out next time a view is created and
  7.         // no old sections are staying around in the memory of an environment.
  8.         $this->factory->decrementRender();
  1.      * @throws \Throwable
  2.      */
  3.     public function render(callable $callback null)
  4.     {
  5.         try {
  6.             $contents $this->renderContents();
  7.             $response = isset($callback) ? $callback($this$contents) : null;
  8.             // Once we have the contents of the view, we will flush the sections if we are
  9.             // done rendering all views so that there is nothing left hanging over when
  1. <?php $__env->startSection('content'); ?>
  2.   <?php while(have_posts()): ?> <?php (the_post()); ?>
  3.     <?php echo $__env->first(['partials.content-page''partials.content'], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data''__path']))->render(); ?>
  4.   <?php endwhile; ?>
  5. <?php $__env->stopSection(); ?>
  6. <?php echo $__env->make('layouts.app'\Illuminate\Support\Arr::except(get_defined_vars(), ['__data''__path']))->render(); ?><?php /**PATH /var/www/mohrbooks.com/wp-content/themes/mohrbooks-v4/resources/views/page.blade.php ENDPATH**/ ?>
  1.             $__data $data;
  2.             return (static function () use ($__path$__data) {
  3.                 extract($__dataEXTR_SKIP);
  4.                 return require $__path;
  5.             })();
  6.         }
  7.         throw new FileNotFoundException("File does not exist at path {$path}.");
  8.     }
  1.             return (static function () use ($__path$__data) {
  2.                 extract($__dataEXTR_SKIP);
  3.                 return require $__path;
  4.             })();
  5.         }
  6.         throw new FileNotFoundException("File does not exist at path {$path}.");
  7.     }
  1.         // We'll evaluate the contents of the view inside a try/catch block so we can
  2.         // flush out any stray output that might get out before an error occurs or
  3.         // an exception is thrown. This prevents any partial views from leaking.
  4.         try {
  5.             $this->files->getRequire($path$data);
  6.         } catch (Throwable $e) {
  7.             $this->handleViewException($e$obLevel);
  8.         }
  9.         return ltrim(ob_get_clean());
  1.         // Once we have the path to the compiled file, we will evaluate the paths with
  2.         // typical PHP just like any other templates. We also keep a stack of views
  3.         // which have been rendered for right exception messages to be generated.
  4.         try {
  5.             $results $this->evaluatePath($this->compiler->getCompiledPath($path), $data);
  6.         } catch (ViewException $e) {
  7.             if (! str($e->getMessage())->contains(['No such file or directory''File does not exist at path'])) {
  8.                 throw $e;
  9.             }
  1.      *
  2.      * @return string
  3.      */
  4.     protected function getContents()
  5.     {
  6.         return $this->engine->get($this->path$this->gatherData());
  7.     }
  8.     /**
  9.      * Get the data bound to the view instance.
  10.      *
  1.         // clear out the sections for any separate views that may be rendered.
  2.         $this->factory->incrementRender();
  3.         $this->factory->callComposer($this);
  4.         $contents $this->getContents();
  5.         // Once we've finished rendering the view, we'll decrement the render count
  6.         // so that each section gets flushed out next time a view is created and
  7.         // no old sections are staying around in the memory of an environment.
  8.         $this->factory->decrementRender();
  1.      * @throws \Throwable
  2.      */
  3.     public function render(callable $callback null)
  4.     {
  5.         try {
  6.             $contents $this->renderContents();
  7.             $response = isset($callback) ? $callback($this$contents) : null;
  8.             // Once we have the contents of the view, we will flush the sections if we are
  9.             // done rendering all views so that there is nothing left hanging over when
  1.   <body <?php body_class(); ?>>
  2.     <?php wp_body_open(); ?>
  3.     <?php do_action('get_header'); ?>
  4.     <div id="app">
  5.       <?php echo view(app('sage.view'), app('sage.data'))->render(); ?>
  6.     </div>
  7.     <?php do_action('get_footer'); ?>
  8.     <?php wp_footer(); ?>
  9.   </body>
include('/var/www/mohrbooks.com/wp-content/themes/mohrbooks-v4/index.php') in /var/www/mohrbooks.com/wp-includes/template-loader.php (line 106)
  1.      *
  2.      * @param string $template The path of the template to include.
  3.      */
  4.     $template apply_filters'template_include'$template );
  5.     if ( $template ) {
  6.         include $template;
  7.     } elseif ( current_user_can'switch_themes' ) ) {
  8.         $theme wp_get_theme();
  9.         if ( $theme->errors() ) {
  10.             wp_die$theme->errors() );
  11.         }
require_once('/var/www/mohrbooks.com/wp-includes/template-loader.php') in /var/www/mohrbooks.com/wp-blog-header.php (line 19)
  1.     // Set up the WordPress query.
  2.     wp();
  3.     // Load the theme template.
  4.     require_once ABSPATH WPINC '/template-loader.php';
  5. }
require('/var/www/mohrbooks.com/wp-blog-header.php') in /var/www/mohrbooks.com/index.php (line 17)
  1.  * @var bool
  2.  */
  3. define'WP_USE_THEMES'true );
  4. /** Loads the WordPress Environment and Template */
  5. require __DIR__ '/wp-blog-header.php';

Stack Traces 3

[3/3] ViewException
Illuminate\View\ViewException:
Client error: `GET https://api.rightsdesk.com/api/public/directory/search?page=1&tag=mo&role=contributor&sort=last_name%3Aasc&size=30` resulted in a `401 Unauthorized` response:
{"message":"Unauthenticated."}
 (View: /var/www/mohrbooks.com/wp-content/themes/mohrbooks-v4/resources/views/partials/content-page.blade.php) (View: /var/www/mohrbooks.com/wp-content/themes/mohrbooks-v4/resources/views/partials/content-page.blade.php)

  at /var/www/mohrbooks.com/wp-content/plugins/rightsdesk-api/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php:113
  at Illuminate\View\Engines\CompilerEngine->handleViewException()
     (/var/www/mohrbooks.com/wp-content/themes/mohrbooks-v4/vendor/illuminate/view/Engines/PhpEngine.php:60)
  at Illuminate\View\Engines\PhpEngine->evaluatePath()
     (/var/www/mohrbooks.com/wp-content/themes/mohrbooks-v4/vendor/illuminate/view/Engines/CompilerEngine.php:70)
  at Illuminate\View\Engines\CompilerEngine->get()
     (/var/www/mohrbooks.com/wp-content/themes/mohrbooks-v4/vendor/illuminate/view/View.php:195)
  at Illuminate\View\View->getContents()
     (/var/www/mohrbooks.com/wp-content/themes/mohrbooks-v4/vendor/illuminate/view/View.php:178)
  at Illuminate\View\View->renderContents()
     (/var/www/mohrbooks.com/wp-content/themes/mohrbooks-v4/vendor/illuminate/view/View.php:147)
  at Illuminate\View\View->render()
     (/var/www/mohrbooks.com/wp-content/themes/mohrbooks-v4/index.php:14)
  at include('/var/www/mohrbooks.com/wp-content/themes/mohrbooks-v4/index.php')
     (/var/www/mohrbooks.com/wp-includes/template-loader.php:106)
  at require_once('/var/www/mohrbooks.com/wp-includes/template-loader.php')
     (/var/www/mohrbooks.com/wp-blog-header.php:19)
  at require('/var/www/mohrbooks.com/wp-blog-header.php')
     (/var/www/mohrbooks.com/index.php:17)                
[2/3] ViewException
Illuminate\View\ViewException:
Client error: `GET https://api.rightsdesk.com/api/public/directory/search?page=1&tag=mo&role=contributor&sort=last_name%3Aasc&size=30` resulted in a `401 Unauthorized` response:
{"message":"Unauthenticated."}
 (View: /var/www/mohrbooks.com/wp-content/themes/mohrbooks-v4/resources/views/partials/content-page.blade.php)

  at /var/www/mohrbooks.com/wp-content/plugins/rightsdesk-api/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php:113
  at Illuminate\View\Engines\CompilerEngine->handleViewException()
     (/var/www/mohrbooks.com/wp-content/themes/mohrbooks-v4/vendor/illuminate/view/Engines/PhpEngine.php:60)
  at Illuminate\View\Engines\PhpEngine->evaluatePath()
     (/var/www/mohrbooks.com/wp-content/themes/mohrbooks-v4/vendor/illuminate/view/Engines/CompilerEngine.php:70)
  at Illuminate\View\Engines\CompilerEngine->get()
     (/var/www/mohrbooks.com/wp-content/themes/mohrbooks-v4/vendor/illuminate/view/View.php:195)
  at Illuminate\View\View->getContents()
     (/var/www/mohrbooks.com/wp-content/themes/mohrbooks-v4/vendor/illuminate/view/View.php:178)
  at Illuminate\View\View->renderContents()
     (/var/www/mohrbooks.com/wp-content/themes/mohrbooks-v4/vendor/illuminate/view/View.php:147)
  at Illuminate\View\View->render()
     (/var/www/mohrbooks.com/wp-content/cache/acorn/framework/views/dee6a2c7907e9af9c1a50927a08a3cac399d2b8a.php:3)
  at require('/var/www/mohrbooks.com/wp-content/cache/acorn/framework/views/dee6a2c7907e9af9c1a50927a08a3cac399d2b8a.php')
     (/var/www/mohrbooks.com/wp-content/themes/mohrbooks-v4/vendor/illuminate/filesystem/Filesystem.php:109)
  at Illuminate\Filesystem\Filesystem::Illuminate\Filesystem\{closure}()
     (/var/www/mohrbooks.com/wp-content/themes/mohrbooks-v4/vendor/illuminate/filesystem/Filesystem.php:110)
  at Illuminate\Filesystem\Filesystem->getRequire()
     (/var/www/mohrbooks.com/wp-content/themes/mohrbooks-v4/vendor/illuminate/view/Engines/PhpEngine.php:58)
  at Illuminate\View\Engines\PhpEngine->evaluatePath()
     (/var/www/mohrbooks.com/wp-content/themes/mohrbooks-v4/vendor/illuminate/view/Engines/CompilerEngine.php:70)
  at Illuminate\View\Engines\CompilerEngine->get()
     (/var/www/mohrbooks.com/wp-content/themes/mohrbooks-v4/vendor/illuminate/view/View.php:195)
  at Illuminate\View\View->getContents()
     (/var/www/mohrbooks.com/wp-content/themes/mohrbooks-v4/vendor/illuminate/view/View.php:178)
  at Illuminate\View\View->renderContents()
     (/var/www/mohrbooks.com/wp-content/themes/mohrbooks-v4/vendor/illuminate/view/View.php:147)
  at Illuminate\View\View->render()
     (/var/www/mohrbooks.com/wp-content/themes/mohrbooks-v4/index.php:14)
  at include('/var/www/mohrbooks.com/wp-content/themes/mohrbooks-v4/index.php')
     (/var/www/mohrbooks.com/wp-includes/template-loader.php:106)
  at require_once('/var/www/mohrbooks.com/wp-includes/template-loader.php')
     (/var/www/mohrbooks.com/wp-blog-header.php:19)
  at require('/var/www/mohrbooks.com/wp-blog-header.php')
     (/var/www/mohrbooks.com/index.php:17)                
[1/3] ClientException
GuzzleHttp\Exception\ClientException:
Client error: `GET https://api.rightsdesk.com/api/public/directory/search?page=1&tag=mo&role=contributor&sort=last_name%3Aasc&size=30` resulted in a `401 Unauthorized` response:
{"message":"Unauthenticated."}


  at /var/www/mohrbooks.com/wp-content/plugins/rightsdesk-api/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php:113
  at GuzzleHttp\Exception\RequestException::create()
     (/var/www/mohrbooks.com/wp-content/plugins/rightsdesk-api/vendor/guzzlehttp/guzzle/src/Middleware.php:72)
  at GuzzleHttp\Middleware::GuzzleHttp\{closure}()
     (/var/www/mohrbooks.com/wp-content/plugins/rightsdesk-api/vendor/guzzlehttp/promises/src/Promise.php:209)
  at GuzzleHttp\Promise\Promise::callHandler()
     (/var/www/mohrbooks.com/wp-content/plugins/rightsdesk-api/vendor/guzzlehttp/promises/src/Promise.php:158)
  at GuzzleHttp\Promise\Promise::GuzzleHttp\Promise\{closure}()
     (/var/www/mohrbooks.com/wp-content/plugins/rightsdesk-api/vendor/guzzlehttp/promises/src/TaskQueue.php:52)
  at GuzzleHttp\Promise\TaskQueue->run()
     (/var/www/mohrbooks.com/wp-content/plugins/rightsdesk-api/vendor/guzzlehttp/promises/src/Promise.php:251)
  at GuzzleHttp\Promise\Promise->invokeWaitFn()
     (/var/www/mohrbooks.com/wp-content/plugins/rightsdesk-api/vendor/guzzlehttp/promises/src/Promise.php:227)
  at GuzzleHttp\Promise\Promise->waitIfPending()
     (/var/www/mohrbooks.com/wp-content/plugins/rightsdesk-api/vendor/guzzlehttp/promises/src/Promise.php:272)
  at GuzzleHttp\Promise\Promise->invokeWaitList()
     (/var/www/mohrbooks.com/wp-content/plugins/rightsdesk-api/vendor/guzzlehttp/promises/src/Promise.php:229)
  at GuzzleHttp\Promise\Promise->waitIfPending()
     (/var/www/mohrbooks.com/wp-content/plugins/rightsdesk-api/vendor/guzzlehttp/promises/src/Promise.php:69)
  at GuzzleHttp\Promise\Promise->wait()
     (/var/www/mohrbooks.com/wp-content/plugins/rightsdesk-api/vendor/guzzlehttp/guzzle/src/Client.php:189)
  at GuzzleHttp\Client->request()
     (/var/www/mohrbooks.com/wp-content/plugins/rightsdesk-api/vendor/guzzlehttp/guzzle/src/ClientTrait.php:44)
  at GuzzleHttp\Client->get()
     (/var/www/mohrbooks.com/wp-content/plugins/rightsdesk-api/src/Api/Clients/DirectoryClient.php:15)
  at Rightsdesk\Wordpress\Api\Clients\DirectoryClient->getDirectory()
     (/var/www/mohrbooks.com/wp-content/plugins/rightsdesk-api/src/Traits/HandlesDirectory.php:51)
  at Rightsdesk\Wordpress\Plugin->getDirectory()
     (/var/www/mohrbooks.com/wp-includes/shortcodes.php:355)
  at do_shortcode_tag()
  at preg_replace_callback()
     (/var/www/mohrbooks.com/wp-includes/shortcodes.php:227)
  at do_shortcode()
     (/var/www/mohrbooks.com/wp-content/plugins/so-widgets-bundle/widgets/editor/editor.php:108)
  at SiteOrigin_Widget_Editor_Widget->get_template_variables()
     (/var/www/mohrbooks.com/wp-content/plugins/so-widgets-bundle/base/siteorigin-widget.class.php:194)
  at SiteOrigin_Widget->widget()
     (/var/www/mohrbooks.com/wp-content/plugins/siteorigin-panels/inc/renderer.php:756)
  at SiteOrigin_Panels_Renderer->the_widget()
     (/var/www/mohrbooks.com/wp-content/plugins/siteorigin-panels/inc/renderer.php:1108)
  at SiteOrigin_Panels_Renderer->render_widget()
     (/var/www/mohrbooks.com/wp-content/plugins/siteorigin-panels/inc/renderer.php:1075)
  at SiteOrigin_Panels_Renderer->render_cell()
     (/var/www/mohrbooks.com/wp-content/plugins/siteorigin-panels/inc/renderer.php:988)
  at SiteOrigin_Panels_Renderer->render_row()
     (/var/www/mohrbooks.com/wp-content/plugins/siteorigin-panels/inc/renderer.php:494)
  at SiteOrigin_Panels_Renderer->render()
     (/var/www/mohrbooks.com/wp-content/plugins/siteorigin-panels/siteorigin-panels.php:384)
  at SiteOrigin_Panels->generate_post_content()
     (/var/www/mohrbooks.com/wp-includes/class-wp-hook.php:308)
  at WP_Hook->apply_filters()
     (/var/www/mohrbooks.com/wp-includes/plugin.php:205)
  at apply_filters()
     (/var/www/mohrbooks.com/wp-includes/post-template.php:255)
  at the_content()
     (/var/www/mohrbooks.com/wp-content/cache/acorn/framework/views/a2348d46f9c50e89357d77a3ea07b0ae324741fd.php:1)
  at require('/var/www/mohrbooks.com/wp-content/cache/acorn/framework/views/a2348d46f9c50e89357d77a3ea07b0ae324741fd.php')
     (/var/www/mohrbooks.com/wp-content/themes/mohrbooks-v4/vendor/illuminate/filesystem/Filesystem.php:109)
  at Illuminate\Filesystem\Filesystem::Illuminate\Filesystem\{closure}()
     (/var/www/mohrbooks.com/wp-content/themes/mohrbooks-v4/vendor/illuminate/filesystem/Filesystem.php:110)
  at Illuminate\Filesystem\Filesystem->getRequire()
     (/var/www/mohrbooks.com/wp-content/themes/mohrbooks-v4/vendor/illuminate/view/Engines/PhpEngine.php:58)
  at Illuminate\View\Engines\PhpEngine->evaluatePath()
     (/var/www/mohrbooks.com/wp-content/themes/mohrbooks-v4/vendor/illuminate/view/Engines/CompilerEngine.php:70)
  at Illuminate\View\Engines\CompilerEngine->get()
     (/var/www/mohrbooks.com/wp-content/themes/mohrbooks-v4/vendor/illuminate/view/View.php:195)
  at Illuminate\View\View->getContents()
     (/var/www/mohrbooks.com/wp-content/themes/mohrbooks-v4/vendor/illuminate/view/View.php:178)
  at Illuminate\View\View->renderContents()
     (/var/www/mohrbooks.com/wp-content/themes/mohrbooks-v4/vendor/illuminate/view/View.php:147)
  at Illuminate\View\View->render()
     (/var/www/mohrbooks.com/wp-content/cache/acorn/framework/views/dee6a2c7907e9af9c1a50927a08a3cac399d2b8a.php:3)
  at require('/var/www/mohrbooks.com/wp-content/cache/acorn/framework/views/dee6a2c7907e9af9c1a50927a08a3cac399d2b8a.php')
     (/var/www/mohrbooks.com/wp-content/themes/mohrbooks-v4/vendor/illuminate/filesystem/Filesystem.php:109)
  at Illuminate\Filesystem\Filesystem::Illuminate\Filesystem\{closure}()
     (/var/www/mohrbooks.com/wp-content/themes/mohrbooks-v4/vendor/illuminate/filesystem/Filesystem.php:110)
  at Illuminate\Filesystem\Filesystem->getRequire()
     (/var/www/mohrbooks.com/wp-content/themes/mohrbooks-v4/vendor/illuminate/view/Engines/PhpEngine.php:58)
  at Illuminate\View\Engines\PhpEngine->evaluatePath()
     (/var/www/mohrbooks.com/wp-content/themes/mohrbooks-v4/vendor/illuminate/view/Engines/CompilerEngine.php:70)
  at Illuminate\View\Engines\CompilerEngine->get()
     (/var/www/mohrbooks.com/wp-content/themes/mohrbooks-v4/vendor/illuminate/view/View.php:195)
  at Illuminate\View\View->getContents()
     (/var/www/mohrbooks.com/wp-content/themes/mohrbooks-v4/vendor/illuminate/view/View.php:178)
  at Illuminate\View\View->renderContents()
     (/var/www/mohrbooks.com/wp-content/themes/mohrbooks-v4/vendor/illuminate/view/View.php:147)
  at Illuminate\View\View->render()
     (/var/www/mohrbooks.com/wp-content/themes/mohrbooks-v4/index.php:14)
  at include('/var/www/mohrbooks.com/wp-content/themes/mohrbooks-v4/index.php')
     (/var/www/mohrbooks.com/wp-includes/template-loader.php:106)
  at require_once('/var/www/mohrbooks.com/wp-includes/template-loader.php')
     (/var/www/mohrbooks.com/wp-blog-header.php:19)
  at require('/var/www/mohrbooks.com/wp-blog-header.php')
     (/var/www/mohrbooks.com/index.php:17)