Saving Issues

3 posts by 3 authors in: Forums > CMS Builder
Last Post: June 14, 2022   (RSS)

By rentittoday - June 3, 2022

Hello,

We are experiencing some issues that all seem to be related to saving.
When trying to save a record in CMS we receive a 500 error:

-----

This page isn’t working

www.myurl.comis currently unable to handle this request.

HTTP ERROR 500

------

If you go back to the previous page and refresh, the changes are in fact saved.

We are also experiencing an error with the Create PDF 1.07 functionality.
After clicking the "Create PDF" button we are shown this error:

-----
Exit with code 1 due to network error: ContentOperationNotPermittedError Error executing wkhtmltopdf! (Exit code: 1)<br/>
------

When we click the "Test server requirements" link inside of the Create PDF plugin, all tests pass.
However, when we click the "link" at the end of "Visually review PDF output" we are greeted again with the same 500 error.

Can anyone provide any insights as to why we may be receiving this error and how to fix it?

Thank you!
Jason Glass

By daniel - June 14, 2022

Hi Jason,

Given that the 500 error happens both while saving records and while clicking the link in the CreatePDF plugin, my first thought would be something to do with the server configuration. Have you moved/updated servers recently, or perhaps installed any new security tools? The "Server Info" section under Admin Menu > General Settings will check for and list some common PHP security modules if they are detected.

Regarding the CreatePDF Error, I found some info about this and related errors with the PDF generation library, and it sounds like it's typically an issue in the content itself, related to images (or other assets) not being able to load correctly. 

https://github.com/wkhtmltopdf/wkhtmltopdf/issues/1937

https://github.com/wkhtmltopdf/wkhtmltopdf/issues/1855

A few things to try:

  • Check if you're using a <base> tag in the HTML being used to generate the PDF - this could be causing issues
  • Make sure all assets (images, stylesheets, script files, etc.) are functioning and have appropriate extensions (.jpg, .css, .js, etc.)

Let me know if that helps, or if you have any questions!

Thanks,

Daniel
Technical Lead
interactivetools.com