Closed joelzerner closed 5 years ago
I'm also seeing a blank settings page. Craft 3.3.12, Instant Analytics 1.1.1 (Trial)
The problem is in the settings template in the plugin (vendor/nystudio107/craft-instantanalytics/src/templates/settings.twig).
{% if craft.imageOptimize.craft31 %}
{{ forms.autosuggestField({
label: 'Google Analytics Tracking ID:',
instructions: "Enter your Google Analytics Tracking ID here. Only enter the ID, e.g.: UA-XXXXXX-XX, not the entire script code.",
suggestEnvVars: true,
id: 'googleAnalyticsTracking',
name: 'googleAnalyticsTracking',
value: settings['googleAnalyticsTracking'],
}) }}
{% else %}
{{ forms.textField({
label: 'Google Analytics Tracking ID:',
instructions: "Enter your Google Analytics Tracking ID here. Only enter the ID, e.g.: UA-XXXXXX-XX, not the entire script code.",
id: 'googleAnalyticsTracking',
name: 'googleAnalyticsTracking',
value: settings['googleAnalyticsTracking']})
}}
{% endif %}
Where the statement {% if craft.imageOptimize.craft31 %} fails.
Temporarily replace the code-snippet above with the code below to make it work until an official fix is released.
{{ forms.textField({
label: 'Google Analytics Tracking ID:',
instructions: "Enter your Google Analytics Tracking ID here. Only enter the ID, e.g.: UA-XXXXXX-XX, not the entire script code.",
id: 'googleAnalyticsTracking',
name: 'googleAnalyticsTracking',
value: settings['googleAnalyticsTracking']})
}}
... or you could change the if-statement to {% if craft.instantAnalytics.craft31 %}
which probably is how it should have been from the beginning :)
Installed on Craft CMS 3.3.11 and license entered and validated.
The Instant Analytics settings page is showing up with the Craft CMS frame but the content section is completely blank. I've pasted the code for the content section below.
I've tried in two different environments and getting the same issue. Any help is appreciated.