Greetings,

On a Drupal 5.3 setup running PHP 4.4.4 views bookmarks works flawlessly as advertised. However, some other modules that I needed required that I set the site up in a PHP 5.2.2. Once I did that I had some strange behavior occur in my view of nodes that had bookmarks active and inside the nodes themselves.

Some background on the nodes:
They are a cck node type with the link, email and phone fields activated.
Each node also has locative data associated with it.

The strange behavior:
When viewing the node in PHP 4, everything seems to be normal as far as listing the cck field values. When in PHP 5 all the data is still there but now it is duplicated for some reason. If I disable the views bookmark module on the site, the cck fields are then listed correctly again (no duplicates).

When viewing the view that lists all nodes that have the bookmark enabled and the bookmark ops field in PHP 4, everything works as advertised. I am able to bookmark/unbookmark as I go. However, when in PHP 5, the bookmark ops field shows that I have bookmarked everything already and I can only remove what I have already bookmarked. But in the view where I show what I have bookmarked it certainly does not show every single node, in fact, this actually shows correctly.

I have attached some screenshots to help illustrate the issue. The first image is what the nodes are supposed to look like (this is using PHP 4.4.4. The second image is what happens in a PHP 5.2.2 environment. The third image is what the view of the nodes with the 'bookmark ops' field enabled is supposed to look like using PHP 4.4.4. The fourth image is what the view looks like in PHP 5.2.2.

I tried to troubleshoot where this issue was originating from (either the server config, the cck contributed mods or views bookmarks. By a process of elimination, I found it to be the views bookmarks modules. Of course, I am not a programmer and after further investigation by someone who is, I apologize if this issue is in fact not related to views bookmarks. But until then, I think it might be.

If anyone has any thoughts or suggestions as to where I might go with this please let me know.

TIA,
txcrew

CommentFileSizeAuthor
View for bookmark enabled nodes in PHP 5 (incorrect)42.18 KBAnonymous (not verified)
View for bookmark enabled nodes in PHP 4 (correct)47.05 KBAnonymous (not verified)
Node view in PHP 5 (incorrect)35.39 KBAnonymous (not verified)
Node view in PHP 4 (correct)31.62 KBAnonymous (not verified)

Comments

quicksketch’s picture

It's unlikely that this is caused by PHP versions (it could be though, who knows), but rather a change in MySQL or Views Bookmark versions. Are there any differences between the sites other than PHP?

quicksketch’s picture

Priority: Critical » Normal

Also... you might try version 1.3. 1.4 has some pretty serious changes, and this very well could be a bug showing through (that's why it's beta after all ;)

Critical is for bugs that render the module inoperable.

Anonymous’s picture

Thanks for the reply and sorry for the critical mark.

The sites have the exact same setup. Which is why I am so puzzled as to where this is going wrong. I believe this was happening in both 1.3 & 1.4beta. Perhaps it is something to do with my server??

TIA,
txcrew

quicksketch’s picture

I had another thought today. If you're using token.module, it has an outstanding problem with recursion (only in PHP5) - http://drupal.org/node/149222. You could try that patch and see if it improves your luck with PHP5.

Anonymous’s picture

This looks to have been the problem! Everything seems to be in working order now. Thanks much!

txcrew

quicksketch’s picture

Status: Active » Closed (duplicate)

Marking as duplicate of Token bug: http://drupal.org/node/149222