We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi,
I am trying to use this plugin on a Craft 3.5 site, when I do a search for an email address I get the below:
Twig Runtime Error – Twig\Error\RuntimeError Impossible to access an attribute ("id") on a null variable.
1. in /var/www/project/cms/vendor/adigital/gdprdatachecker/src/templates/result.twigat line 141 132133134135136137138139140141142143144145146147148149150 {% endif %} {% if gdprData.member.entries|length %} <div class="subheading"> <h3>Authored Entries</h3> </div> <div class="subcontent"> {% for entry in gdprData.member.entries %} <div class="subheading"> <h3>Entry: ID - {{ entry.id }}</h3> </div> <div class="subcontent"> <p>Title: {{ entry.title }}</p> <p>Section: {{ entry.section }}</p> {% if entry.uri|length %} <p>URI: <a href="/{{ entry.uri }}" target="_blank">{{ entry.uri }}</a></p> {% endif %} <p>Edit Entry: <a href="{{ entry.cpEditUrl }}" target="_blank">{{ entry.cpEditUrl }}</a></p> <p>Post Date: {{ entry.postDate|date("Y-m-d H:i:s") }}</p>
2. in /var/www/project/cms/vendor/craftcms/cms/src/helpers/Template.php at line 92– twig_get_attribute(craft\web\twig\Environment, Twig\Source, null, 'id', ...) 86878889909192939495969798 // Add deprecated support for the old DateTime methods if ($object instanceof \DateTime && ($value = self::_dateTimeAttribute($object, $item, $type)) !== false) { return $value; } try { return \twig_get_attribute($env, $source, $object, $item, $arguments, $type, $isDefinedTest, $ignoreStrictCheck); } catch (UnknownMethodException $e) { // Copy twig_get_attribute()'s BadMethodCallException handling if ($ignoreStrictCheck || !$env->isStrictVariables()) { return null; } throw new RuntimeError($e->getMessage(), -1, $source);
3. in /var/www/project/cms/vendor/adigital/gdprdatachecker/src/templates/result.twig at line 141– craft\helpers\Template::attribute(craft\web\twig\Environment, Twig\Source, null, 'id', ...) 135136137138139140141142143144145146147 <div class="subheading"> <h3>Authored Entries</h3> </div> <div class="subcontent"> {% for entry in gdprData.member.entries %} <div class="subheading"> <h3>Entry: ID - {{ entry.id }}</h3> </div> <div class="subcontent"> <p>Title: {{ entry.title }}</p> <p>Section: {{ entry.section }}</p> {% if entry.uri|length %} <p>URI: <a href="/{{ entry.uri }}" target="_blank">{{ entry.uri }}</a></p>
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi,
I am trying to use this plugin on a Craft 3.5 site, when I do a search for an email address I get the below:
The text was updated successfully, but these errors were encountered: