After upgrading to Drupal 7.16, I am getting following error on User profile pages (constructed in Display suite)

Fatal error: __clone method called on non-object in /home/xxxx/public_html/sites/all/modules/token/token.tokens.inc on line 1403

The issue goes away after disabling Display Suite module.

Comments

standingtall’s picture

Project: Token » Display Suite
Version: 7.x-1.4 » 7.x-1.6
swentel’s picture

Status: Active » Postponed (maintainer needs more info)

This happens in field_tokens() which has nothing todo with Display Suite afaics, so I'll leave it open for now. You'll need to give me some more steps to reproduce the error.

pedrogk’s picture

I also encountered this problem.

It only happens when trying to use display suite to modify the layout for user profile (admin/config/people/accounts/display).

I am not sure if it is specifically related to drupal 7.16. I only tried to modify the layout with DS until a couple of days ago, and I already had drupal 7.16 by then.

Please let me know what kind of info would help. I checked the watchdog but couldn't find any useful info.

luksak’s picture

Status: Postponed (maintainer needs more info) » Active

I was getting the same error. I had a vie on the user profile view panels template. That rendered a view content pane that hat a field of a rendered user using ds as a custom display mode.

cc did not solve the issue. But disabling all fields and re-enabling them solved it for me. Does it solve your problem as well?

swentel’s picture

Status: Active » Closed (duplicate)

Well Profile2 has no real support for now, see #1833320: Profile2 support (display and forms) - I hope to get a project soon that we need this so I can built this into DS.

luksak’s picture

Status: Closed (duplicate) » Active

I am not using Profile2...

Taxoman’s picture

Cross-referencing, same (?) issue with the new 2.2 release:
#1928514: Fatal error on User page

luksak’s picture

I realized that my workaround did not solve the issue.

swentel’s picture

Status: Active » Closed (cannot reproduce)

Still can't reproduce this. I'm on latest core and have configured a lot of stuff. So closing until I get clear steps to reproduce.

swentel’s picture

Issue summary: View changes

Changing description

kenorb’s picture

Issue summary: View changes

Note: This error is usually related when passing empty or invalid entity argument into token_replace() or similar function.