First thanks for the module.
I have a problem, that anonymous users can't see the timeline page, if i am logged everything works fine.

Thanks in advance!

CommentFileSizeAuthor
#2 anonymous_user.png11.91 KBbrzbg

Comments

operinko’s picture

Status: Active » Postponed (maintainer needs more info)

I can't seem to reproduce that.
Can you provide me with steps on how you ended up with this bug?

brzbg’s picture

StatusFileSize
new11.91 KB

I created a new view to use the timeline js.

1. Make it as a page, in my case is /front-page-timeline
2. If i am logged as admin, everything works fine when i go to /front-page-timeline, but if i logged out, i only see the title of the page.

If u need more info let me know, here its a screenshot of what i see when i am logged out.

operinko’s picture

Can you tell me what have you got set in the Views "Page: Access options"?
And can you confirm that whatever role/permission is required there is also set to the anonymous users?
Just trying to eliminate every possibility before I dig too deep into the code looking for something that may or may not exist.

brzbg’s picture

Sure

Access: Permission | View published content

And the role/permission is set for anonymous user.

Edit: If i open it threw mobile device with android or iOS again as anonymous it works. Its really strange

operinko’s picture

Then it's probably a browser issue instead of a problem in the code.
Perhaps your browser is caching aggressively?

brzbg’s picture

Surely not, i tried different browsers and different PC(i have 4 at home).

csunny’s picture

I have the same problem.

spfaffly’s picture

I'm sure this is a browser issue as well. It wouldn't make sense for mobile devices to display vs desktop as the module renders the same output for both.

Maybe there's an issue with your template file or any overrides you may have? Malformed mark up? Desktop vs Mobile only JS? Using a responsive theme?

Have you processed the markup through an HTML validator?

fluxsauce’s picture

spfaffly, here's an example from a production site where I'm using it:

  <div class="view view-timeline view-id-timeline view-display-id-default view-dom-id-43436655df3a9932ce6a7f9acf811aa0">
    <div class="view-content">
      <div id="timelinejs_timeline_default" class="timelinejs"></div>
    </div>
  </div>

Not a lot of markup and it's correctly formed, so I doubt that's it. This module is pretty much just passing well formatted options to the Timeline JS library.

Anjaro’s picture

Just delete, sorry.

fluxsauce’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)
dobe’s picture

So I am not going to reopen as it is not an issue with this module, but I just want to make mention I could reproduce this issue. I however don't know for sure if it is exactly the same setup as brzbg had. But if you use a "Entity Relationship" within your view.

There is a query access permission bug in Drupal Core. https://drupal.org/node/1349080 has all the details.

Since my timeline was using an entity reference It was not displaying when viewing as anonymous user regardless of views access settings. There is a patch in #89 that won't be committed till D8 gets it's issue resolved. However that patched worked to clear up this issue.

Just a tid bit as this issue can make your hair fall out ( Forcefully of course) :D hope it helps.