This discussion began with "Views needs a lot of Memory". A proposed solution to the memory problem was to export a view into a module. See: http://drupal.org/node/259479#comment-966388. But, exporting a module is not as easy as it seems: http://drupal.org/node/259479#comment-972660.

So, picking up from there:

Merlin: I imported the exported view back into views (went fine) and re-exported, naming the exported module: "reflections." I added an empty reflections.module file to the reflections.info file. The result?

Well, it prints the entire reflections.views_default.inc code to the top of my screen, directly under the "max_allowed_packets" error which started this all. You can see it here:
http://dev.mariagwyn.com/newskete/drupal/

Any suggestions now? :)
m

Comments

mariagwyn’s picture

since I am actually doing development, I turned off the module to get rid of the rather large amount of text printed to the top of my page. Suffice it to say that it prints out the entire function:

/** * Implementation of hook_default_view_views(). */ function reflections_views_default_views() { $view = new view; $view->name = 'archive_reflections';.....and on and on.

m

merlinofchaos’s picture

Oh you need to be sure to use

the PHP tags.

merlinofchaos’s picture

Status: Active » Fixed
Anonymous’s picture

Status: Fixed » Closed (fixed)

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