Posted by cloporto on August 17, 2011 at 1:56pm
12 followers
| Project: | Views |
| Version: | 6.x-3.x-dev |
| Component: | Miscellaneous |
| Category: | bug report |
| Priority: | major |
| Assigned: | merlinofchaos |
| Status: | patch (to be ported) |
Issue Summary
Hi everyone,
I was trying to install some translation modules when suddenly all my site wen off.
In the screen i Have this:
Fatal error: Call to a member function translate() on a non-object in .../sites/all/modules/views/includes/base.inc on line 157
I have i18n installed, so I tried to uninstalle it but nothing change. I can acces to same pages of my site, but not to all the pages.
Any help will be really appreciated.
Thanks!
Comments
#1
I have been trying to fix it for 5 hours, and nothing.
Any help will me more than appreciated!!
#2
It's happening to me after updating i18nviews to latest dev.
Disabling the module solves the problem.Disabling and uninstalling the module doesn't solve the problem!#3
First i would take sure that you have
a) the latest views
b) the latest i18n version
c) the latest version of i18nviews
If you really need help, please read http://drupal.org/node/571990 to provide actual informations.
Without informations the bug can't be reproduced and without this it does not really exist.
#4
subscribe..
I need those i18n modules and variable module so Views would hopefully be able to return the text associated with Taxonomy Term ID as View's page title (using contextual filter and %1 argument). Correct me if this is not the way to set a term-based view title ?!
#5
Related issue in i18nviews: #1251706: Fatal error function translate(): NEED TO CLEAR ALL CACHES and remove views_localization_plugin from variable table
#6
I got this error out of the blue today. I then updated to the latest dev versions of Views, CTools, i18n, and Views Internationalization (which was not even turned on), ran the updater and emptied all the cache tables view phpmyadmin, and I still get the white screen of death seemingly on all pages but update.php (with this error message). This was a live site that just got hosed, despite the fact that I had not updated any modules or core or anything. Went to be with it working fine and woke up to white screen of death...
#7
Does this fix the issue for you?
#8
Alternative try out this patch.
#9
dear dereine
thanks a lot!
this foo.patch fixed ist for me
Internationalization 7.x-1.0
Internationalization Views 7.x-3.x-dev
regards
stef
#10
I would like to have some feedback from earl here.
Patch foo: Always initialize at least the none localization plugin.
Patch bar: Check for the localization plugin before executing a function on it.
#11
sub
#12
I tried updating from views-7.x.-3.x-dev to 7.x-3.0-rcl and I got the error: Fatal error: Call to a member function translate() on a non-object I reverted back to the old view so my site is up, but I would like to update.
I tried applying the foo.patch but I couldn't find the file to put it in. Where does it go? In the views module or i18n? Thanks
#13
Hi,
The foo.patch gives me the following error:
Fatal error: Call to a member function init_display() on a non-object in /home/maoastyl/public_html/sites/all/modules/views/plugins/views_plugin_localization.inc on line 133The bar.patch works great.
I'm working with views-7.x-3.x-dev.tar.gz (17/01/2012) and i18nviews-7.x-3.x-dev.tar.gz (08/01/2012).
Thanks dereine !
#14
It would be really cool if you could write print_r(views_trace()) in front of line 133
This should somehow show how this function is called here. This could help a big amount to fix the actual problem.
#15
Ok, the output is this:
view.inc: views_plugin_localization->process_locale_strings line 1896 view.inc: view->process_locale_strings line 1871 view.inc: view->save_locale_strings line 1617 admin.inc: view->save line 2122 form.inc: views_ui_edit_view_form_submit line 1430 form.inc: form_execute_handlers line 844 form.inc: drupal_process_form line 364 form.inc: drupal_build_form line 123 admin.inc: drupal_get_form line 916 menu.inc: call_user_func_array line 503 index.php: menu_execute_active_handler line 21Fatal error: Call to a member function init_display() on a non-object in /home/maoastyl/public_html/sites/all/modules/views/plugins/views_plugin_localization.inc on line 134
#16
I had the same problem today, using views 3.3 and i18n 1.4 installed, without i18nviews installed. When running clear all cashes I got the same error. I applied the patch of #7 and problem disappear.
Can patch #7 be included in the next dev release?
#17
The patch in #7 (foo) makes more sense to me.
#18
Triggering the testbot.
#19
Just committed foo.
Thank @tim.plunkett for pushing this issue.