CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Drupal Modules (Moderator: Donald Lobo) »
  • Drupal 7, CiviCRM 4.0.4, Views, memory error
Pages: 1 [2] 3

Author Topic: Drupal 7, CiviCRM 4.0.4, Views, memory error  (Read 7190 times)

staze

  • I’m new here
  • *
  • Posts: 24
  • Karma: 0
    • staze.org
  • CiviCRM version: 4.0.4
  • CMS version: Drupal 7
  • MySQL version: 5.0.67
  • PHP version: 5.2.9
Re: Drupal 7, CiviCRM 4.0.4, Views, memory error
June 29, 2011, 10:37:19 am
well, crap.

I've tried reverting back to an old views/ctools install, and it still doesn't work. Then I tried a brand new install, and civicrm installs and enables just file.... figures.

Pretty reliably now, when I start seeing errors from Drush, they're:

PHP Fatal error:  Allowed memory size of 268435456 bytes exhausted (tried to allocate 77 bytes) in /Library/WebServer2/jrupal7/includes/theme.inc on line 444
Drush command terminated abnormally due to an unrecoverable error.                                               [error]
Error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 77 bytes) in
/Library/WebServer2/jrupal7/includes/theme.inc, line 444

Which that line is getting a list of modules.

If I get an error when trying to access from the web, it varies a bit more.

I just tried clearing out sites/default/files/civicrm/templates_c, and that got it so it would enable, but the minute I replaced the Config file in there, it starts erroring again.

It just looks like:

[General]
    filter_type         = xml
    filter_path         = /Library/WebServer2/jrupal7/sites/all/modules/civicrm/packages/IDS/default_filter.xml
    tmp_path            = /Library/WebServer2/jrupal7/sites/default/files/civicrm/upload/
    HTML_Purifier_Path  = IDS/vendors/htmlpurifier/HTMLPurifier.auto.php
    HTML_Purifier_Cache = /Library/WebServer2/jrupal7/sites/default/files/civicrm/upload/
    scan_keys           = false
    exceptions[]        = __utmz
    exceptions[]        = __utmc
    exceptions[]        = widget_code
    exceptions[]        = html_message
    exceptions[]        = body_html
    exceptions[]        = msg_html
    exceptions[]        = msg_text
    exceptions[]        = msg_subject
    exceptions[]        = description
    exceptions[]        = intro
    exceptions[]        = thankyou_text
    exceptions[]        = intro_text
    exceptions[]        = body_text
    exceptions[]        = footer_text
    exceptions[]        = thankyou_text
    exceptions[]        = thankyou_footer
    exceptions[]        = thankyou_footer_text
    exceptions[]        = new_text
    exceptions[]        = renewal_text
    exceptions[]        = help_pre
    exceptions[]        = help_post
    exceptions[]        = confirm_title
    exceptions[]        = confirm_text
    exceptions[]        = confirm_footer_text
    exceptions[]        = confirm_email_text
    exceptions[]        = report_header
    exceptions[]        = report_footer
    exceptions[]        = data
    exceptions[]        = instructions

I'm kind of at a loss here. Are there any other suggestions?

In diff'ing the two civicrm.settings.php files (one from the broken site, one from the working test install), I notice that my broken site has "define('CIVICRM_API_VERSION','3');" set, but doesn't have "define('CIVICRM_MAIL_SMARTY',0);" set... yet the upgrade ran successfully a while back (when I first upgraded to beta). Think either of these are a problem? Other than that, the only differences are the different paths for the two installs.

Thanks! Any help you might have would be greatly appreciated.

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: Drupal 7, CiviCRM 4.0.4, Views, memory error
June 29, 2011, 01:56:36 pm
Are you saying that just deleting Config.IDS.php causes the site to work but as soon as it is recreated it stops?

Pete has suggested we compare views versions on our sites since there might be a views change between point versions so I'll check
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

staze

  • I’m new here
  • *
  • Posts: 24
  • Karma: 0
    • staze.org
  • CiviCRM version: 4.0.4
  • CMS version: Drupal 7
  • MySQL version: 5.0.67
  • PHP version: 5.2.9
Re: Drupal 7, CiviCRM 4.0.4, Views, memory error
June 29, 2011, 02:09:41 pm
If I remove the Config.IDS.php civicrm will enable, but obviously throws errors that it can't find that file. So I'm not sure it's a very good fix.

I'm running Drupal Views 7.0-3.0-rc1, and whatever civicrm views that came with 4.0.4. This issue has to be something with my setup though, since a clean install of D7.2, ctools, views, and civicrm worked.

I just tried removing the API clause, as well as adding the MAIL_SMARTY clause, and it didn't change anything.

It's something with Views and CiviCRM on this site, I just can't figure out what. Are there any cache type files that civicrm generates that can be removed that could be causing an issue, or any Mysql tables that should be cleared out?

Here's my new Drupal enabled list, without CiviCRM enabled.
 @font-your-face                        @font-your-face (fontyourface)                                      Module  Enabled        7.x-1.3       
 @font-your-face                        Google Fonts API (google_fonts_api)                                 Module  Enabled        7.x-1.3       
 @font-your-face                        Typekit API (typekit_api)                                           Module  Enabled        7.x-1.3       
 CCK                                    CCK (cck)                                                           Module  Enabled        7.x-2.x-dev   
 Chaos tool suite                       Chaos tools (ctools)                                                Module  Enabled        7.x-1.0-beta1 
 Core                                   Aggregator (aggregator)                                             Module  Enabled        7.2           
 Core                                   Block (block)                                                       Module  Enabled        7.2           
 Core                                   Blog (blog)                                                         Module  Enabled        7.2           
 Core                                   Color (color)                                                       Module  Enabled        7.2           
 Core                                   Comment (comment)                                                   Module  Enabled        7.2           
 Core                                   Contextual links (contextual)                                       Module  Enabled        7.2           
 Core                                   Dashboard (dashboard)                                               Module  Enabled        7.2           
 Core                                   Database logging (dblog)                                            Module  Enabled        7.2           
 Core                                   Field (field)                                                       Module  Enabled        7.2           
 Core                                   Field SQL storage (field_sql_storage)                               Module  Enabled        7.2           
 Core                                   Field UI (field_ui)                                                 Module  Enabled        7.2           
 Core                                   File (file)                                                         Module  Enabled        7.2           
 Core                                   Filter (filter)                                                     Module  Enabled        7.2           
 Core                                   Help (help)                                                         Module  Enabled        7.2           
 Core                                   Image (image)                                                       Module  Enabled        7.2           
 Core                                   List (list)                                                         Module  Enabled        7.2           
 Core                                   Menu (menu)                                                         Module  Enabled        7.2           
 Core                                   Node (node)                                                         Module  Enabled        7.2           
 Core                                   Number (number)                                                     Module  Enabled        7.2           
 Core                                   Options (options)                                                   Module  Enabled        7.2           
 Core                                   Overlay (overlay)                                                   Module  Enabled        7.2           
 Core                                   Path (path)                                                         Module  Enabled        7.2           
 Core                                   Poll (poll)                                                         Module  Enabled        7.2           
 Core                                   RDF (rdf)                                                           Module  Enabled        7.2           
 Core                                   Search (search)                                                     Module  Enabled        7.2           
 Core                                   Shortcut (shortcut)                                                 Module  Enabled        7.2           
 Core                                   Statistics (statistics)                                             Module  Enabled        7.2           
 Core                                   System (system)                                                     Module  Enabled        7.2           
 Core                                   Taxonomy (taxonomy)                                                 Module  Enabled        7.2           
 Core                                   Testing (simpletest)                                                Module  Enabled        7.2           
 Core                                   Text (text)                                                         Module  Enabled        7.2           
 Core                                   Toolbar (toolbar)                                                   Module  Enabled        7.2           
 Core                                   Tracker (tracker)                                                   Module  Enabled        7.2           
 Core                                   Trigger (trigger)                                                   Module  Enabled        7.2           
 Core                                   Update manager (update)                                             Module  Enabled        7.2           
 Core                                   User (user)                                                         Module  Enabled        7.2           
 Date/Time                              Date (date)                                                         Module  Enabled        7.x-2.0-alpha3
 Date/Time                              Date API (date_api)                                                 Module  Enabled        7.x-2.0-alpha3
 Date/Time                              Date Popup (date_popup)                                             Module  Enabled        7.x-2.0-alpha3
 Date/Time                              Date Tools (date_tools)                                             Module  Enabled        7.x-2.0-alpha3
 Date/Time                              Date Views (date_views)                                             Module  Enabled        7.x-2.0-alpha3
 Fields                                 Link (link)                                                         Module  Enabled        7.x-1.0-alpha3
 Fields                                 Node Reference (node_reference)                                     Module  Enabled        7.x-2.0-beta3 
 Fields                                 References (references)                                             Module  Enabled        7.x-2.0-beta3 
 Fields                                 User Reference (user_reference)                                     Module  Enabled        7.x-2.0-beta3 
 Flags                                  Flag (flag)                                                         Module  Enabled        7.x-2.0-beta5 
 Flags                                  Flag actions (flag_actions)                                         Module  Enabled        7.x-2.0-beta5 
 Media                                  IMCE (imce)                                                         Module  Enabled        7.x-1.4       
 MediaFront                             MediaFront (mediafront)                                             Module  Enabled        7.x-1.0-rc9   
 MediaFront : Players                   Open Standards Media Player (osmplayer)                             Module  Enabled        7.x-1.0-rc9   
 Menus                                  Mega Menu (megamenu)                                                Module  Enabled        7.x-1.x-dev   
 Other                                  AddThis (addthis)                                                   Module  Enabled        7.x-2.1-beta1 
 Other                                  Advanced help (advanced_help)                                       Module  Enabled        7.x-1.0-beta1 
 Other                                  Entity API (entity)                                                 Module  Enabled        7.x-1.0-beta9 
 Other                                  Entity tokens (entity_token)                                        Module  Enabled        7.x-1.0-beta9 
 Other                                  Libraries (libraries)                                               Module  Enabled        7.x-1.0       
 Other                                  Mollom (mollom)                                                     Module  Enabled        7.x-1.0       
 Other                                  Multiple forms (multiform)                                          Module  Enabled        7.x-1.0-beta2 
 Other                                  Pathauto (pathauto)                                                 Module  Enabled        7.x-1.0-rc2   
 Other                                  Profile2 (profile2)                                                 Module  Enabled        7.x-1.0-beta4 
 Other                                  Profile2 pages (profile2_page)                                      Module  Enabled        7.x-1.0-beta4 
 Other                                  Scheduler (scheduler)                                               Module  Enabled        7.x-1.0       
 Other                                  Session API (session_api)                                           Module  Enabled        7.x-1.0-beta2 
 Other                                  Token (token)                                                       Module  Enabled        7.x-1.0-beta2 
 Panels                                 Panels (panels)                                                     Module  Enabled        7.x-3.0-alpha3
 Performance and scalability            Boost (boost)                                                       Module  Enabled        7.x-1.x-dev   
 Preset Management                      Preset (preset)                                                     Module  Enabled        7.x-1.x-dev   
 Rules                                  Rules (rules)                                                       Module  Enabled        7.x-2.0-beta2 
 Rules                                  Rules Scheduler (rules_scheduler)                                   Module  Enabled        7.x-2.0-beta2 
 Rules                                  Rules UI (rules_admin)                                              Module  Enabled        7.x-2.0-beta2 
 Search Toolkit                         Apache Solr Access (apachesolr_access)                              Module  Enabled        7.x-1.0-beta8 
 Search Toolkit                         Apache Solr framework (apachesolr)                                  Module  Enabled        7.x-1.0-beta8 
 Search Toolkit                         Apache Solr search (apachesolr_search)                              Module  Enabled        7.x-1.0-beta8 
 Search Toolkit                         Apache Solr Taxonomy (apachesolr_taxonomy)                          Module  Enabled        7.x-1.0-beta8 
 ThemeKey                               ThemeKey (themekey)                                                 Module  Enabled        7.x-1.1       
 ThemeKey                               ThemeKey UI (themekey_ui)                                           Module  Enabled        7.x-1.1       
 User interface                         IMCE Wysiwyg API bridge (imce_wysiwyg)                              Module  Enabled        7.x-1.x-dev   
 User interface                         Wysiwyg (wysiwyg)                                                   Module  Enabled        7.x-2.1       
 Views                                  Views (views)                                                       Module  Enabled        7.x-3.0-rc1   
 Views                                  Views Slideshow (views_slideshow)                                   Module  Enabled        7.x-3.0-alpha1
 Views                                  Views UI (views_ui)                                                 Module  Enabled        7.x-3.0-rc1   
 Webform                                Webform (webform)                                                   Module  Enabled        7.x-3.11       
 XML sitemap                            XML sitemap (xmlsitemap)                                            Module  Enabled        7.x-2.0-beta3 
 XML sitemap                            XML sitemap custom (xmlsitemap_custom)                              Module  Enabled        7.x-2.0-beta3 
 XML sitemap                            XML sitemap engines (xmlsitemap_engines)                            Module  Enabled        7.x-2.0-beta3 
 XML sitemap                            XML sitemap menu (xmlsitemap_menu)                                  Module  Enabled        7.x-2.0-beta3 
 XML sitemap                            XML sitemap node (xmlsitemap_node)                                  Module  Enabled        7.x-2.0-beta3 
 XML sitemap                            XML sitemap taxonomy (xmlsitemap_taxonomy)                          Module  Enabled        7.x-2.0-beta3 
 XML sitemap                            XML sitemap user (xmlsitemap_user)                                  Module  Enabled        7.x-2.0-beta3 
 Core                                   Bartik (bartik)                                                     Theme   Enabled        7.2           
 Core                                   Seven (seven)                                                       Theme   Enabled        7.2       

kreynen

  • I post occasionally
  • **
  • Posts: 105
  • Karma: 8
Re: Drupal 7, CiviCRM 4.0.4, Views, memory error
July 01, 2011, 08:27:11 am
I am seeing this too with...

Drupal 7.4
Views rc-1
CiviCRM 4.0.4 (with the civicrm.views.inc fix)

We're not using Rules. 

My solution was to disable the civicrm module in system table to get the Drupal site usable again.  Now I'm working with it in a dev environment to find the problem.  I'll post what I find.

staze

  • I’m new here
  • *
  • Posts: 24
  • Karma: 0
    • staze.org
  • CiviCRM version: 4.0.4
  • CMS version: Drupal 7
  • MySQL version: 5.0.67
  • PHP version: 5.2.9
Re: Drupal 7, CiviCRM 4.0.4, Views, memory error
July 01, 2011, 09:46:15 am
Quote from: kreynen on July 01, 2011, 08:27:11 am
CiviCRM 4.0.4 (with the civicrm.views.inc fix)

Which fix is that? 4.0.4 should have resolved the extra ");" issue...

kreynen

  • I post occasionally
  • **
  • Posts: 105
  • Karma: 8
Re: Drupal 7, CiviCRM 4.0.4, Views, memory error
July 01, 2011, 11:56:37 am
Sorry.  I tried both 4.0.4 and 4.0.3 (with the Views fix).

Reverting Entity from 7.x-1.0-beta9 back to 7.x-1.0-beta8 solve the problem for me, but I haven't tested beyond that.

staze

  • I’m new here
  • *
  • Posts: 24
  • Karma: 0
    • staze.org
  • CiviCRM version: 4.0.4
  • CMS version: Drupal 7
  • MySQL version: 5.0.67
  • PHP version: 5.2.9
Re: Drupal 7, CiviCRM 4.0.4, Views, memory error
July 01, 2011, 12:31:02 pm
I'll have to try this. downgrading entity to beta8 breaks profile2, so...

I'm guessing this is probably right though. Once I have a chance to downgrade profile2, and entity, I'll give it a shot. So, guess we need to look at the commits for beta9 and see what they changed...

staze

  • I’m new here
  • *
  • Posts: 24
  • Karma: 0
    • staze.org
  • CiviCRM version: 4.0.4
  • CMS version: Drupal 7
  • MySQL version: 5.0.67
  • PHP version: 5.2.9
Re: Drupal 7, CiviCRM 4.0.4, Views, memory error
July 01, 2011, 12:33:04 pm
Any CiviCRM peeps want to look at this commit list: http://drupal.org/node/1190594 and see if anything says "ah ha!"? There's definitely some stuff in there related to views, and a removal of something from the API.

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: Drupal 7, CiviCRM 4.0.4, Views, memory error
July 01, 2011, 01:41:28 pm
There is another thread - I was going to cross-link it but maybe later - that says entity & civi are clashing - do you think a Civi function is inadvertantly acting as an entity hook or something?
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

Andrew_Mallis

  • I’m new here
  • *
  • Posts: 6
  • Karma: 0
    • Ideograph
Re: Drupal 7, CiviCRM 4.0.4, Views, memory error
July 03, 2011, 11:21:00 pm
I'm also getting memory errors on my local environment (OS X + MAMP [php 5.2.17, Apache 2.0.64] + Varnish 2.0.6).

I've managed to minimize its occurrence by killing Varnish completely. Perhaps this is a clue?

To fix the error, the simplest and 100% failsafe solution for me has been to move the civicrm directory out of sites/all/modules, do a drupal page load, replace civicrm, and load again. Then, I clear the cache and things spin up fine again.
Andrew Mallis
http://andrewmallis.com
http://ideograph.ca

Turneight

  • I’m new here
  • *
  • Posts: 1
  • Karma: 0
  • CiviCRM version: 4.0.5
  • CMS version: Drupal 7.8
  • MySQL version: 5.0.51
  • PHP version: 5.2.6
Re: Drupal 7, CiviCRM 4.0.4, Views, memory error
July 05, 2011, 12:07:46 pm
Hi
I have the same problem,
updating entity or views to the latest version comes out a fatal error.
Works with:
Views 7.x-3.0-beta3
Entity API 7.x-1.0-beta8

torrance123

  • I post occasionally
  • **
  • Posts: 57
  • Karma: 3
  • CiviCRM version: 4.0
  • CMS version: Drupal 7
  • MySQL version: 5.0.91
  • PHP version: 5.3.3
Re: Drupal 7, CiviCRM 4.0.4, Views, memory error
July 05, 2011, 06:33:51 pm
I have the same issue. We ran module upgrades, including upgrading views to beta9 and entityapi to beta9.

We get out of memory errors. However, if we run with xdebug we hit xdebug maximum function nesting level which suggests an infinite loop somewhere.

Code: [Select]
PHP Fatal error:  Maximum function nesting level of '100' reached, aborting! in /sites/aba/includes/database/database.inc on line 907

PHP Stack trace:
PHP   1. {main}() /usr/local/bin/drush-folder/drush.php:0
PHP   2. drush_main() /usr/local/bin/drush-folder/drush.php:41
PHP   3. drush_dispatch() /usr/local/bin/drush-folder/drush.php:101
PHP   4. call_user_func_array() /usr/local/bin/drush-folder/includes/command.inc:204
PHP   5. drush_command() /usr/local/bin/drush-folder/includes/command.inc:204
PHP   6. call_user_func_array() /usr/local/bin/drush-folder/includes/command.inc:721
PHP   7. drush_invoke() /usr/local/bin/drush-folder/includes/command.inc:721
PHP   8. drush_invoke_args() /usr/local/bin/drush-folder/includes/command.inc:58
PHP   9. call_user_func_array() /usr/local/bin/drush-folder/includes/command.inc:120
PHP  10. drush_pm_enable() /usr/local/bin/drush-folder/includes/command.inc:120
PHP  11. drush_module_enable() /usr/local/bin/drush-folder/commands/pm/pm.drush.inc:687
PHP  12. module_enable() /usr/local/bin/drush-folder/commands/core/drupal/environment_7.inc:87
PHP  13. module_invoke() /sites/aba/includes/module.inc:455
PHP  14. call_user_func_array() /sites/aba/includes/module.inc:795
PHP  15. civicrm_enable() /sites/aba/includes/module.inc:795
PHP  16. menu_rebuild() /sites/aba/sites/all/modules/civicrm/drupal/civicrm.module:591
PHP  17. menu_router_build() /sites/aba/includes/menu.inc:2590
PHP  18. call_user_func() /sites/aba/includes/menu.inc:2621
PHP  19. views_ui_menu() /sites/aba/includes/menu.inc:2621
PHP  20. views_get_all_templates() /sites/aba/sites/all/modules/views/views_ui.module:41
PHP  21. node_views_templates() /sites/aba/sites/all/modules/views/views.module:1247
PHP  22. views_db_object->new_display() /sites/aba/sites/all/modules/views/modules/node.views_template.inc:22
PHP  23. views_db_object->add_display() /sites/aba/sites/all/modules/views/includes/view.inc:2172
PHP  24. views_fetch_plugin_data() /sites/aba/sites/all/modules/views/includes/view.inc:2076
PHP  25. _views_fetch_plugin_data() /sites/aba/sites/all/modules/views/views.module:1156
PHP  26. views_discover_plugins() /sites/aba/sites/all/modules/views/includes/cache.inc:75
PHP  27. entity_views_plugins() /sites/aba/sites/all/modules/views/includes/plugins.inc:388
PHP  28. views_fetch_data() /sites/aba/sites/all/modules/entity/views/entity.views.inc:37
PHP  29. _views_fetch_data() /sites/aba/sites/all/modules/views/views.module:1145
PHP  30. module_invoke_all() /sites/aba/sites/all/modules/views/includes/cache.inc:30
PHP  31. call_user_func_array() /sites/aba/includes/module.inc:819
PHP  32. civicrm_views_data() /sites/aba/includes/module.inc:819
PHP  33. l() /sites/aba/sites/all/modules/civicrm/drupal/modules/views/civicrm.views.inc:913
PHP  34. theme_get_registry() /sites/aba/includes/common.inc:2338
PHP  35. call_user_func_array() /sites/aba/includes/theme.inc:248
PHP  36. _theme_load_registry() /sites/aba/includes/theme.inc:248
PHP  37. _theme_build_registry() /sites/aba/includes/theme.inc:289
PHP  38. _theme_process_registry() /sites/aba/includes/theme.inc:530
PHP  39. views_theme() /sites/aba/includes/theme.inc:384
PHP  40. views_fetch_plugin_data() /sites/aba/sites/all/modules/views/views.module:90
PHP  41. _views_fetch_plugin_data() /sites/aba/sites/all/modules/views/views.module:1156
PHP  42. views_discover_plugins() /sites/aba/sites/all/modules/views/includes/cache.inc:75
PHP  43. entity_views_plugins() /sites/aba/sites/all/modules/views/includes/plugins.inc:388
PHP  44. views_fetch_data() /sites/aba/sites/all/modules/entity/views/entity.views.inc:37
PHP  45. _views_fetch_data() /sites/aba/sites/all/modules/views/views.module:1145
PHP  46. module_invoke_all() /sites/aba/sites/all/modules/views/includes/cache.inc:30
PHP  47. call_user_func_array() /sites/aba/includes/module.inc:819
PHP  48. civicrm_views_data() /sites/aba/includes/module.inc:819
PHP  49. l() /sites/aba/sites/all/modules/civicrm/drupal/modules/views/civicrm.views.inc:913
PHP  50. theme_get_registry() /sites/aba/includes/common.inc:2338
PHP  51. call_user_func_array() /sites/aba/includes/theme.inc:248
PHP  52. _theme_load_registry() /sites/aba/includes/theme.inc:248
PHP  53. _theme_build_registry() /sites/aba/includes/theme.inc:289
PHP  54. _theme_process_registry() /sites/aba/includes/theme.inc:530
PHP  55. views_theme() /sites/aba/includes/theme.inc:384
PHP  56. views_fetch_plugin_data() /sites/aba/sites/all/modules/views/views.module:90
PHP  57. _views_fetch_plugin_data() /sites/aba/sites/all/modules/views/views.module:1156
PHP  58. views_discover_plugins() /sites/aba/sites/all/modules/views/includes/cache.inc:75
PHP  59. entity_views_plugins() /sites/aba/sites/all/modules/views/includes/plugins.inc:388
PHP  60. views_fetch_data() /sites/aba/sites/all/modules/entity/views/entity.views.inc:37
PHP  61. _views_fetch_data() /sites/aba/sites/all/modules/views/views.module:1145
PHP  62. module_invoke_all() /sites/aba/sites/all/modules/views/includes/cache.inc:30
PHP  63. call_user_func_array() /sites/aba/includes/module.inc:819
PHP  64. civicrm_views_data() /sites/aba/includes/module.inc:819
PHP  65. l() /sites/aba/sites/all/modules/civicrm/drupal/modules/views/civicrm.views.inc:913
PHP  66. theme_get_registry() /sites/aba/includes/common.inc:2338
PHP  67. call_user_func_array() /sites/aba/includes/theme.inc:248
PHP  68. _theme_load_registry() /sites/aba/includes/theme.inc:248
PHP  69. _theme_build_registry() /sites/aba/includes/theme.inc:289
PHP  70. _theme_process_registry() /sites/aba/includes/theme.inc:530
PHP  71. views_theme() /sites/aba/includes/theme.inc:384
PHP  72. views_fetch_plugin_data() /sites/aba/sites/all/modules/views/views.module:90
PHP  73. _views_fetch_plugin_data() /sites/aba/sites/all/modules/views/views.module:1156
PHP  74. views_discover_plugins() /sites/aba/sites/all/modules/views/includes/cache.inc:75
PHP  75. entity_views_plugins() /sites/aba/sites/all/modules/views/includes/plugins.inc:388
PHP  76. views_fetch_data() /sites/aba/sites/all/modules/entity/views/entity.views.inc:37
PHP  77. _views_fetch_data() /sites/aba/sites/all/modules/views/views.module:1145
PHP  78. module_invoke_all() /sites/aba/sites/all/modules/views/includes/cache.inc:30
PHP  79. call_user_func_array() /sites/aba/includes/module.inc:819
PHP  80. civicrm_views_data() /sites/aba/includes/module.inc:819
PHP  81. l() /sites/aba/sites/all/modules/civicrm/drupal/modules/views/civicrm.views.inc:913
PHP  82. theme_get_registry() /sites/aba/includes/common.inc:2338
PHP  83. call_user_func_array() /sites/aba/includes/theme.inc:248
PHP  84. _theme_load_registry() /sites/aba/includes/theme.inc:248
PHP  85. _theme_build_registry() /sites/aba/includes/theme.inc:289
PHP  86. _theme_process_registry() /sites/aba/includes/theme.inc:530
PHP  87. views_theme() /sites/aba/includes/theme.inc:384
PHP  88. views_fetch_plugin_data() /sites/aba/sites/all/modules/views/views.module:90
PHP  89. _views_fetch_plugin_data() /sites/aba/sites/all/modules/views/views.module:1156
PHP  90. views_discover_plugins() /sites/aba/sites/all/modules/views/includes/cache.inc:75
PHP  91. entity_views_plugins() /sites/aba/sites/all/modules/views/includes/plugins.inc:388
PHP  92. views_fetch_data() /sites/aba/sites/all/modules/entity/views/entity.views.inc:37
PHP  93. _views_fetch_data() /sites/aba/sites/all/modules/views/views.module:1145
PHP  94. views_cache_get() /sites/aba/sites/all/modules/views/includes/cache.inc:23
PHP  95. cache_get() /sites/aba/sites/all/modules/views/includes/cache.inc:142
PHP  96. DrupalDatabaseCache->get() /sites/aba/includes/cache.inc:49
PHP  97. DrupalDatabaseCache->getMultiple() /sites/aba/includes/cache.inc:319
PHP  98. db_escape_table() /sites/aba/includes/cache.inc:335
PHP  99. DatabaseConnection->escapeTable() /sites/aba/includes/database/database.inc:2507

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: Drupal 7, CiviCRM 4.0.4, Views, memory error
July 05, 2011, 06:37:14 pm
Good spotting Torrance - if you remove the l function around this does it work?
line 919 in svn latest but perhaps 913 on aba version?

    $link = l(t('In Global Settings'), 'civicrm/admin/setting/preferences/address', array('query' => array('reset=1')));
 
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

torrance123

  • I post occasionally
  • **
  • Posts: 57
  • Karma: 3
  • CiviCRM version: 4.0
  • CMS version: Drupal 7
  • MySQL version: 5.0.91
  • PHP version: 5.3.3
Re: Drupal 7, CiviCRM 4.0.4, Views, memory error
July 05, 2011, 06:47:29 pm
Removing the l() allows civicrm to load, and then once loaded, I can replace the l() function and everything is fine.

It must be clearing some sort of cache once allowed to load.

bruce_callosal

  • I’m new here
  • *
  • Posts: 1
  • Karma: 0
  • CiviCRM version: 4.4
  • CMS version: Drupal 7.32
  • MySQL version: 5.5.40-0
  • PHP version: 5.4.35-0
Re: Drupal 7, CiviCRM 4.0.4, Views, memory error
July 08, 2011, 04:04:20 am
I think i managed to get this working by using the svn civicrm.views.inc to replace the default version. 

views/civicrm.views.inc

then installed the views module, and seems to work

Pages: 1 [2] 3
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Drupal Modules (Moderator: Donald Lobo) »
  • Drupal 7, CiviCRM 4.0.4, Views, memory error

This forum was archived on 2017-11-26.