#226 ✓resolved

Error in Evaluation Google Analytics

Reported by schroedi | February 11th, 2009 @ 01:19 PM

I insert the Google Analytics Code into the settings in the admin view and save it. After this I want to insert a new User in the Newsletter view and I got the following error:

call: http://myurl.com/admin/sites/1/n...

 NoMethodError in Admin/newsletter_subscriptions#index

Showing vendor/adva/engines/adva_newsletter/app/views/admin/shared/_tracking.html.erb where line #9 raised:

You have a nil object when you didn't expect it!
The error occurred while evaluating nil.has_tracking_enabled?

Extracted source (around line #9):

6:       <%= f.check_box :track, :onclick => "$('tracking_options').toggle();" %>
7:       <%= f.label :track, t(:'adva.tracking.enable_tracking'), :style => "display:inline;" %>
8:     </p>
9:     <div id="tracking_options"<%= 'style="display:none;"' unless @issue.has_tracking_enabled? %>>
10:       <span class="hint"><%= t(:'adva.tracking.hints.glossary', :link => link_to(t(:'adva.tracking.hints.glossary_name'), "http://www.google.com/support/googleanalytics/bin/topic.py?topic=11096&hl=#{I18n.locale}")) %>
11:       <p>
12:         <%= f.label :tracking_campaign, t(:'adva.tracking.tracking_campaign') %>



Comments and changes to this ticket

  • Clemens Kofler

    Clemens Kofler February 11th, 2009 @ 02:10 PM

    • Tag set to bug, newsletter, tracking
    • Assigned user changed from “Clemens Kofler” to “Priit Tamboom”
    • State changed from “new” to “open”

    I can confirm this. But let's assign it to Priit because there also seems to be a (possible related?) bug in subscriptions/new.

  • Priit Tamboom

    Priit Tamboom February 16th, 2009 @ 06:40 PM

    • State changed from “open” to “resolved”

    Thanks for reporting! I have fixed the bug, please pull from master.

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<p>Cutting edge cms, blog, wiki, forum ... plattform.</p>

<p>Find the code on <a href="http://github.com/svenfuchs/adva_cms/tree/master">GitHub: adva cms</a></p>

<p>Part of the business application framework <a href="http://www.advabest.org/">adva best</a>.</p>