Hi,

just installed views 6.x.2.0.alpha2 on a 6.1 drupal install.
when trying to access admin/build/views i have this error:
Fatal error: Unsupported operand types in /home/includes/common.inc on line 1435
i havn't modified the core files.
i have a couple of other modules installed:

  • acl
  • forum access
  • advanced forum
  • dhtml menu
  • localization client
  • messenger
  • nodeauthor
  • pathauto
  • token
  • weather
  • biblio
  • image
  • image gallery
  • lightbox2

and concerning the views module i activated both views and views ui.

any hints?
thanks,
pht3k

CommentFileSizeAuthor
#1 views_l.patch1.08 KBmfb

Comments

mfb’s picture

Status: Active » Needs review
StatusFileSize
new1.08 KB

Assuming you found the same issue I did, there is a bad call to l().

physiotek’s picture

too bad it doesn't work here.
gave me this error instead:
Fatal error: Call to undefined method stdClass::get_path() in /homesites/all/modules/views/includes/admin.inc on line 47

i guess i'll have to wait for a next release.

merlinofchaos’s picture

Status: Needs review » Fixed

There are actually 2 problems here. One is fixed by mfb's patch (committed, thanks!) and the other is that you have a module that is giving you Views 1 views that don't work in Views 2. I put in a patch to ensure Views 2 rejects those views, and committed it to HEAD.

physiotek’s picture

Version: 6.x-2.0-alpha2 » 6.x-2.0-alpha3

i have installed the latest version of views alpha3 and desinstalled all non-core modules and i still have the same error............
Fatal error: Call to undefined method stdClass::get_path() in /home/sites/all/modules/views/includes/admin.inc on line 48 when trying to access views module from admin
and i have this message from many more pages:
warning: Invalid argument supplied for foreach() in /home/sites/all/modules/views/views.module on line 635.
i always updated the db as i am supposed to do.
dunno what is wrong
pht3k

merlinofchaos’s picture

Did you clear cache_views table?

physiotek’s picture

argh that was it!!!
thanks!!

i didnt thought of clearing the cache since i dont have cache activated, but it seems views as his own cache even if cache is turned off. i simply purged directly in the database from phpmyadmin and it worked like a charm!!

thanks
pkt3k

Anonymous’s picture

Status: Fixed » Closed (fixed)

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

ica’s picture

Version: 6.x-2.0-alpha3 » 6.x-2.0-alpha5

i am also having the same 'Unsupported operand types' error
Fatal error: Unsupported operand types in /home/includes/common.inc on line 1435

above advised that to clear the cache_views table via phpMyAdmin and worked for him but when i check the cache_views is already empty, yet i still get the same error on a blank page and it renders the site as blank page

the error is the same with both version views-6.x-2.0-alpha4 and views-6.x-2.0-alpha5

is views-6.x-2.0-alpha5 works with anyone else?
is there another way of this error?

thanks

alza2’s picture

Hi,

I have same problem. I just move my site from a host to another... when I click on the "menu" in "administer". I have this message:

Fatal error: Unsupported operand types in /home/alireza/domains/farhatblog.fr/public_html/drupal/includes/common.inc on line 1435

on phpmyadmin, I don't even have the table cache_views

???

TheresaM’s picture

I had no modules installed. had just enabled fblike theme, was enabling menu's when this occurred, I deleted fblike theme through my ftp and the site recovered,

My error:
Unsupported operand types in /home/includes/common.inc on line 1435

j0rd’s picture

This happened to be in Drupal 7 because I had a hook_theme() which didn't return anything.

change it to


function MYMODULE_theme() {
return array();
}

And it resolved my issue.