Ticket #415 (closed defect: fixed)

Opened 4 years ago

Last modified 4 years ago

Import of view on live not working

Reported by: laura Owned by: jim
Priority: major Milestone:
Component: Drupal modules & settings Keywords: views
Cc: chris Estimated Number of Hours: 0.0
Add Hours to Ticket: 0 Billable?: yes
Total Hours: 0.75

Description

Hiya Jim,

Whilst adding another display and some more reports to initiative contacts in views, things were running slow, so then tried again, so had one too many.

Tried to remove the additional display but it then deleted the whole view for initiative contacts (my wrong doing - hot and stuffy day here!).

Went into dev, exported view, but cannot import the view on live.

Tried also as UID1 also (just incase was a user 1 only capability) and no go - after trying to import just says in red message box - Paste view code here field is required. (tried several times, with straight copy/paste, and saving into txt file then copy paste too).

Any ideas on how I being can import the view back from the dev copy? Is it a permissions thing somewhere that I haven't spotted to do with php settings, or some sort of caching issue?

Cheers
Laura

Change History

comment:1 Changed 4 years ago by jim

  • Cc chris added
  • Add Hours to Ticket changed from 0.0 to 0.75
  • Status changed from new to closed
  • Resolution set to fixed
  • Total Hours changed from 0.0 to 0.75

This was caused by the Suhosin PHP security doo-daa blocking a valid request because the post was too long.

I've upped the values in /etc/php5/apache2/conf.d/suhosin.ini like so:

; Jim
;suhosin.post.max_value_length = 65000
suhosin.post.max_value_length  = 200000
...
; Jim
;suhosin.request.max_value_length = 65000
suhosin.request.max_value_length  = 200000

So that's 200Kb per post, which is fair for a content-heavy site.

I imported the view from my machine, so Laura the view is here: https://www.transitionnetwork.org/admin/build/views/edit/initiative_contacts

comment:2 Changed 4 years ago by laura

Cheers Jim - once I have Git running all ok, can do via features if needed, tho this is helpful just in case of this sort of stuff happening, being able to import views is good at times! Thanks

Note: See TracTickets for help on using tickets.