Not enough data available to satisfy format (500 Internal Server Error)

Symfony Exception

Not enough data available to satisfy format

Exception

Carbon\Exceptions\ InvalidFormatException

  1.             return $instance;
  2.         }
  3.         if (static::isStrictModeEnabled()) {
  4.             throw new InvalidFormatException(implode(PHP_EOL$lastErrors['errors']));
  5.         }
  6.         return false;
  7.     }
  1.     public static function createFromFormat($format$time$tz null)
  2.     {
  3.         $function = static::$createFromFormatFunction;
  4.         if (!$function) {
  5.             return static::rawCreateFromFormat($format$time$tz);
  6.         }
  7.         if (\is_string($function) && method_exists(static::class, $function)) {
  8.             $function = [static::class, $function];
  9.         }
Carbon::createFromFormat('Y-m-d', null, 'Europe/Tallinn') in /data01/virt121299/domeenid/www.infohunt.dev.okia.ee/htdocs/wp-content/themes/infohunt/app/events.php (line 142)
  1.         $time get_field('starts_at_time'$this->event->ID);
  2.         if ($time) {
  3.             return Carbon::createFromFormat('Y-m-d H:i:s'get_field('starts_at'$this->event->ID).' '.$timewp_timezone_string());
  4.         }
  5.         return Carbon::createFromFormat('Y-m-d'get_field('starts_at'$this->event->ID), wp_timezone_string())->setTime(0000);
  6.     }
  7.     public function getEnd() : Carbon|null
  8.     {
  9.         $endsAt get_field('ends_at'$this->event->ID);
  1.             return false;
  2.         }
  3.         // If has no end date, treat end as start dates time 23:59:59
  4.         if (!$end) {
  5.             $start $this->getStart();
  6.             $end Carbon::createFromFormat('Y-m-d H:i:s'$start->format('Y-m-d').' 23:59:59'wp_timezone_string());
  7.             if ($end->isPast()) {
  8.                 return false;
  9.             }
  10.         }
  1.         return false;
  2.     }
  3.     public function is_registration_open($event_id) {
  4.         return (new \App\Event($event_id))->isRegistrationOpen();
  5.     }
  6.     public function is_event_over() {
  7.         $current_date wp_date('Y-m-d');
  1.             'ticket_buying_url'    => $this->get_ticket_buying_url($post->ID),
  2.             'registration_url'     => $this->get_registration_url($post->ID),
  3.             'unregister_url'       => add_query_arg(['id' => $post->ID'event-unregister' => 1], get_permalink()),
  4.             'registered_users'     => $this->get_registered_users($post->ID),
  5.             'is_event_over'        => $this->is_event_over(),
  6.             'is_registration_open' => $this->is_registration_open($post->ID),
  7.             'message'              => $this->get_message(),
  8.             'error'                => $this->get_error(),
  9.         ];
  10.     }
  1.     protected function merge()
  2.     {
  3.         return array_merge(
  4.             $this->with(),
  5.             $this->view->getData(),
  6.             $this->override()
  7.         );
  8.     }
  9.     /**
  10.      * Data to be passed to view before rendering
  1.     public function compose(View $view)
  2.     {
  3.         $this->view $view;
  4.         $this->data = new Fluent($view->getData());
  5.         $view->with($this->merge());
  6.     }
  7.     /**
  8.      * Data to be merged and passed to the view before rendering.
  9.      *
  1.         // Once we have the class and method name, we can build the Closure to resolve
  2.         // the instance out of the IoC container and call the method on it with the
  3.         // given arguments that are passed to the Closure as the composer's data.
  4.         return function () use ($class$method) {
  5.             return $this->container->make($class)->{$method}(...func_get_args());
  6.         };
  7.     }
  8.     /**
  9.      * Parse a class based composer name.
  1.         return function ($event$payload) use ($listener$wildcard) {
  2.             if ($wildcard) {
  3.                 return $listener($event$payload);
  4.             }
  5.             return $listener(...array_values($payload));
  6.         };
  7.     }
  8.     /**
  9.      * Create a class based listener using the IoC container.
  1.         }
  2.         $responses = [];
  3.         foreach ($this->getListeners($event) as $listener) {
  4.             $response $listener($event$payload);
  5.             // If a response is returned from the listener and event halting is enabled
  6.             // we will just return this response, and not call the rest of the event
  7.             // listeners. Otherwise we will add the response on the response list.
  8.             if ($halt && ! is_null($response)) {
  1.      * @param  \Illuminate\Contracts\View\View  $view
  2.      * @return void
  3.      */
  4.     public function callComposer(ViewContract $view)
  5.     {
  6.         $this->events->dispatch('composing: '.$view->name(), [$view]);
  7.     }
  8.     /**
  9.      * Call the creator for a given view.
  10.      *
  1.         // We will keep track of the number of views being rendered so we can flush
  2.         // the section after the complete rendering operation is done. This will
  3.         // clear out the sections for any separate views that may be rendered.
  4.         $this->factory->incrementRender();
  5.         $this->factory->callComposer($this);
  6.         $contents $this->getContents();
  7.         // Once we've finished rendering the view, we'll decrement the render count
  8.         // so that each section gets flushed out next time a view is created and
  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('/data01/virt121299/domeenid/www.infohunt.dev.okia.ee/htdocs/wp-content/themes/infohunt/index.php') in /data01/virt121299/domeenid/www.infohunt.dev.okia.ee/htdocs/core/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('/data01/virt121299/domeenid/www.infohunt.dev.okia.ee/htdocs/core/wp-includes/template-loader.php') in /data01/virt121299/domeenid/www.infohunt.dev.okia.ee/htdocs/core/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('/data01/virt121299/domeenid/www.infohunt.dev.okia.ee/htdocs/core/wp-blog-header.php') in /data01/virt121299/domeenid/www.infohunt.dev.okia.ee/htdocs/index.php (line 17)
  1.  * @var bool
  2.  */
  3. define'WP_USE_THEMES'true );
  4. /** Loads the WordPress Environment and Template */
  5. require( dirname__FILE__ ) . '/core/wp-blog-header.php' );

Stack Trace

InvalidFormatException
Carbon\Exceptions\InvalidFormatException:
Not enough data available to satisfy format

  at /data01/virt121299/domeenid/www.infohunt.dev.okia.ee/htdocs/wp-content/themes/infohunt/vendor/nesbot/carbon/src/Carbon/Traits/Creator.php:687
  at Carbon\Carbon::rawCreateFromFormat('Y-m-d', null, 'Europe/Tallinn')
     (/data01/virt121299/domeenid/www.infohunt.dev.okia.ee/htdocs/wp-content/themes/infohunt/vendor/nesbot/carbon/src/Carbon/Traits/Creator.php:710)
  at Carbon\Carbon::createFromFormat('Y-m-d', null, 'Europe/Tallinn')
     (/data01/virt121299/domeenid/www.infohunt.dev.okia.ee/htdocs/wp-content/themes/infohunt/app/events.php:142)
  at App\Event->getStart()
     (/data01/virt121299/domeenid/www.infohunt.dev.okia.ee/htdocs/wp-content/themes/infohunt/app/events.php:375)
  at App\Event->isRegistrationOpen()
     (/data01/virt121299/domeenid/www.infohunt.dev.okia.ee/htdocs/wp-content/themes/infohunt/app/View/Composers/Event.php:351)
  at App\View\Composers\Event->is_registration_open(387)
     (/data01/virt121299/domeenid/www.infohunt.dev.okia.ee/htdocs/wp-content/themes/infohunt/app/View/Composers/Event.php:67)
  at App\View\Composers\Event->override()
     (/data01/virt121299/domeenid/www.infohunt.dev.okia.ee/htdocs/wp-content/themes/infohunt/vendor/roots/acorn/src/Roots/Acorn/View/Composer.php:72)
  at Roots\Acorn\View\Composer->merge()
     (/data01/virt121299/domeenid/www.infohunt.dev.okia.ee/htdocs/wp-content/themes/infohunt/vendor/roots/acorn/src/Roots/Acorn/View/Composer.php:59)
  at Roots\Acorn\View\Composer->compose(object(View))
     (/data01/virt121299/domeenid/www.infohunt.dev.okia.ee/htdocs/wp-content/themes/infohunt/vendor/illuminate/view/Concerns/ManagesEvents.php:124)
  at Illuminate\View\Factory->Illuminate\View\Concerns\{closure}(object(View))
     (/data01/virt121299/domeenid/www.infohunt.dev.okia.ee/htdocs/wp-content/themes/infohunt/vendor/illuminate/events/Dispatcher.php:421)
  at Illuminate\Events\Dispatcher->Illuminate\Events\{closure}('composing: template-event-feedback', array(object(View)))
     (/data01/virt121299/domeenid/www.infohunt.dev.okia.ee/htdocs/wp-content/themes/infohunt/vendor/illuminate/events/Dispatcher.php:249)
  at Illuminate\Events\Dispatcher->dispatch('composing: template-event-feedback', array(object(View)))
     (/data01/virt121299/domeenid/www.infohunt.dev.okia.ee/htdocs/wp-content/themes/infohunt/vendor/illuminate/view/Concerns/ManagesEvents.php:177)
  at Illuminate\View\Factory->callComposer(object(View))
     (/data01/virt121299/domeenid/www.infohunt.dev.okia.ee/htdocs/wp-content/themes/infohunt/vendor/illuminate/view/View.php:176)
  at Illuminate\View\View->renderContents()
     (/data01/virt121299/domeenid/www.infohunt.dev.okia.ee/htdocs/wp-content/themes/infohunt/vendor/illuminate/view/View.php:147)
  at Illuminate\View\View->render()
     (/data01/virt121299/domeenid/www.infohunt.dev.okia.ee/htdocs/wp-content/themes/infohunt/index.php:14)
  at include('/data01/virt121299/domeenid/www.infohunt.dev.okia.ee/htdocs/wp-content/themes/infohunt/index.php')
     (/data01/virt121299/domeenid/www.infohunt.dev.okia.ee/htdocs/core/wp-includes/template-loader.php:106)
  at require_once('/data01/virt121299/domeenid/www.infohunt.dev.okia.ee/htdocs/core/wp-includes/template-loader.php')
     (/data01/virt121299/domeenid/www.infohunt.dev.okia.ee/htdocs/core/wp-blog-header.php:19)
  at require('/data01/virt121299/domeenid/www.infohunt.dev.okia.ee/htdocs/core/wp-blog-header.php')
     (/data01/virt121299/domeenid/www.infohunt.dev.okia.ee/htdocs/index.php:17)