Fatal error: Call to undefined function views_include() in /srv/www/xxx/public_html/profiles/commerce_kickstart/modules/contrib/views/includes/plugins.inc on line 9

Comments

demoshane’s picture

This came up after creating finder node with ajax results

rsvelko’s picture

pasted from #2025731: Fatal error: Call to undefined function views_include() /views/includes/plugins.inc on line 9

"Hi,

I came across this error after changing settings in finder views page. I changed urp parameters to NO. Error spreads to ALL of my pages. A workaround is to comment out line 9 in plugins.inc. However, after changing back parameter settings and uncommenting line 9 in views I get the same error and it seemt that my page can not work without this line commented out.

"

here is the line we have to comment out...

// @todo: Remove this once update.php can use the registry
views_include('base');

I wonder if its safe now in D7 after views is this mature, to remove that line for ever.... ?

rsvelko’s picture

jaydee1818’s picture

Issue summary: View changes

Also experienced this bug - and it wasn't pleasant.

andrew.eatherington@gmail.com’s picture

7.x-2.0 experienced the same.

  • danielb committed 7af6da7 on 7.x-2.x
    Issue #1835232: Fatal error: Call to undefined function views_include()
    
danielb’s picture

Status: Active » Fixed

OK I'm trusting you guys on this. I don't see any difference either way. Perhaps something in Views changed again making this not a problem anymore. Either way that line was meant to be removed eventually.

danielb’s picture

Now I get it. It crops up with Ajax enabled in finder. It seems it will happen still because of views plugins.inc line 9, you have to comment out that one too.

Status: Fixed » Closed (fixed)

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