Symfony Exception

ErrorException

HTTP 500 Internal Server Error

Attempt to read property "ID" on null

Exception

ErrorException

HandleExceptions->handleError(2, 'Attempt to read property "ID" on null', '/srv/www/sites/CAPE/CAPE_MAX/com.maxicours.www/releases/4926777-v690/se/wp-content/themes/mymaxicours/app/datalayer.php', 51) in /srv/www/sites/CAPE/CAPE_MAX/com.maxicours.www/releases/4926777-v690/se/wp-content/themes/mymaxicours/app/datalayer.php (line 51)
    include('/srv/www/sites/CAPE/CAPE_MAX/com.maxicours.www/releases/4926777-v690/se/wp-content/themes/mymaxicours/index.php') in /srv/www/sites/CAPE/CAPE_MAX/com.maxicours.www/releases/4926777-v690/se/wp-includes/template-loader.php (line 106)
      require_once('/srv/www/sites/CAPE/CAPE_MAX/com.maxicours.www/releases/4926777-v690/se/wp-includes/template-loader.php') in /srv/www/sites/CAPE/CAPE_MAX/com.maxicours.www/releases/4926777-v690/se/wp-blog-header.php (line 19)
        require('/srv/www/sites/CAPE/CAPE_MAX/com.maxicours.www/releases/4926777-v690/se/wp-blog-header.php') in /srv/www/sites/CAPE/CAPE_MAX/com.maxicours.www/releases/4926777-v690/se/index.php (line 17)

          Stack Trace

          ErrorException
          ErrorException:
          Attempt to read property "ID" on null
          
            at /srv/www/sites/CAPE/CAPE_MAX/com.maxicours.www/releases/4926777-v690/se/wp-content/themes/mymaxicours/app/datalayer.php:51
            at Illuminate\Foundation\Bootstrap\HandleExceptions->handleError(2, 'Attempt to read property "ID" on null', '/srv/www/sites/CAPE/CAPE_MAX/com.maxicours.www/releases/4926777-v690/se/wp-content/themes/mymaxicours/app/datalayer.php', 51, array())
               (/srv/www/sites/CAPE/CAPE_MAX/com.maxicours.www/releases/4926777-v690/se/wp-content/themes/mymaxicours/vendor/roots/acorn/src/Roots/Acorn/Bootstrap/HandleExceptions.php:49)
            at Roots\Acorn\Bootstrap\HandleExceptions->handleError(2, 'Attempt to read property "ID" on null', '/srv/www/sites/CAPE/CAPE_MAX/com.maxicours.www/releases/4926777-v690/se/wp-content/themes/mymaxicours/app/datalayer.php', 51)
               (/srv/www/sites/CAPE/CAPE_MAX/com.maxicours.www/releases/4926777-v690/se/wp-content/themes/mymaxicours/app/datalayer.php:51)
            at custom_datalayer('')
               (/srv/www/sites/CAPE/CAPE_MAX/com.maxicours.www/releases/4926777-v690/se/wp-includes/class-wp-hook.php:324)
            at WP_Hook->apply_filters(null, array(''))
               (/srv/www/sites/CAPE/CAPE_MAX/com.maxicours.www/releases/4926777-v690/se/wp-includes/class-wp-hook.php:348)
            at WP_Hook->do_action(array(''))
               (/srv/www/sites/CAPE/CAPE_MAX/com.maxicours.www/releases/4926777-v690/se/wp-includes/plugin.php:517)
            at do_action('wp_head')
               (/srv/www/sites/CAPE/CAPE_MAX/com.maxicours.www/releases/4926777-v690/se/wp-includes/general-template.php:3192)
            at wp_head()
               (/srv/www/sites/CAPE/CAPE_MAX/com.maxicours.www/releases/4926777-v690/se/wp-content/themes/mymaxicours/index.php:7)
            at include('/srv/www/sites/CAPE/CAPE_MAX/com.maxicours.www/releases/4926777-v690/se/wp-content/themes/mymaxicours/index.php')
               (/srv/www/sites/CAPE/CAPE_MAX/com.maxicours.www/releases/4926777-v690/se/wp-includes/template-loader.php:106)
            at require_once('/srv/www/sites/CAPE/CAPE_MAX/com.maxicours.www/releases/4926777-v690/se/wp-includes/template-loader.php')
               (/srv/www/sites/CAPE/CAPE_MAX/com.maxicours.www/releases/4926777-v690/se/wp-blog-header.php:19)
            at require('/srv/www/sites/CAPE/CAPE_MAX/com.maxicours.www/releases/4926777-v690/se/wp-blog-header.php')
               (/srv/www/sites/CAPE/CAPE_MAX/com.maxicours.www/releases/4926777-v690/se/index.php:17)