Though there is similar issue #976324: Unable to save changes via the dashboard (PHP 5.3) it has solution for different problem, which I could not reproduce.

Problem of this issue:

1.When the blocks are dragged and dropped, it should be reloaded by DrupalContextBlockEditor.prototype.addBlock declared in context_reaction_block.js:

    // Replace item with loading block.
    var blockLoading = $('<div class="context-block-item context-block-loading"><span class="icon"></span></div>');
    ui.item.addClass('context-block-added');
    ui.item.after(blockLoading);
    ui.sender.append(ui.item);

    $.getJSON(Drupal.settings.contextBlockEditor.path, params, function(data) {
      if (data.status) {
        var newBlock = $(data.block);
        if ($('script', newBlock)) {
          $('script', newBlock).remove();
        }
        blockLoading.fadeOut(function() {
          $(this).replaceWith(newBlock);
          self.initBlocks(newBlock);
          self.updateBlocks();
          Drupal.attachBehaviors();
        });
      }
      else {
        blockLoading.fadeOut(function() { $(this).remove(); });
      }
    });

2. getJSON data is never loaded. Drupal.settings.contextBlockEditor.path is equal to //dashboard.

3. Empty blocks could no be identified when saving in editor_form_submit in context_relation_block.inc.

Looks like Drupal.settings.contextBlockEditor.path is wrong, because it could not load any block.

Comments

dealancer’s picture

It is trying load dashboard?context_block=system-user-menu%2Cspaces_dashboard-custom-1
but there is no JSON at this path.

dealancer’s picture

Status: Active » Closed (works as designed)

I am closing this issue, this was error in custom code which even.

empty lines before <?php, so headers are not sent.

dealancer’s picture

Issue summary: View changes

replaced

 to