27. TypeError
…home…noncoupa…public_html_beta…src…Twig…Template.php390
26. Twig_Template getAttribute
…home…noncoupa…public_html_beta…tmp…cache…view…d0…40…8f54ffc9a1d5117b24b9625335b9.php28
25. __TwigTemplate_d0408f54ffc9a1d5117b24b9625335b9 doDisplay
…home…noncoupa…public_html_beta…src…Twig…Template.php264
24. Twig_Template displayWithErrorHandling
…home…noncoupa…public_html_beta…src…Twig…Template.php238
23. Twig_Template display
…home…noncoupa…public_html_beta…tmp…cache…view…d4…81…628829727a5dcf6e7034223ceeae.php97
22. __TwigTemplate_d481628829727a5dcf6e7034223ceeae block_content
…home…noncoupa…public_html_beta…src…Twig…Template.php133
21. Twig_Template displayBlock
…home…noncoupa…public_html_beta…tmp…cache…view…74…58…eb73c5c96c69132d4cba9050656d.php411
20. __TwigTemplate_7458eb73c5c96c69132d4cba9050656d doDisplay
…home…noncoupa…public_html_beta…src…Twig…Template.php264
19. Twig_Template displayWithErrorHandling
…home…noncoupa…public_html_beta…src…Twig…Template.php238
18. Twig_Template display
…home…noncoupa…public_html_beta…tmp…cache…view…d4…81…628829727a5dcf6e7034223ceeae.php38
17. __TwigTemplate_d481628829727a5dcf6e7034223ceeae doDisplay
…home…noncoupa…public_html_beta…src…Twig…Template.php264
16. Twig_Template displayWithErrorHandling
…home…noncoupa…public_html_beta…src…Twig…Template.php238
15. Twig_Template display
…home…noncoupa…public_html_beta…src…Twig…Template.php249
14. Twig_Template render
…home…noncoupa…public_html_beta…src…Twig…Environment.php288
13. Twig_Environment render
…home…noncoupa…public_html_beta…src…Anekdotes…View…View.php170
12. Anekdotes\View\View render
…home…noncoupa…public_html_beta…src…Anekdotes…Http…Response.php140
11. Anekdotes\Http\Response setContent
…home…noncoupa…public_html_beta…src…Anekdotes…Http…ViewResponse.php28
10. Anekdotes\Http\ViewResponse setContent
…home…noncoupa…public_html_beta…src…Anekdotes…Http…Response.php82
9. Anekdotes\Http\Response __construct
…home…noncoupa…public_html_beta…src…Anekdotes…Http…ViewResponse.php16
8. Anekdotes\Http\ViewResponse __construct
…home…noncoupa…public_html_beta…src…Anekdotes…View…View.php98
7. Anekdotes\View\View make
…home…noncoupa…public_html_beta…src…Anekdotes…Support…Facades…ServiceFacade.php35
6. Anekdotes\Support\Facades\ServiceFacade __callStatic
…home…noncoupa…public_html_beta…app…controllers…frontend…BaseController.php183
5. frontend\BaseController showNotreExpertise_Drogue
<#unknown>0
4. call_user_func_array
…home…noncoupa…public_html_beta…src…Anekdotes…Router…Route.php228
3. Anekdotes\Router\Route executeControllerAction
…home…noncoupa…public_html_beta…src…Anekdotes…Router…Route.php208
2. Anekdotes\Router\Route execute
…home…noncoupa…public_html_beta…src…Anekdotes…Router…Router.php174
1. Anekdotes\Router\Router run
…home…noncoupa…public_html_beta…src…Anekdotes…Application…Application.php99
0. Anekdotes\Application\Application run
…home…noncoupa…public_html_beta…index.php7

TypeError

array_key_exists(): Argument #2 ($array) must be of type array, Services\ServiceCategory given

/home/noncoupa/public_html_beta/src/Twig/Template.php
            throw new Twig_Error_Runtime(sprintf('Impossible to invoke a method ("%s") on a %s variable ("%s")', $item, gettype($object), $object), -1, $this->getTemplateName());
        }
 
        $class = get_class($object);
 
        // object property
        if (Twig_TemplateInterface::METHOD_CALL !== $type) {
            if (isset($object->$item) || array_key_exists((string) $item, $object)) {
                if ($isDefinedTest) {
                    return true;
/home/noncoupa/public_html_beta/tmp/cache/view/d0/40/8f54ffc9a1d5117b24b9625335b9.php
 
    <div class=\"expertise-links\">
      <h3 class=\"title\">Aussi défendu</h3>
      <ul>
        ";
        // line 7
        $context['_parent'] = (array) $context;
        $context['_seq'] = twig_ensure_traversable($this->getAttribute($this->getAttribute((isset($context["category"]) ? $context["category"] : null), "servicest"), "get"));
        foreach ($context['_seq'] as $context["_key"] => $context["sideMenuService"]) {
            // line 8
/home/noncoupa/public_html_beta/src/Twig/Template.php
 
        return ob_get_clean();
    }
 
    protected function displayWithErrorHandling(array $context, array $blocks = array())
    {
        try {
            $this->doDisplay($context, $blocks);
        } catch (Twig_Error $e) {
            if (!$e->getTemplateFile()) {
/home/noncoupa/public_html_beta/src/Twig/Template.php
    }
 
    /**
     * {@inheritdoc}
     */
    public function display(array $context, array $blocks = array())
    {
        $this->displayWithErrorHandling($this->env->mergeGlobals($context), $blocks);
    }
 
/home/noncoupa/public_html_beta/tmp/cache/view/d4/81/628829727a5dcf6e7034223ceeae.php
            <p>La possession, le trafic, la production, l’importation et l’exportation de diverses substances sont illégales au Canada. Chaque substance se retrouve à une annexe spécifique de <i>la Loi réglementant certaines drogues et autres substances.</i> Pour déterminer si une substance est interdite au Canada, il suffit de se référer à ces annexes de la loi.</p>
            <p>Les enquêtes policières pour ce genre d’infraction sont souvent complexes  impliquant parfois des mandats de perquisition ou de l’écoute électronique. Un avocat de notre cabinet sera en mesure d’évaluer la légalité de ces méthodes d’enquête en fonction des faits propres à votre dossier. De plus, les peines reliées à ces infractions en matière de stupéfiants sont de plus en plus sévères. Il est important de consulter un avocat de chez Marcoux Elayoubi Raymond avant de plaider coupable afin de bien comprendre vos droits et l’étendue des conséquences suite à une déclaration de culpabilité.</p>
          </div>
        </div>
        <div class=\"col-4 col-xs-12 pull-left\">
          ";
        // line 39
        $this->env->loadTemplate("@frontend/shared/layout/side-nav")->display($context);
        // line 40
        echo "        </div>
/home/noncoupa/public_html_beta/src/Twig/Template.php
    public function displayBlock($name, array $context, array $blocks = array())
    {
        $name = (string) $name;
 
        if (isset($blocks[$name])) {
            $b = $blocks;
            unset($b[$name]);
            call_user_func($blocks[$name], $context, $b);
        } elseif (isset($this->blocks[$name])) {
            call_user_func($this->blocks[$name], $context, $blocks);
/home/noncoupa/public_html_beta/tmp/cache/view/74/58/eb73c5c96c69132d4cba9050656d.php
        </div>
      </div>
    </header>
 
    <main id=\"main-content\">
      ";
        // line 157
        $this->displayBlock('content', $context, $blocks);
        // line 158
        echo "    </main>
/home/noncoupa/public_html_beta/src/Twig/Template.php
 
        return ob_get_clean();
    }
 
    protected function displayWithErrorHandling(array $context, array $blocks = array())
    {
        try {
            $this->doDisplay($context, $blocks);
        } catch (Twig_Error $e) {
            if (!$e->getTemplateFile()) {
/home/noncoupa/public_html_beta/src/Twig/Template.php
    }
 
    /**
     * {@inheritdoc}
     */
    public function display(array $context, array $blocks = array())
    {
        $this->displayWithErrorHandling($this->env->mergeGlobals($context), $blocks);
    }
 
/home/noncoupa/public_html_beta/tmp/cache/view/d4/81/628829727a5dcf6e7034223ceeae.php
        $context["toptitle"] = t("Notre expertise", "Notre expertise");
        // line 5
        $context["topicon"] = t("/assets/img/frontend/pages/icone-stage-crime-drogue@2x.png", "/assets/img/frontend/pages/icone-stage-crime-drogue@2x.png");
        // line 6
        $context["title"] = t("Drogue", "Accusation criminelle - Drogue");
        // line 8
        $context["head_img"] = "/assets/img/frontend/pages/services-avocats-criminalistes-montreal-drogue.jpg";
        $this->getParent($context)->display($context, array_merge($this->blocks, $blocks));
    }
 
/home/noncoupa/public_html_beta/src/Twig/Template.php
 
        return ob_get_clean();
    }
 
    protected function displayWithErrorHandling(array $context, array $blocks = array())
    {
        try {
            $this->doDisplay($context, $blocks);
        } catch (Twig_Error $e) {
            if (!$e->getTemplateFile()) {
/home/noncoupa/public_html_beta/src/Twig/Template.php
    }
 
    /**
     * {@inheritdoc}
     */
    public function display(array $context, array $blocks = array())
    {
        $this->displayWithErrorHandling($this->env->mergeGlobals($context), $blocks);
    }
 
/home/noncoupa/public_html_beta/src/Twig/Template.php
     * {@inheritdoc}
     */
    public function render(array $context)
    {
        $level = ob_get_level();
        ob_start();
        try {
            $this->display($context);
        } catch (Exception $e) {
            while (ob_get_level() > $level) {
/home/noncoupa/public_html_beta/src/Twig/Environment.php
     * @param string $name    The template name
     * @param array  $context An array of parameters to pass to the template
     *
     * @return string The rendered template
     */
    public function render($name, array $context = array())
    {
        return $this->loadTemplate($name)->render($context);
    }
 
/home/noncoupa/public_html_beta/src/Anekdotes/View/View.php
      $vars = $this->values;
      $defaultlayoutPath = Config::get('app.default_layout', null);
      if ($this->layout != '' && $this->loader->exists($this->layout)) {
        $vars['layout'] = $this->twig->loadTemplate($this->layout);
      } else if ($defaultlayoutPath != null && $this->loader->exists($defaultlayoutPath)) {
        $vars['layout'] = $this->twig->loadTemplate($defaultlayoutPath);
      }
      return $this->twig->render($fullPath, $vars);
    } else {
      throw new HttpException('Template file not found ('.$fullPath.')', 500);
/home/noncoupa/public_html_beta/src/Anekdotes/Http/Response.php
  public function setContent($content) {
    $this->original = $content;
 
    if ($this->shouldBeJson($content)) {
      $this->headers->set('Content-Type', 'application/json');
      $content = $this->morphToJson($content);
    } elseif ($content instanceof RenderableInterface){
      $content = $content->render();
    }
 
/home/noncoupa/public_html_beta/src/Anekdotes/Http/ViewResponse.php
  }
 
  public function setContent($view) {
    if (!$view instanceof \Anekdotes\View\View) {
      throw new ArgumentException('Response view must be an instance of \Anekdotes\View\View.');
    }
 
    return parent::setContent($view);
  }
 
/home/noncoupa/public_html_beta/src/Anekdotes/Http/Response.php
        510 => 'Not Extended',                                                // RFC2774
        511 => 'Network Authentication Required',                             // RFC6585
    );
 
  public function __construct($content = '', $status = 200, $headers = array()) {
    $this->headers = new Registry();
    $this->cookies = array();
    $this->setContent($content);
    $this->setStatusCode($status);
  }
/home/noncoupa/public_html_beta/src/Anekdotes/Http/ViewResponse.php
  handles well objects that implements Renderable interface but we might want to do some
  special voodo magic in the Router if the response is a View, having a class name to do
  some "instanceof" check's will be useful.
*/
class ViewResponse extends Response {
 
  public function __construct($view, $status = 200, $headers = array()) {
    parent::__construct($view, $status, $headers);
  }
 
/home/noncoupa/public_html_beta/src/Anekdotes/View/View.php
  public function make($path, $data = array(), $fromRoot = false, $status = 200) {
    $view = new self($path, $data, $fromRoot);
    $view->setLoader($this->getLoader());
    $view->setTwig($this->getTwig());
    $view->setExtensionContainer($this->getExtensionContainer());
    $view->setPrefix($this->getPrefix());
    $view->setLayout($this->getLayout());
    $response = new ViewResponse($view, $status);
    return $response;
  }
/home/noncoupa/public_html_beta/src/Anekdotes/Support/Facades/ServiceFacade.php
      case 0:
        return $instance->$method();
 
      case 1:
        return $instance->$method($args[0]);
 
      case 2:
        return $instance->$method($args[0], $args[1]);
 
      case 3:
/home/noncoupa/public_html_beta/app/controllers/frontend/BaseController.php
  public function showNotreExpertise_CrimeSexuel() {
    return View::make('@frontend/../pages/notre-expertise/crime-sexuel/index', array(
      'category' => $this->getCategory('crime-sexuel')
    ));
  }
  public function showNotreExpertise_Drogue() {
    return View::make('@frontend/../pages/notre-expertise/drogue/index', array(
      'category' => $this->getCategory('drogue')
    ));
  }
<#unknown>
/home/noncoupa/public_html_beta/src/Anekdotes/Router/Route.php
    if ($beforeResult instanceof \Anekdotes\View\View || $beforeResult instanceof \Anekdotes\Router\Redirector || gettype($beforeResult) == 'string') {
      return $beforeResult;
    }
 
    // Call method
    if (method_exists($controller, $action)) {
      $result = call_user_func_array(
          array($controller, $action),
          $params
        );
/home/noncoupa/public_html_beta/src/Anekdotes/Router/Route.php
        );
    }
    elseif ($this->actiontype == static::A_CONTROLLER_ACTION) {
      $controllerAndAction = explode('@', $this->action);
      $controllerName = '\\'.ltrim($controllerAndAction[0], '\\');
      $controller = new $controllerName($app);
      return $this->executeControllerAction(
          $controller,
          $controllerAndAction[1],
          $routeParamsValues
/home/noncoupa/public_html_beta/src/Anekdotes/Router/Router.php
    $currentUri = Request::uri(); // More speedy to not request each time
    foreach (static::$routes as $route) {
      if ($route->match($currentUri)) {
        $matchFound = true;
        static::$currentRoute = $route;
 
        // Execute the route action
        $routeResult = $route->execute($app, $currentUri);
        if ($routeResult instanceof \Anekdotes\Http\Response) {
          $app->response = $routeResult;
/home/noncoupa/public_html_beta/src/Anekdotes/Application/Application.php
      $app->response->setContent('An error occured during the execution of your request! (500)');
    });
 
    // Execute request
    ob_start();
    try {
      $this->runFilters('before');
      Router::run($this);
      $this->runFilters('after');
    } catch(HttpException $e) {
/home/noncoupa/public_html_beta/index.php
<?php
 
require __DIR__.'/app/autoload.php';
 
$app = require __DIR__.'/app/start.php';
 
$app->run();
$app->shutdown();
 
Key Value
HTTP_HOST beta.noncoupable.ca
DOCUMENT_ROOT /home/noncoupa/public_html_beta
PATH /usr/local/bin:/usr/bin:/bin
TEMP /tmp
TMP /tmp
TMPDIR /tmp
PWD /
HTTP_ACCEPT */*
CONTENT_LENGTH 0
HTTP_COOKIE PHPSESSID=89ovoog3n9hqid0cu0p4as1mjk
HTTP_USER_AGENT Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
HTTP_X_FORWARDED_HOST beta.noncoupable.ca
HTTP_X_FORWARDED_PORT 443
HTTP_X_FORWARDED_PROTO https
HTTP_X_FORWARDED_SERVER beta.noncoupable.ca
HTTP_X_REAL_IP 216.73.216.141
REDIRECT_UNIQUE_ID aX95NYxhqG5MVjvpaKzLNwAAAVY
REDIRECT_HTTPS on
REDIRECT_SSL_TLS_SNI beta.noncoupable.ca
REDIRECT_STATUS 200
UNIQUE_ID aX95NYxhqG5MVjvpaKzLNwAAAVY
HTTPS on
SSL_TLS_SNI beta.noncoupable.ca
SERVER_SIGNATURE
SERVER_SOFTWARE Apache
SERVER_NAME beta.noncoupable.ca
SERVER_ADDR 104.254.183.92
SERVER_PORT 443
REMOTE_ADDR 216.73.216.141
REQUEST_SCHEME https
CONTEXT_PREFIX
CONTEXT_DOCUMENT_ROOT /home/noncoupa/public_html_beta
SERVER_ADMIN webmaster@beta.noncoupable.ca
SCRIPT_FILENAME /home/noncoupa/public_html_beta/index.php
REMOTE_PORT 58646
REDIRECT_URL /notre-expertise/drogue
SERVER_PROTOCOL HTTP/1.1
REQUEST_METHOD GET
QUERY_STRING
REQUEST_URI /notre-expertise/drogue
SCRIPT_NAME /index.php
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1769961781.3412
REQUEST_TIME 1769961781
empty
empty
empty
Key Value
PHPSESSID 89ovoog3n9hqid0cu0p4as1mjk
Key Value
_token CnRos9DEJTMaHqBYAbN4IO4dAry6Y1zHj814f62s
Key Value
DB_DRIVER mysql
DB_HOST localhost
DB_NAME noncoupa_papa_beta
DB_USERNAME noncoupa_papa
DB_PASSWORD ?L(Nn7Z[g?_0
DB_PORT 3306
0. Whoops\Handler\PrettyPageHandler
1. Whoops\Handler\CallbackHandler