Fatal error: Class 'ctools_export_ui' not found in /home/websites/guardian/public_html/sites/all/modules/panels/plugins/export_ui/panels_layouts_ui.class.php on line 8

After updating panels, ctools and views today i received this error, i could get into the views admin or anything. After looking at the code it was calling panels mini, so on a hunch i disabled panels mini and uninstalled it since I don't use that module anyways. Now the error is gone.

This error also will refer to line 3 of the same file sometimes, depends what page I was on. Hope this helps someone.

Thanks,
Draven

Comments

Draven_Caine’s picture

Turning off panels mini doesn't solve this error it just makes it so you can access views UI again.

merlinofchaos’s picture

That's weird -- the Drupal class registry should be handling locating that class. As long as CTools is up to date, there should be no way for this kind of a bug to appear.

Perhaps all you really need is to do a complete cache flush? (drush cc all is the best).

Draven_Caine’s picture

I cleared my caches a few times but still have the issue. Unless you mean some other cache i am not aware of :)

merlinofchaos’s picture

How about the custom layouts UI? Is that working? You can get there from the main Panels dashboard.

Draven_Caine’s picture

http://www.guardiansofthenight.com/admin/structure/panels gives Fatal error: Class 'ctools_export_ui' not found in sites/all/modules/panels/plugins/export_ui/panels_layouts_ui.class.php on line 8

Draven_Caine’s picture

turning ctools off does fix this, If that helps.

Draven_Caine’s picture

OK turned off ctools and all that uses it (views, panels, ect) deleted all records of ctools for my database and re-installed ctools and all is well so far, going to install views and panels to see if its all better.

Draven_Caine’s picture

OK, ctools and views went nicely but as soon as I enable panels, it has the problem of Fatal error: Class 'ctools_export_ui' not found in sites/all/modules/panels/plugins/export_ui/panels_layouts_ui.class.php on line 8

Now mind you I dont have much in panels (I think 2 panel pages) but its still an issue, I wonder if un-installing panels would fix it?

This all happened today when I updated (thru the update tab) on my site.

merlinofchaos’s picture

How can that work? Panels requires CTools. You shouldn't be able to turn it off and still have Panels on.

Can you check ctools/plugins/export_ui and make sure the files are in there? Maybe you've got a bad CTools install?

merlinofchaos’s picture

Also, the latest Views -dev also uses ctools_export_ui class, so if that's failing you're going to have a problem with Views as well.

Draven_Caine’s picture

ok in that folder should be a .php file and a .inc file, the .php file wasn't there, so I am uploading it now.

What i ment was i "disabled" all the modules, deleted the ctools records from the database, re-installed ctools thru the modules page than "enabled" panels and such.

Draven_Caine’s picture

Yes all is well now, i saw this issue awhile back where ftp clients would "forget" a file when uploading views. the update part of drupal core must have done the same thing. Sorry for any stress.

Thanks again,
Draven

merlinofchaos’s picture

Status: Active » Fixed

Okay. I highly recommend you check to make sure all files are there; if one file got missed, others could have.

Draven_Caine’s picture

All is well, as i manuelly downloaded ctools and uploaded it myself. Just a heads up if anyone finds this same issue. Make Sure All Your Files Are Present!!

Draven_Caine’s picture

One thing I wanted to add for this issue is if you update a module like I did and the update "misses" a file, your website will say the module is updated even though one file is missing, i think this is a bad thing on the drupal core update part.

From now one, I for one, will be manuelly uploading the modules myself and not let drupal do it any longer. This issue added a few hours of work on one of my sites.

Status: Fixed » Closed (fixed)

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

shadowmihai’s picture

Status: Closed (fixed) » Active
Issue tags: +fatal error, +panels, +mini-panels

On upgrading from drupal 7.0 to 7.2, I get the exact same error and any page that has panels will load only a blank page. I re-installed panels several times, no effect. Disabled min-panels was the only way to get functionality back to pages with panels on them.

merlinofchaos’s picture

Status: Active » Closed (fixed)
Issue tags: -fatal error, -panels, -mini-panels

Issue tags: +drupal 7.2, +fatal error, +mini-panels, +panels

Please read the guide to using issue tags. It's getting very frustrating constantly dealing with people who put in garbage tags because they can't be bothered to read the guidelines that are linked RIGHT BY THE WIDGET they're typing into.

The original error was fixed by installing missing files. Perhaps you have a similar problem. It seems unlikely that an error with ctools_export_ui in panels_layouts really has anything to do with mini panels. And since the original issue was a problem on the user's end, re-opening this issue seems like a bad idea. In any case, you've provided me absolutely nothing to help you.

Returning to previous state.

shadowmihai’s picture

Status: Closed (fixed) » Active

Thank you for your kind assistance so far. Yes, I read the "missing file" issue and everything is there.

This effect is on two unrelated sites now. Upgrade from drupal 7 to drupal 7.2, and the error appears and all panel pages display blank unless mini-panels are disabled. That's what I can tell you without knowing what else you need to know. It is highly unlikely that there are missing files on separate installs and servers for the same module if those files are in the archive, no? At any rate, I thought it should be reported, no?

Sorry about the specific error - that's what is returned, I didn't make it up and I doubt Drupal is doing it just to annoy you. I'm not reporting the error to annoy you either.

So what other information would you like?

trillex’s picture

Sub

cpelham’s picture

I am getting the error, too (along with a similar plugin error for feeds) after upgrading to 7.2.

This is also posted in other places:

http://drupal.org/node/1169986#comment-4522386

http://drupal.org/node/1170312

But should this be a new thread?

nikkubhai’s picture

I got the same error after updating to drupal 7.2

Fatal error: Class 'ctools_export_ui' not found in /home/***/public_html/sites/all/modules/panels/panels_mini/plugins/export_ui/panels_mini_ui.class.php on line 3

paulgemini’s picture

Same here after upgrading to Drupal 7.2

webchick’s picture

Subscribing. Coming here from #1170132: After upgrading to D7.2 access to my admin account is gone. Earl suspects changes to the class registry may have caused this problem.

paulgemini’s picture

cpelham’s picture

Angie, i am sure you are super busy but may i ask what were the changes made to the class registry and was it just a bug fix or something more?

paulgemini’s picture

Is this issue still alive? Did anyone figure out exactly what was happening?

catch’s picture

If people are still getting this, please try hitting update.php (logged in as user 1, or with $update_free_access = TRUE in settings.php).

This should rebuild the class registry from scratch - if that works, please report back that it did so. If it doesn't, please report back that too.

This is the only change I can think of in Drupal 7 (although I may have forgotten something, is a long time since 7.0), it's possible you had a bad registry rebuild on update.php when updating, but if this fixes it then it didn't cause the problem in itself.

shadowmihai’s picture

I run update.php after every module update, sometimes repeatedly. No change here, the only solution is to disable minipanels. HOWEVER, if this is a clue - the new ctools update has caused the same problem and no page with panels will appear. Again, on multiple and unrelated sites and installations.

shadowmihai’s picture

Okay, this appears on my systems to be memory and cache related. By clearing caches, the page loads... but intermittently I still get the WSOD on a panels page. Memory settings seem not to affect it, and difference cache settings seem not to solve it completely.

merlinofchaos’s picture

Status: Active » Fixed

This is fixed in core as of Drupal 7.4

Status: Fixed » Closed (fixed)

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