If a user is logged in, then only the tabs are populated with the node titles (the URLs are incorrect btw, they point to myhost.com/xx instead of myhost.com/node/xx)

If no one is logged in, the slideshow shows the content and looks great.

Any ideas?

Comments

udig’s picture

check if you have any restrictions on the nodes included in the slideshow for the logged in user. It sounds like a permission problem (anonymous allowed to see the nodes while the logged in user is not)

udig’s picture

Status: Active » Closed (fixed)

since no response made I am closing this issue.

OnkelTem’s picture

Version: 6.x-2.0 » 6.x-3.0
Status: Closed (fixed) » Active

Exactly same thing.
Plus, tabs links point to unexisting pages like /123 /234 etc - like 'node' part of URL is missed.
Also, FF console shows errors like:

Ошибка: missing ) in parenthetical
Источник: http://dt/misc/drupal.js?i
Строка 193, символ 99
Исходный код:
щита картера 2839р.\x3cbr /\x3e\nФаркоп 14450р.\x3c/p\x3e\n\x3c/div\x3e\n \x3c/div\x3e\n" }

Spent one hour trying to understand what is wrong.

OnkelTem’s picture

StatusFileSize
new1010 bytes

Ok, I found the bug.

The module conflicts with Devel module and possibly with any other module outputting anything outside Drupal theming flow.
Ajax Slideshow doesn't care about safety if JSON it sends, via setting correct drupal headers, and Devel, which actually respects drupal headers breakes JSON, adding its stuff into there.

The fix is simple, instead of using:
print drupal_to_js()
now using:
drupal_json(), which calls drupal_to_js(), set correct headers and sends data back.

Patch attached.

udig’s picture

Title: Nodes do not display for logged in user » Nodes do not display for logged in user - clash with Devel
Status: Active » Needs review

Cool!
OnkelTem thanks a lot for providing this patch.
Changing the status and title accordingly.

gomezbl’s picture

Hi, same problem here; just to point out that the problem is due to "theme developer module", not Devel.

Thanks.

CesarD’s picture

I have the same problem... the tabs link to mysite.com/nid instead of mysite.com/node/nid

No content shown also.. :(

I tried everything.. (the patch also) Pretty close to giving up on this module.

udig’s picture

As much as I'd like to help, I'm currently overloaded with work.
If anyone volunteers to jump in, feel free.
Hopefully this will change sometime soon.