Adding HTML to Raw Content breaks page and logs out user session

I am building a new page in Cornerstone. I added HTML to a Raw Content element and since I’ve added this the page no longer saves. I get the “Uh oh, failed to safe undefined” error every time I try to save. Even when I load the page and try to delete the section with the Raw Content element before saving it, it still gives me the same error. On top of this, when I try to save this particular page, my entire WordPress session is logged out.

I have the latest version of Cornerstone, my PHP memory limit is 2047MB and I already tried deactivating all plugins.

I included login information in a secure note.

Hello @Hyperbits,

Thanks for writing in! It seems that there are several JS errors in the console.

You may need to test for a 3rd party plugin conflict as this might contribute to the Raw HTML content.

Please also check if the Raw Content HTML code is valid and correct. You may need to use the HTML Validator;

You can also post your HTML code so we can try it out in our local testing server as well.

Best Regards.

Hi @ruenel,

Thank you for looking into this. I did go through and deactivate all 3rd party plugins in my first test and the issue is still happening. It also is only happening with this particular page (and if I try to clone this page, it happens on the cloned pages as well).

Here is my HTML

<div>
  <div>
    <div>
      <img src="image1.jpg" alt="Slide Image" />
      <h2>Slide Title</h2>
      <p>This is a block of text describing the slide.</p>
      <div>
        <div></div>
        <p>Audio description 1</p>
      </div>
      <div>
        <div></div>
        <p>Audio description 2</p>
      </div>
      <div>
        <div></div>
        <p>Audio description 3</p>
      </div>
      <div>
        <div></div>
        <p>Audio description 4</p>
      </div>
    </div>
  </div>

  <div>
    <div>
      <img src="image1.jpg" alt="Slide Image" />
      <h2>Slide Title</h2>
      <p>This is a block of text describing the slide.</p>
      <div>
        <div></div>
        <p>Audio description 1</p>
      </div>
      <div>
        <div></div>
        <p>Audio description 2</p>
      </div>
      <div>
        <div></div>
        <p>Audio description 3</p>
      </div>
      <div>
        <div></div>
        <p>Audio description 4</p>
      </div>
    </div>
  </div>

  <div>
    <div>
      <img src="image1.jpg" alt="Slide Image" />
      <h2>Slide Title</h2>
      <p>This is a block of text describing the slide.</p>
      <div>
        <div></div>
        <p>Audio description 1</p>
      </div>
      <div>
        <div></div>
        <p>Audio description 2</p>
      </div>
      <div>
        <div></div>
        <p>Audio description 3</p>
      </div>
      <div>
        <div></div>
        <p>Audio description 4</p>
      </div>
    </div>
  </div>

  <div>
    <div>
      <img src="image1.jpg" alt="Slide Image" />
      <h2>Slide Title</h2>
      <p>This is a block of text describing the slide.</p>
      <div>
        <div></div>
        <p>Audio description 1</p>
      </div>
      <div>
        <div></div>
        <p>Audio description 2</p>
      </div>
      <div>
        <div></div>
        <p>Audio description 3</p>
      </div>
      <div>
        <div></div>
        <p>Audio description 4</p>
      </div>
    </div>
  </div>

  <div>
    <div>
      <img src="image1.jpg" alt="Slide Image" />
      <h2>Slide Title</h2>
      <p>This is a block of text describing the slide.</p>
      <div>
        <div></div>
        <p>Audio description 1</p>
      </div>
      <div>
        <div></div>
        <p>Audio description 2</p>
      </div>
      <div>
        <div></div>
        <p>Audio description 3</p>
      </div>
      <div>
        <div></div>
        <p>Audio description 4</p>
      </div>
    </div>
  </div>
</div>

` If I strip the src=“image1.jpg” out of the img tags, cornerstone saves successfully and I am not logged out. The src=“image1.jpg” was just a placeholder so I don’t need it, but possibly the fact that there is no image at that file address was breaking cornerstone?

That’s all fine, but now if I try to go in and delete the entire Raw Content element and save, the error still occurs (even though now the HTML is completely gone). How can I go about recovering this page? Is there another way to remove the offending HTML and recover the rest of the page?

I have already tried saving individual sections as templates (to then load on a new page) but those fail to save as well and I am logged out when trying.

Thank you.

Hi @ruenel,

Just following up to hopefully get this issue figured out.

Thanks

Hey @Hyperbits,

Added the code to a regulart test page and it does not log me out (see the page in the secure note).

Can you please try creating a different page and adding the code in the WordPress Classic or Block Editor. Don’t use Cornerstone.

Please then provide us the URL of the page.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.