Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-22875

Removing a block in eZ Flow opens a javascript window error

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Confirmed
    • Priority: High
    • Resolution: Unresolved
    • Affects Version/s: 5.3-dev
    • Labels:
      None
    • Environment:

      Operating System: Ubuntu 14.04
      PHP Version: 5.5.9
      Database and version: Mysql 5.6.16-1
      Browser (and version): Firefox 29
      Webserver: Nginx 1.4.6

      Description

      Hi,

      Using BUL build #1259 of eZ Publish 5.3, when i try to remove an ezflow block (Demo block) , a javascript pop-up page is opened an error.

      Stes to reproduce:

      • installed ezflow without content
      • Loged in as admin in frontpage
      • Edited frontpage
      • Removes the demo block. Here we are asked to confirm the deletion. The error happens after i press the "ok" button

      This error happens with an Ubuntu 14.04 + NGinx + Mysql 5.6 and in a CentOS 6.5 VM, with php 5.3.3.

      The error is:

      {"error_text":"","content":{"unvalidated-attributes":[],"stored-attributes":{"200":200,"201":201,"202":202},"valid":true,"message_success":"Draft saved at 4:37 pm","message_ago":"(0 minutes ago)","timestamp":1400254662}}
      

      After that, if i try to add demo block and remove it again, the error is

      503 Service Unavailable<b>Fatal error</b>: The web server did not finish its request<br/><p>Contact website owner with current url and info on what you did, and owner will be able to debug the issue further (by enabling 'display_errors' in php.ini).</p><div id="debug"><h2>eZ debug</h2><style type='text/css'>
                      <!--
                      /* Debug stylesheets */
      td.debugheader
      {
              background-color : #eeeeee;
              border-top : 1px solid #444488;
              border-bottom : 1px solid #444488;
              font-size : 0.9em;
              font-family: Arial, Helvetica, sans-serif;
      }
      
      pre.debugtransaction
      {
              background-color : #f8f6d8;
      }
      
      p.comment /* Class to be used during development for quick comments that someone should notice easily */
      {
          background-color: #ffff00;
          font-weight: bold;
          padding: 4px;
          margin: 4px;
          border: 2px dashed;
          display: block; /* Set this attribute to "none" to hide the comments */
      }
      
      /* eZSetup stuff */
      td.ezsetup_header
      {
              background-color : #eeeeee;
              border-top : 1px solid #444488;
              border-bottom : 1px solid #444488;
              font-size : 120%;
              font-family: Arial, Helvetica, sans-serif;
      }
      
      td.ezsetup_req
      {
              font-size : 80%;
              font-family: Arial, Helvetica, sans-serif;
      }
      
      .ezsetup_critical
      {
              background-color : #eeeeee;
              border-top : 1px solid #444488;
              border-bottom : 1px solid #444488;
              font-size : 120%;
              font-family: Arial, Helvetica, sans-serif;
          font-weight: bold;
              color: #FF0000;
      }
      
      .ezsetup_uncritical
      {
              background-color : #eeeeee;
              border-top : 1px solid #444488;
              border-bottom : 1px solid #444488;
              font-size : 120%;
              font-family: Arial, Helvetica, sans-serif;
              color: #E2A31D;
      }
      
      .ezsetup_pass
      {
              background-color : #eeeeee;
              border-top : 1px solid #444488;
              border-bottom : 1px solid #444488;
              font-size : 120%;
              font-family: Arial, Helvetica, sans-serif;
              color: #00B500;
      }
      
      div.debug-toolbar label
      {
          font-weight: normal;
      }
      
      /* used templates statistics */
      #debug
      {
          text-align: left;
          border-top: 1px dashed black;
          padding: 0.3em;
          background-color: #fff;
      }
      
      #debug table
      {
          border-collapse: collapse;
      }
      
      #timingpoints, #timeaccumulators, #debug_resources, #debug_includes, #debug table.debug_resource_usage
      {
          border: 1px dashed black;
      }
      
      #debug table tr.group td
      {
          padding-top: 0.7em;
          font-size: 0.95em;
      }
      
      #debug table tr.group td:first-child
      {
          padding-left: 0.2em;
          font-size: 1em;
      }
      
      #debug table tr.data td
      {
          background-color: #ffffff;
          border-top: 1px solid #444488;
          border-bottom: 1px solid #444488;
          font-family: Arial, Helvetica, sans-serif;
          font-size: 0.95em;
      }
      
      #debug table tr.data:nth-child(odd) td {  background-color: #eeeeee; }
      
      #debug table + h2, #debug table + h3
      {
          margin-top: 1em;
      }
      
      #debug table.debug_resource_usage th + th, #debug table.debug_resource_usage td + td, table#timeaccumulators th + th, table#timeaccumulators td + td, table#timingpoints th + th, table#timingpoints td + td, table#debug_resources td, table#debug_includes td
      {
              padding: 0.25em 0.5em 0.25em 0.5em;
      }
      
      #debug th
      {
          text-align: left;
      }
      
      /* style info tags (that have more info when hovering) */
      #debug span.debuginfo:after
      {
              border: 2px solid #23a4f5;
              border-radius: 10px;
              color: #23a4f5;
              height: 10px;
              width: 10px;
              line-height: 10px;
              font-size: 10px;
              content: "i";
              margin-left: 5px;
              padding: 0 5px 0 5px;
              opacity: 0.6;
      }
      
      #debug span.debuginfo:hover:after { opacity: 1; }
      
      /* center 1st and two last columns of template usage output */
      #templateusage tr.data td:first-child, #templateusage tr.data td:nth-child(n+5) { text-align: center; }
      
      /* heading colors for misc notices/warnings... */
      #debug tr.notice  td.debugheader span { color: green; }
      #debug tr.warning td.debugheader span { color: orange; }
      #debug tr.error   td.debugheader span { color: red; }
      #debug tr.debug   td.debugheader span { color: brown; }
      #debug tr.timing  td.debugheader span { color: blue; }
      #debug tr.strict  td.debugheader span { color: purple; }
      
      -->
      </style><table title='Table for actual debug output, shows notices, warnings and errors'><tr><td><div class="block debug-toolbar">
      
      <div class="element">
      <h3>Clear cache:</h3>
      <form id="clearcache" action="/eng/setup/cachetoolbar" method="post"><div class="block"><select name="CacheTypeValue">
                       <option value="All">All caches</option>
                             <option value="Content">Content</option>
                                                                         <option value="Template">Template</option>
                             <option value="TemplateContent">Template &amp; content</option>
                             <option value="Ini">Ini settings</option>
                             <option value="Static">Static</option>
               </select>
      </div>
      <div class="block">
          <input class="button" type="submit" name="ClearCacheButton" value="Clear" />
      </div></form></div>
      
      <div class="element">
      <h3>Quick settings:</h3>
      
      <form id="quicksettings" action="/eng/setup/settingstoolbar" method="post">
      
      <div class="block">
      <input type="hidden" name="SiteAccess" value="" />
               <input type="hidden" name="AllSettingsList[]" value="DebugSettings;DebugOutput;site.ini;Debug output" />
                           <label>
                     <input type="checkbox" checked="checked" name="SelectedList[]" value="0" />
               <span class="overriden">Debug output</span>
                     </label>
                           <input type="hidden" name="AllSettingsList[]" value="DebugSettings;DebugRedirection;site.ini;Debug redirection" />
                           <label>
                     <input type="checkbox" checked="checked" name="SelectedList[]" value="1" />
               <span class="overriden">Debug redirection</span>
                     </label>
                           <input type="hidden" name="AllSettingsList[]" value="TemplateSettings;Debug;site.ini;Template debug" />
                           <label>
                     <input type="checkbox" name="SelectedList[]" value="2" />
               <span class="overriden">Template debug</span>
                     </label>
                           <input type="hidden" name="AllSettingsList[]" value="TemplateSettings;ShowXHTMLCode;site.ini;Inline template debug" />
                           <label>
                     <input type="checkbox" checked="checked" name="SelectedList[]" value="3" />
               <span class="overriden">Inline template debug</span>
                     </label>
                           <input type="hidden" name="AllSettingsList[]" value="TemplateSettings;ShowUsedTemplates;site.ini;List of used templates" />
                           <label>
                     <input type="checkbox" name="SelectedList[]" value="4" />
               <span class="overriden">List of used templates</span>
                     </label>
                           <input type="hidden" name="AllSettingsList[]" value="DatabaseSettings;SQLOutput;site.ini;SQL debug output" />
                           <label>
                     <input type="checkbox" name="SelectedList[]" value="5" />
               <span class="overriden">SQL debug output</span>
                     </label>
                     </div><div class="block">
      <input class='button' type="submit" name="SetButton" value="Set" />
      </div>
      </form></div>
      <div class="break"></div>
      
      </div></td></tr><tr class='timing'><td class='debugheader' id="ezdebug-first-timing-point"><b><span>Timing:</span> </b></td>
                                          <td class='debugheader'>May 16 2014 16:40:42</td></tr>
                                          <tr><td colspan='2'><pre>Script start</pre></td></tr><tr class='timing'><td class='debugheader'><b><span>Timing:</span> </b></td>
                                          <td class='debugheader'>May 16 2014 16:40:42</td></tr>
                                          <tr><td colspan='2'><pre>Module start 'ezjscore'</pre></td></tr></table><h3>Main resources:</h3><table id='debug_resources' title='Most important resource consumption indicators'><tr class='data'><td>Total runtime</td><td>0.0338 sec</td></tr><tr class='data'><td>Peak memory usage</td><td>9,984.0000 KB</td></tr><tr class='data'><td>Database Queries</td><td>11</td></tr></table><h3>Timing points:</h3><table id='timingpoints' title='Timing point stats'><tr><th>Checkpoint</th><th>Start (sec)</th><th>Duration (sec)</th><th>Memory at start (KB)</th><th>Memory used (KB)</th></tr><tr class='data'><td>Script start</td>
                                <td align="right">0.0000</td><td align="right">0.0090</td>
                                <td align="right">7,410.7656</td><td align="right">566.8359</td></tr><tr class='data'><td>Module start 'ezjscore'</td>
                                <td align="right">0.0091</td><td align="right">&nbsp;</td>
                                <td align="right">7,977.6016</td><td align="right">&nbsp;</td></tr></table><h3>Time accumulators:</h3><table id='timeaccumulators' title='Detailed list of time accumulators'><tr><th>&nbsp;Accumulator</th><th>&nbsp;Duration (sec)</th><th>&nbsp;Duration (%)</th><th>&nbsp;Count</th><th>&nbsp;Average (sec)</th></tr><tr class='group'><td><b>Ini load</b></td><td></td><td></td><td></td><td></td></tr><tr class='data'><td>Load cache</td><td align="right">0.0071</td><td align="right">20.9455</td><td align="right">28</td><td align="right">0.0003</td></tr><tr class='data'><td>Check MTime</td><td align="right">0.0021</td><td align="right">6.1570</td><td align="right">22</td><td align="right">0.0001</td></tr><tr class='data'><td>Find INI Files</td><td align="right">0.0004</td><td align="right">1.2595</td><td align="right">6</td><td align="right">0.0001</td></tr><tr class='group'><td><b>Mysql Total</b></td><td></td><td></td><td></td><td></td></tr><tr class='data'><td>Database connection</td><td align="right">0.0003</td><td align="right">0.9316</td><td align="right">1</td><td align="right">0.0003</td></tr><tr class='data'><td>Mysqli_queries</td><td align="right">0.0115</td><td align="right">33.9443</td><td align="right">11</td><td align="right">0.0010</td></tr><tr class='data'><td>Looping result</td><td align="right">0.0003</td><td align="right">0.9457</td><td align="right">8</td><td align="right">0.0000</td></tr><tr class='group'><td><b>class_abstraction</b></td><td></td><td></td><td></td><td></td></tr><tr class='data'><td>Instantiating content class attribute</td><td align="right">0.0040</td><td align="right">11.7365</td><td align="right">8</td><td align="right">0.0005</td></tr><tr class='group'><td><b>Template Total</b></td><td align="right"><i>0.0090</i></td><td align="right"><i>26.6</i></td><td align="right"><i>1</i></td><td align="right"><i>0.0090</i></td></tr><tr class='data'><td>Template load</td><td align="right">0.0031</td><td align="right">9.0744</td><td align="right">1</td><td align="right">0.0031</td></tr><tr class='data'><td>Template processing</td><td align="right">0.0059</td><td align="right">17.3801</td><td align="right">1</td><td align="right">0.0059</td></tr><tr class='group'><td><b>Override</b></td><td></td><td></td><td></td><td></td></tr><tr class='data'><td>Cache load</td><td align="right">0.0025</td><td align="right">7.2705</td><td align="right">1</td><td align="right">0.0025</td></tr><tr class='group'><td><b>General</b></td><td></td><td></td><td></td><td></td></tr><tr class='data'><td>dbfile</td><td align="right">0.0003</td><td align="right">0.8032</td><td align="right">6</td><td align="right">0.0000</td></tr><tr class='data'><td>String conversion</td><td align="right">0.0000</td><td align="right">0.1037</td><td align="right">3</td><td align="right">0.0000</td></tr><tr><td colspan="5">Note: percentages do not add up to 100% because some accumulators overlap</td></tr></table><p><b>Time used to render debug report: 0.0004 secs</b></p></div>
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                paulo.nunes-obsolete@ez.no Paulo Nunes (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: