I just upgraded to rc3 and got this error:

Recoverable fatal error: Object of class stdClass could not be converted to string in translation_supported_type() (line 474 of .../modules/translation/translation.module).

Steps done to solve:
1. Deleted /views directory and installed new rc3 version => error stays
2. Deleted /views directory and installed new dev version => error stays
3. Deleted /views directory and restored 7.x-3.0-rc1 => error gone ... all ok again

Hope this helps

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

dawehner’s picture

Version: 7.x-3.0-rc3 » 7.x-3.x-dev
Status: Active » Needs review
FileSize
5.29 KB

Can you please explain when this appears?

For example describe what kind of view you created, provide an export etc. http://drupal.org/node/571990 has some valuable suggestions about this.

Views calls this function just once:


   if (empty($node->language) || !translation_supported_type($node->type) || !node_access('view', $node) || !user_access('translate content')) {

but there is looks fine, but OH i see the problem.

Here is a patch which does quite a lot of things

* Adds support to get a certain part of an entity via get_value();
* Adds support to get part of the value via get_value(). Therefore also take sure to add the fields to the query.
* Fix the rest of the node handlers.

Okay here is a patch.

FreeFox’s picture

WOW, quick service ;)

I have patched the dev version with your patch and ... problems gone ^^

Thanks very much dereine

FreeFox’s picture

Status: Needs review » Active
FileSize
128.71 KB

After upgrade to the dev version of NOV 18 the problem is back so I restored the older version with the patch.

However, I noticed one more thing: the module editable fields is not working anymore. If I make a field in a view editable, instead of showing the editable field I see this:

1!--form-item-field_summary--0-->

(To be clear: this error is with the previous dev version with the patch.)

Attached a screenshot to visualize this. If needed I can give you access to the site.

Thanks in advance

kamenrs’s picture

I have exactly the same problem with Views-7.x-3.0-rc3

dawehner’s picture

Status: Active » Needs review

@freefox
Please post only one problem per issue, i will totally ignore your comment, sorry.
In general this might be first a problem of editable fields, then by views itself, so please create an issue in the editable fields issue queue.

dco’s picture

For me and Views-7.x-3.0-rc3, the patch solved the problem.
Any idea of when the production version of views will be patched ?

Tx

David

dawehner’s picture

Mh what do you mean with "production version of views will be patched"?

johnw3600’s picture

Hi Dereine,
I think that means 'will this appear as Views-7.x-3.0-rc4?'
Regards,
John

dawehner’s picture

Well it means: Please test the patch and once it's tested it will be part of the next release, but if noone tested it, it might have to wait a bit more.

FreeFox’s picture

Tested on 3 sites and working fine.

dazz’s picture

Tested it on latest 7.x-3.x-dev and seems to work fine

dawehner’s picture

Status: Needs review » Fixed

So some people tested this patch. Thanks for doing it!

Committed to 7.x-3.x

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

igalarza’s picture

I've experimented this bug with the 7.x-3.0 release. This version is not patched? It works fine with devel version. Regards