Symfony Exception

Exception

HTTP 500 Internal Server Error

DateTime::__construct(): Failed to parse time string (2022-12-12 16:30 PM) at position 17 (P): The timezone could not be found in the database

Exception

Exception

  1.         // Timezone
  2.         $TZO $this->get_TZO($event);
  3.         $d1 = new DateTime('now'$TZO);
  4.         $d2 = new DateTime($end_date.' '.$end_time$TZO);
  5.         // The event is expired
  6.         if($d2 $d1) return true;
  7.         return false;
  8.     }
  1.         // Timezone
  2.         $TZO $this->get_TZO($event);
  3.         $d1 = new DateTime('now'$TZO);
  4.         $d2 = new DateTime($end_date.' '.$end_time$TZO);
  5.         // The event is expired
  6.         if($d2 $d1) return true;
  7.         return false;
  8.     }
  1. // MEC Settings
  2. $settings $this->get_settings();
  3. // Expired?
  4. if($this->is_expired($event) and isset($settings['export_module_hide_expired']) and $settings['export_module_hide_expired']) return;
  5. // Export module on single page is disabled
  6. if(!isset($settings['export_module_status']) or (isset($settings['export_module_status']) and !$settings['export_module_status'])) return;
  7. $title = isset($event->data->title) ? $event->data->title '';
include('/web-sites/ppl/multisite/web/app/plugins/modern-events-calendar/app/modules/export/details.php') in /web-sites/ppl/multisite/web/app/plugins/modern-events-calendar/app/libraries/main.php (line 2507)
  1.         // Extract Module Params
  2.         extract($params);
  3.         ob_start();
  4.         include $path;
  5.         return $output ob_get_clean();
  6.     }
  7.     /**
  8.      * Returns MEC currencies
  1.             <?php $this->display_data_fields($event); ?>
  2.             <div class="mec-event-info-mobile"></div>
  3.             <!-- Export Module -->
  4.             <?php echo MEC_kses::full($this->main->module('export.details', array('event' => $event))); ?>
  5.             <!-- Countdown module -->
  6.             <?php if($this->main->can_show_countdown_module($event)): ?>
  7.             <div class="mec-events-meta-group mec-events-meta-group-countdown">
  8.                 <?php echo MEC_kses::full($this->main->module('countdown.details', array('event' => $this->events))); ?>
include('/web-sites/ppl/multisite/web/app/themes/communaute/webnus/modern-events-calendar/app/skins/single/default.php') in /web-sites/ppl/multisite/web/app/plugins/modern-events-calendar/app/skins/single/tpl.php (line 55)
  1. elseif($fes and isset($settings['fes_single_event_style']) and trim($settings['fes_single_event_style'])) $layout $settings['fes_single_event_style'];
  2. elseif(!isset($settings['single_single_style']) or (isset($settings['single_single_style']) and $settings['single_single_style'] == 'default')) $layout 'default';
  3. elseif(isset($settings['single_single_style']) and $settings['single_single_style'] == 'builder'$layout 'builder';
  4. elseif(isset($settings['single_single_style']) and $settings['single_single_style'] == 'divi-builder'$layout 'divi-builder';
  5. else $layout 'modern';
  6. include MEC::import('app.skins.single.'.$layouttruetrue);
include('/web-sites/ppl/multisite/web/app/plugins/modern-events-calendar/app/skins/single/tpl.php') in /web-sites/ppl/multisite/web/app/plugins/modern-events-calendar/app/libraries/skins.php (line 296)
  1.         if(in_array($this->sed_method, array('m1'))) $this->main->load_sed_assets($this->settings);
  2.         $custom_output apply_filters('mec_skin_output_html'null$this);
  3.         if(!is_null($custom_output)) return $custom_output;
  4.         ob_start();
  5.         include $this->get_tpl_path();
  6.         return ob_get_clean();
  7.     }
  8.     /**
  9.      * Returns keyword query for adding to WP_Query
  1.         // Fetch the events
  2.         $SKO->fetch();
  3.         // Return the output
  4.         return $SKO->output();
  5.     }
  6.     /**
  7.      * Returns default skin
  8.      * @author Webnus <info@webnus.net>
  1.         $defaults = array('maximum_dates'=>(isset($this->settings['booking_maximum_dates']) ? $this->settings['booking_maximum_dates'] : 6));
  2.         $atts apply_filters('mec_vsingle_atts'$this->parse($event_idwp_parse_args($atts$defaults)));
  3.         $skin 'single';
  4.         return $this->skin($skin$atts);
  5.     }
  6.     /**
  7.      * Do the category archive skin and returns its output
  8.      * @author Webnus <info@webnus.net>
  1.      */
  2.     public function single()
  3.     {
  4.         // Import Render Library
  5.         $render MEC::getInstance('app.libraries.render');
  6.         return $render->vsingle(array('id'=>get_the_ID()));
  7.     }
  8.     
  9.     /**
  10.      * Load category archive page
  11.      * @author Webnus <info@webnus.net>
  1.                         <a href="/login" class="button with-icon">Connectez-vous</a>
  2.                     </div>
  3.                 <?php
  4.                 }
  5.                 ?>
  6.                 <?php $MEC MEC::instance(); echo MEC_Kses::full($MEC->single()); ?>
  7.             <?php endwhile; // end of the loop. ?>
  8.         </section>
  9.     </main>
  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.     }
in /web-sites/ppl/multisite/vendor/illuminate/filesystem/Filesystem.php :: Illuminate\Filesystem\{closure} (line 108)
  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.      * @param  array  $data
  2.      * @return string
  3.      */
  4.     public function get($path, array $data = [])
  5.     {
  6.         return $this->evaluatePath($path$data);
  7.     }
  8.     /**
  9.      * Get the evaluated contents of the view at the given path.
  10.      *
  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 sections get 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.       do_action('get_header');
  2.     }
  3.     ?>
  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('/web-sites/ppl/multisite/web/app/themes/communaute/index.php') in /web-sites/ppl/multisite/web/wp/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('/web-sites/ppl/multisite/web/wp/wp-includes/template-loader.php') in /web-sites/ppl/multisite/web/wp/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('/web-sites/ppl/multisite/web/wp/wp-blog-header.php') in /web-sites/ppl/multisite/web/index.php (line 6)
  1. <?php
  2. /**
  3.  * WordPress View Bootstrapper
  4.  */
  5. define('WP_USE_THEMES'true);
  6. require __DIR__ '/wp/wp-blog-header.php';

Stack Trace

Exception
Exception:
DateTime::__construct(): Failed to parse time string (2022-12-12 16:30 PM) at position 17 (P): The timezone could not be found in the database

  at /web-sites/ppl/multisite/web/app/plugins/modern-events-calendar/app/libraries/main.php:9226
  at DateTime->__construct()
     (/web-sites/ppl/multisite/web/app/plugins/modern-events-calendar/app/libraries/main.php:9226)
  at MEC_main->is_expired()
     (/web-sites/ppl/multisite/web/app/plugins/modern-events-calendar/app/modules/export/details.php:11)
  at include('/web-sites/ppl/multisite/web/app/plugins/modern-events-calendar/app/modules/export/details.php')
     (/web-sites/ppl/multisite/web/app/plugins/modern-events-calendar/app/libraries/main.php:2507)
  at MEC_main->module()
     (/web-sites/ppl/multisite/web/app/themes/communaute/webnus/modern-events-calendar/app/skins/single/default.php:103)
  at include('/web-sites/ppl/multisite/web/app/themes/communaute/webnus/modern-events-calendar/app/skins/single/default.php')
     (/web-sites/ppl/multisite/web/app/plugins/modern-events-calendar/app/skins/single/tpl.php:55)
  at include('/web-sites/ppl/multisite/web/app/plugins/modern-events-calendar/app/skins/single/tpl.php')
     (/web-sites/ppl/multisite/web/app/plugins/modern-events-calendar/app/libraries/skins.php:296)
  at MEC_skins->output()
     (/web-sites/ppl/multisite/web/app/plugins/modern-events-calendar/app/libraries/render.php:487)
  at MEC_render->skin()
     (/web-sites/ppl/multisite/web/app/plugins/modern-events-calendar/app/libraries/render.php:391)
  at MEC_render->vsingle()
     (/web-sites/ppl/multisite/web/app/plugins/modern-events-calendar/mec-init.php:265)
  at MEC->single()
     (/web-sites/ppl/multisite/web/app/themes/communaute/single-mec-events.php:40)
  at require('/web-sites/ppl/multisite/web/app/themes/communaute/single-mec-events.php')
     (/web-sites/ppl/multisite/vendor/illuminate/filesystem/Filesystem.php:107)
  at Illuminate\Filesystem\Filesystem::Illuminate\Filesystem\{closure}()
     (/web-sites/ppl/multisite/vendor/illuminate/filesystem/Filesystem.php:108)
  at Illuminate\Filesystem\Filesystem->getRequire()
     (/web-sites/ppl/multisite/vendor/illuminate/view/Engines/PhpEngine.php:58)
  at Illuminate\View\Engines\PhpEngine->evaluatePath()
     (/web-sites/ppl/multisite/vendor/illuminate/view/Engines/PhpEngine.php:38)
  at Illuminate\View\Engines\PhpEngine->get()
     (/web-sites/ppl/multisite/vendor/illuminate/view/View.php:139)
  at Illuminate\View\View->getContents()
     (/web-sites/ppl/multisite/vendor/illuminate/view/View.php:122)
  at Illuminate\View\View->renderContents()
     (/web-sites/ppl/multisite/vendor/illuminate/view/View.php:91)
  at Illuminate\View\View->render()
     (/web-sites/ppl/multisite/web/app/themes/communaute/index.php:19)
  at include('/web-sites/ppl/multisite/web/app/themes/communaute/index.php')
     (/web-sites/ppl/multisite/web/wp/wp-includes/template-loader.php:106)
  at require_once('/web-sites/ppl/multisite/web/wp/wp-includes/template-loader.php')
     (/web-sites/ppl/multisite/web/wp/wp-blog-header.php:19)
  at require('/web-sites/ppl/multisite/web/wp/wp-blog-header.php')
     (/web-sites/ppl/multisite/web/index.php:6)