https://staging.artshubwma.org/index.php/profiles?page=13

Exceptions

Warning: Division by zero

  • Exception
  • Logs
  • Stack Trace

ErrorException

  1.                     $meta StringUtil::deserialize($objFileModel->metatrue);
  2.                     //Add special classes for tall, wide, and small images
  3.                     $arrClasses = [];
  4.                     $isTallImage false;
  5.                     if($objFile->height/$objFile->width 1.5) {
  6.                         $arrClasses[] = 'tall_image';
  7.                         $isTallImage true;
  8.                     }
  9.                     if($objFile->width/$objFile->height 1.5) {
  10.                         $arrClasses[] = 'wide_image';
ProfileHelper::Rhyme\WMassArtsHub\Helper\{closure}() in src/Rhyme/WMassArtsHub/Helper/ProfileHelper.php (line 195)
  1.             return $arrImage;
  2.         };
  3.         $objTemplate->getListerMainImage = function() use ($objItem$objSource$objTemplate$fnAddImageToTemplate$arrConfig)
  4.         {
  5.             return $fnAddImageToTemplate($objItem->main_image$objItem$objSource$objTemplate$arrConfig);
  6.         };
  7.         $objTemplate->getReaderMainImage = function() use ($objItem$objSource$objTemplate$fnAddImageToTemplate$arrConfig)
  8.         {
  9.             return $fnAddImageToTemplate($objItem->main_image$objItem$objSource$objTemplate$arrConfig);
in vendor/contao/core-bundle/src/Resources/contao/library/Contao/Template.php :: Rhyme\WMassArtsHub\Helper\{closure} (line 182)
  1.         if (!isset($this->arrData[$strKey]) || !\is_callable($this->arrData[$strKey]))
  2.         {
  3.             throw new \InvalidArgumentException("$strKey is not set or not a callable");
  4.         }
  5.         return \call_user_func_array($this->arrData[$strKey], $arrParams);
  6.     }
  7.     /**
  8.      * Check whether a property is set
  9.      *
  1. <?php
  2. use Contao\StringUtil;
  3. $arrImage $this->getListerMainImage();
  4. ?>
  5. <form action="<?= $this->action?>" id="<?= $this->formId?>" name="artshubCollection<?= rand(); ?>" method="post" enctype="<?= $this->enctype?>">
  6.     <div class="formbody">
  7.         <input type="hidden" name="FORM_SUBMIT" value="<?= $this->formSubmit?>">
  8.         <input type="hidden" name="REQUEST_TOKEN" value="{{request_token}}">
  1.             try
  2.             {
  3.                 if (file_exists($strParent))
  4.                 {
  5.                     include $strParent;
  6.                 }
  7.                 else
  8.                 {
  9.                     System::getContainer()
  10.                         ->get('monolog.logger.contao')
  1.                 $this->import($callback[0]);
  2.                 $this->{$callback[0]}->{$callback[1]}($this);
  3.             }
  4.         }
  5.         return $this->inherit();
  6.     }
  7.     /**
  8.      * Parse the template file and print it to the screen
  9.      *
  1.      *
  2.      * @return string The template markup
  3.      */
  4.     public function parse()
  5.     {
  6.         $strBuffer parent::parse();
  7.         // HOOK: add custom parse filters
  8.         if (isset($GLOBALS['TL_HOOKS']['parseFrontendTemplate']) && \is_array($GLOBALS['TL_HOOKS']['parseFrontendTemplate']))
  9.         {
  10.             foreach ($GLOBALS['TL_HOOKS']['parseFrontendTemplate'] as $callback)
FrontendTemplate->parse() in src/Rhyme/WMassArtsHub/Model/Profile/Item.php (line 96)
  1.             foreach ($GLOBALS['TL_HOOKS']['generateProfileItem'] as $callback) {
  2.                 System::importStatic($callback[0])->{$callback[1]}($objTemplate$this);
  3.             }
  4.         }
  5.         return \trim($objTemplate->parse());
  6.     }
  7.     /**
  8.      * Generate url
  9.      *
  1.             $arrCSS StringUtil::deserialize($objItem->cssIDtrue);
  2.             $arrBuffer[] = array(
  3.                 'cssID'     => ($arrCSS[0] != '') ? ' id="' $arrCSS[0] . '"' '',
  4.                 'class'     => trim('profileItem ' $arrCSS[1]),
  5.                 'html'      => $objItem->generate($arrConfig),
  6.                 'item'      => $objItem,
  7.             );
  8.         }
  9.         if (isset($GLOBALS['TL_HOOKS']['generateProfileList']) && is_array($GLOBALS['TL_HOOKS']['generateProfileList'])) {
  1.     public function generate()
  2.     {
  3.         $this->Template = new FrontendTemplate($this->strTemplate);
  4.         $this->Template->setData($this->arrData);
  5.         $this->compile();
  6.         // Do not change this order (see #6191)
  7.         $this->Template->style = !empty($this->arrStyle) ? implode(' '$this->arrStyle) : '';
  8.         $this->Template->class trim('mod_' $this->type ' ' . ($this->cssID[1] ?? ''));
  9.         $this->Template->cssID = !empty($this->cssID[0]) ? ' id="' $this->cssID[0] . '"' '';
  1.         if (\is_numeric(Input::get('perpage')) && \intval(Input::get('perpage')))
  2.         {
  3.             $this->perPage = \intval(Input::get('perpage'));
  4.         }
  5.         return parent::generate();
  6.     }
  7.     /**
  8.      * Compile
  1.         {
  2.             $responseTagger System::getContainer()->get('fos_http_cache.http.symfony_response_tagger');
  3.             $responseTagger->addTags(array('contao.db.tl_content.' $this->id));
  4.         }
  5.         $strBuffer $objModule->generate();
  6.         if (isset($objStopwatch) && $objStopwatch->isStarted($strStopWatchId))
  7.         {
  8.             $objStopwatch->stop($strStopWatchId);
  9.         }
  1.             $objStopwatch->start($strStopWatchId'contao.layout');
  2.         }
  3.         /** @var ContentElement $objElement */
  4.         $objElement = new $strClass($objRow$strColumn);
  5.         $strBuffer $objElement->generate();
  6.         // HOOK: add custom logic
  7.         if (isset($GLOBALS['TL_HOOKS']['getContentElement']) && \is_array($GLOBALS['TL_HOOKS']['getContentElement']))
  8.         {
  9.             foreach ($GLOBALS['TL_HOOKS']['getContentElement'] as $callback)
  1.         if ($objCte !== null)
  2.         {
  3.             while ($objCte->next())
  4.             {
  5.                 $arrElements[] = $this->getContentElement($objCte->current(), $this->strColumn);
  6.             }
  7.         }
  8.         $this->Template->teaser $this->teaser;
  9.         $this->Template->elements $arrElements;
  1.     public function generate()
  2.     {
  3.         $this->Template = new FrontendTemplate($this->strTemplate);
  4.         $this->Template->setData($this->arrData);
  5.         $this->compile();
  6.         // Do not change this order (see #6191)
  7.         $this->Template->style = !empty($this->arrStyle) ? implode(' '$this->arrStyle) : '';
  8.         $this->Template->class trim('mod_' $this->type ' ' . ($this->cssID[1] ?? ''));
  9.         $this->Template->cssID = !empty($this->cssID[0]) ? ' id="' $this->cssID[0] . '"' '';
  1.         {
  2.             $responseTagger System::getContainer()->get('fos_http_cache.http.symfony_response_tagger');
  3.             $responseTagger->addTags(array('contao.db.tl_article.' $this->id));
  4.         }
  5.         return parent::generate();
  6.     }
  7.     protected function isHidden()
  8.     {
  9.         $isUnpublished = !$this->published || ($this->start && $this->start time()) || ($this->stop && $this->stop <= time());
  1.             $objStopwatch System::getContainer()->get('debug.stopwatch');
  2.             $objStopwatch->start($strStopWatchId'contao.layout');
  3.         }
  4.         $objArticle = new ModuleArticle($objRow$strColumn);
  5.         $strBuffer $objArticle->generate($blnIsInsertTag);
  6.         // Disable indexing if protected
  7.         if ($objArticle->protected && !preg_match('/^\s*<!-- indexer::stop/'$strBuffer))
  8.         {
  9.             $strBuffer "\n<!-- indexer::stop -->" $strBuffer "<!-- indexer::continue -->\n";
  1.             $return '';
  2.             $blnMultiMode = ($objArticles->count() > 1);
  3.             while ($objArticles->next())
  4.             {
  5.                 $return .= static::getArticle($objArticles->current(), $blnMultiModefalse$strColumn);
  6.             }
  7.             return $return;
  8.         }
  1.                     if ($objLayout->rows != '2rwf' && $objLayout->rows != '3rw' && $arrModule['col'] == 'footer')
  2.                     {
  3.                         continue;
  4.                     }
  5.                     $this->Template->{$arrModule['col']} .= $this->getFrontendModule($arrModule['mod'], $arrModule['col']);
  6.                 }
  7.                 else
  8.                 {
  9.                     if (!isset($arrCustomSections[$arrModule['col']]))
  10.                     {
  1.      *
  2.      * @return Response
  3.      */
  4.     public function getResponse($objPage$blnCheckRequest=false)
  5.     {
  6.         $this->prepare($objPage);
  7.         $response $this->Template->getResponse($blnCheckRequest);
  8.         // Finalize the response context so it cannot be used anymore
  9.         System::getContainer()->get(ResponseContextAccessor::class)->finalizeCurrentContext($response);
  1.                         return $objResponse;
  2.                     }
  3.                     /** @var PageRegular $objHandler */
  4.                     return $objHandler->getResponse($objPagetrue);
  5.             }
  6.         }
  7.         // Render the error page (see #5570)
  8.         catch (\UnusedArgumentsException $e)
  1.         $this->dispatcher->dispatch($eventKernelEvents::CONTROLLER_ARGUMENTS);
  2.         $controller $event->getController();
  3.         $arguments $event->getArguments();
  4.         // call controller
  5.         $response $controller(...$arguments);
  6.         // view
  7.         if (!$response instanceof Response) {
  8.             $event = new ViewEvent($this$request$type$response);
  9.             $this->dispatcher->dispatch($eventKernelEvents::VIEW);
  1.     public function handle(Request $requestint $type HttpKernelInterface::MAIN_REQUESTbool $catch true)
  2.     {
  3.         $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  4.         try {
  5.             return $this->handleRaw($request$type);
  6.         } catch (\Exception $e) {
  7.             if ($e instanceof RequestExceptionInterface) {
  8.                 $e = new BadRequestHttpException($e->getMessage(), $e);
  9.             }
  10.             if (false === $catch) {
  1.         $this->boot();
  2.         ++$this->requestStackSize;
  3.         $this->resetServices true;
  4.         try {
  5.             return $this->getHttpKernel()->handle($request$type$catch);
  6.         } finally {
  7.             --$this->requestStackSize;
  8.         }
  9.     }
Kernel->handle() in web/index.php (line 31)
  1. $loader = require __DIR__.'/../vendor/autoload.php';
  2. $request Request::createFromGlobals();
  3. $kernel ContaoKernel::fromRequest(\dirname(__DIR__), $request);
  4. $response $kernel->handle($request);
  5. $response->send();
  6. if ($kernel instanceof TerminableInterface) {
  7.     $kernel->terminate($request$response);
  8. }