https://staging.artshubwma.org/profile/shalom-habibi

Exceptions

Call to a member function next() on null

  • Exception
  • Logs
  • Stack Trace

Error

  1.     {
  2.         try {
  3.             $objDiscCollection =  $this->getRelated('disciplines');
  4.             if($blnRemovePrimary) {
  5.                 $arrDisciplines = [];
  6.                 while($objDiscCollection->next()) {
  7.                     if($objDiscCollection->current()->id !== $this->primary_discipline) {
  8.                         $arrDisciplines[] = $objDiscCollection->current();
  9.                     }
  10.                 }
  11.                 return $arrDisciplines;
  1. use Rhyme\WMassArtsHub\Helper\GeneralHelper;
  2. use Rhyme\WMassArtsHub\Helper\ProfileHelper;
  3. $arrImage $this->getReaderMainImage();
  4. $arrGallery $this->getReaderOtherImages();
  5. $arrDisciplines $this->item->getDisciplines(true);
  6. $arrActivities $this->item->getActivities();
  7. $arrLinks $this->item->getArrayContent('url_collections');
  8. $arrVideos =  $this->item->getVideos();
  9. $arrAwards $this->item->getArrayContent('awards');
  10. $arrEducation $this->item->getArrayContent('education');
  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.         $GLOBALS['TL_JAVASCRIPT']['jquerymosaic'] = 'web/bundles/rhymewmassartshub/assets/js/vendor/jquerymosaic/jquery.mosaic.js|static';
  2.         $GLOBALS['TL_CSS']['jquerymosaic'] = 'web/bundles/rhymewmassartshub/assets/js/vendor/jquerymosaic/jquery.mosaic.css|static';
  3.         $this->addMetaTags($objItem);
  4.         $this->Template->item           $objItem->generate($arrConfig);
  5.         $this->Template->item_id        $this->getCssId($objItem);
  6.         $this->Template->item_class     $this->getCssClass($objItem);
  7.         $this->Template->referer        'javascript:history.go(-1)';
  8.         $this->Template->back           $GLOBALS['TL_LANG']['MSC']['goBack'];
  9.     }
  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.             } else {
  2.                 return '';
  3.             }
  4.         }
  5.         return parent::generate();
  6.     }
  7.     /**
  8.      * Generate module
  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. }