30. Whoops\Exception\ErrorException
…home…noncoupa…public_html_beta…src…Illuminate…Database…Eloquent…Model.php635
29. Whoops\Run handleError
…home…noncoupa…public_html_beta…src…Illuminate…Database…Eloquent…Model.php635
28. Illuminate\Database\Eloquent\Model Illuminate\Database\Eloquent\{closure}
…home…noncoupa…public_html_beta…src…Illuminate…Support…helpers.php146
27. array_first
…home…noncoupa…public_html_beta…src…Illuminate…Database…Eloquent…Model.php638
26. Illuminate\Database\Eloquent\Model getBelongsToManyCaller
…home…noncoupa…public_html_beta…src…Illuminate…Database…Eloquent…Model.php597
25. Illuminate\Database\Eloquent\Model belongsToMany
…home…noncoupa…public_html_beta…packages…Faqs…models…Faq.php10
24. Faqs\Faq categories
…home…noncoupa…public_html_beta…src…Twig…Template.php437
23. Twig_Template getAttribute
…home…noncoupa…public_html_beta…tmp…cache…view…02…03…a85f3d6bb1d408332b220ba07cee.php78
22. __TwigTemplate_0203a85f3d6bb1d408332b220ba07cee 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…02…03…a85f3d6bb1d408332b220ba07cee.php27
17. __TwigTemplate_0203a85f3d6bb1d408332b220ba07cee 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…FaqsController.php18
5. frontend\FaqsController index
<#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

Whoops \ Exception \ ErrorException

Trying to access array offset on value of type int

/home/noncoupa/public_html_beta/src/Illuminate/Database/Eloquent/Model.php
	 */
	protected function getBelongsToManyCaller()
	{
		$self = __FUNCTION__;
 
		return array_first(debug_backtrace(false), function($trace) use ($self)
		{
			$caller = $trace['function'];
 
			return $caller != 'belongsToMany' and $caller != $self;
/home/noncoupa/public_html_beta/src/Illuminate/Database/Eloquent/Model.php
	 */
	protected function getBelongsToManyCaller()
	{
		$self = __FUNCTION__;
 
		return array_first(debug_backtrace(false), function($trace) use ($self)
		{
			$caller = $trace['function'];
 
			return $caller != 'belongsToMany' and $caller != $self;
/home/noncoupa/public_html_beta/src/Illuminate/Support/helpers.php
   * @param  mixed    $default
   * @return mixed
   */
  function array_first($array, $callback, $default = null)
  {
    foreach ($array as $key => $value)
    {
      if (call_user_func($callback, $key, $value)) return $value;
    }
 
/home/noncoupa/public_html_beta/src/Illuminate/Database/Eloquent/Model.php
		$self = __FUNCTION__;
 
		return array_first(debug_backtrace(false), function($trace) use ($self)
		{
			$caller = $trace['function'];
 
			return $caller != 'belongsToMany' and $caller != $self;
		});
	}
 
/home/noncoupa/public_html_beta/src/Illuminate/Database/Eloquent/Model.php
	 * @param  string  $table
	 * @param  string  $foreignKey
	 * @param  string  $otherKey
	 * @return \Illuminate\Database\Eloquent\Relations\BelongsToMany
	 */
	public function belongsToMany($related, $table = null, $foreignKey = null, $otherKey = null)
	{
		$caller = $this->getBelongsToManyCaller();
 
		// First, we'll need to determine the foreign key and "other key" for the
/home/noncoupa/public_html_beta/packages/Faqs/models/Faq.php
 
class Faq extends TranslatedModel {
  protected $table = 'faqs';
  protected $fillable = array('question', 'slug', 'meta_title', 'meta_description', 'og_title', 'og_description', 'short_response', 'response', 'online', 'locale', 'rank');
  protected $polyglot = array('question', 'slug', 'meta_title', 'meta_description', 'og_title', 'og_description', 'short_response', 'response', 'online');
 
  public function categories() {
    return $this->belongsToMany('GlobalCategories\\Category', 'globalcategories_link', 'owner_id', 'category_id')->where('owner_type',Config::get('faqs::model_name'));
  }
 
/home/noncoupa/public_html_beta/src/Twig/Template.php
            return true;
        }
 
        if ($this->env->hasExtension('sandbox')) {
            $this->env->getExtension('sandbox')->checkMethodAllowed($object, $method);
        }
 
        $ret = call_user_func_array(array($object, $method), $arguments);
 
        // useful when calling a template method from a template
/home/noncoupa/public_html_beta/tmp/cache/view/02/03/a85f3d6bb1d408332b220ba07cee.php
        $context['_parent'] = (array) $context;
        $context['_seq'] = twig_ensure_traversable((isset($context["faqs"]) ? $context["faqs"] : null));
        $context['_iterated'] = false;
        foreach ($context['_seq'] as $context["_key"] => $context["faq"]) {
            // line 33
            echo "              <li class=\"";
            $context['_parent'] = (array) $context;
            $context['_seq'] = twig_ensure_traversable($this->getAttribute($this->getAttribute((isset($context["faq"]) ? $context["faq"] : null), "categories", array(), "method"), "get", array(), "method"));
            foreach ($context['_seq'] as $context["_key"] => $context["category"]) {
                echo twig_escape_filter($this->env, ("faq_" . $this->getAttribute((isset($context["category"]) ? $context["category"] : null), "title")), "html", null, true);
/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/02/03/a85f3d6bb1d408332b220ba07cee.php
        return $this->env->resolveTemplate((isset($context["layout"]) ? $context["layout"] : null));
    }
 
    protected function doDisplay(array $context, array $blocks = array())
    {
        // line 3
        $context["activeLink"] = 6;
        $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/FaqsController.php
    
    $faqs = Faq::join('faqs_lang', 'faqs.id', '=', 'faqs_lang.id')
      ->where('faqs_lang.locale', $locale)
      ->where('faqs_lang.online', true)
      ->get();
 
    return View::make('@frontend/../pages/faq/index', array(
      'faqs' => $faqs
    ));
  }
<#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=dvpsdj15oig031oub7tv5ni6ge
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 aX95kil-_Iwttg-EvE4gaQAAAAo
REDIRECT_HTTPS on
REDIRECT_SSL_TLS_SNI beta.noncoupable.ca
REDIRECT_STATUS 200
UNIQUE_ID aX95kil-_Iwttg-EvE4gaQAAAAo
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 46030
REDIRECT_URL /faq
SERVER_PROTOCOL HTTP/1.1
REQUEST_METHOD GET
QUERY_STRING
REQUEST_URI /faq
SCRIPT_NAME /index.php
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1769961874.5024
REQUEST_TIME 1769961874
empty
empty
empty
Key Value
PHPSESSID dvpsdj15oig031oub7tv5ni6ge
Key Value
_token nWyn3kBBs74ewCPyG9rOlkmu4hOdf6GljKW1cU3y
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