Weird issues and blank popup message when editing properties of page

Permalink
Trying to simply add some default meta properties to a page type, and I'm getting a blank popup and the changes won't save. I also have a couple websites that after editing a few things, the sites will load really slow, then eventually be unavailable for 15 minutes or more. Not sure what's going on?

1 Attachment

Deladroid
 
SkyBlueSofa replied on at Permalink Reply
SkyBlueSofa
I have run into a similar (the same?) issue. When I try to edit the properties of the page:
* The dialog box comes up, but is empty.
* After some time, the content of the dialog box finally is shown.

After a bit of searching, I found that the page was attempting to load CSS or JS files, but instead was loading the entire HTML. I have a patch submitted to fix {root}/concrete/elements/collection_metadata_fields.php. It looks like this:
<script type="text/javascript">
   <?php  
   $v = View::getInstance();
   $headerItems = $v->getHeaderItems();
   foreach($headerItems as $item) {
      if ($item->file) {
         if ($item instanceof CSSOutputObject) {
            $type = 'CSS';
         } else {
            $type = 'JAVASCRIPT';
         } ?>
         ccm_addHeaderItem("<?php echo $item->file?>", '<?php echo $type?>');
         <?php
      }  
   }


instead of
<script type="text/javascript">
   <?php  
   $v = View::getInstance();
   $headerItems = $v->getHeaderItems();
   foreach($headerItems as $item) {
      if ($item instanceof CSSOutputObject) {
         $type = 'CSS';
      } else {
         $type = 'JAVASCRIPT';
      } ?>
      ccm_addHeaderItem("<?php echo $item->file?>", '<?php echo $type?>');
      <?php
   } 
   ?>
   </script>


Hope this helps.