• Resolved birckk

    (@birckk)


    So I’m not able to generate static files. I’ve been trying to do what i could to find what made the error or anything that might have to do with it but I’m not sure where to look. I can’t seem to figure out where the problems lies from the error message so I’m not sure how to fix it.

    I hope someone can help, it would be really awesome to get my site static.

    
    [2021-04-11 21:52:08] Setting up
    [2021-04-11 21:52:08] Fetched 2 of 81 pages/files
    [2021-04-11 21:52:20] Error: (1) Uncaught RuntimeException: Not valid HTML fragment! %2F%2Atooltipogswing%2A%2F%40-webkit-keyframesswing%7B15%25%7B-webkit-transform%3Atranslatex%285px%29%3Btransform%3Atranslatex%285px%29%3B%7D30%25%7B-webkit-transform%3Atranslatex%28-5px%29%3Btransform%3Atranslatex%28-5px%29%3B%7D50%25%7B-webkit-transform%3Atranslatex%283px%29%3Btransform%3Atranslatex%283px%29%3B%7D65%25%7B-webkit-transform%3Atranslatex%28-3px%29%3Btransform%3Atranslatex%28-3px%29%3B%7D80%25%7B-webkit-transform%3Atranslatex%282px%29%3Btransform%3Atranslatex%282px%29%3B%7D100%25%7B-webkit-transform%3Atranslatex%280%29%3Btransform%3Atranslatex%280%29%3B%7D%7D%40keyframesswing%7B15%25%7B-webkit-transform%3Atranslatex%285px%29%3Btransform%3Atranslatex%285px%29%3B%7D30%25%7B-webkit-transform%3Atranslatex%28-5px%29%3Btransform%3Atranslatex%28-5px%29%3B%7D50%25%7B-webkit-transform%3Atranslatex%283px%29%3Btransform%3Atranslatex%283px%29%3B%7D65%25%7B-webkit-transform%3Atranslatex%28-3px%29%3Btransform%3Atranslatex%28-3px%29%3B%7D80%25%7B-webkit-tran in /home/cc738xs90bfd/public_html/wp-content/plugins/simply-static/vendor/voku/simple_html_dom/src/voku/helper/SimpleHtmlDom.php on line 176
    
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author patrickposner

    (@patrickposner)

    Hey @birckk,

    you have to remove the unvalid HTML from your page to generate a static version with Simply Static. It checks for W3C compliant HTML to prevent issues while exporting the pages.

    Start with running a check here: https://validator.w3.org/

    Best regards,
    Patrick

    Thread Starter birckk

    (@birckk)

    I’ve had exams the last couple of days so haven’t been able to respond I know it’s some “unvalid HTML”. I guess I should have been more precise. It’s how to find the specific HTML code that gives the error that’s the problem and what pages are the problem.

    As an example it states in the error message:
    “-webkit-transform%3Atranslatex”

    This could be anywhere on the websites many pages and it’s not really shown from the error message where the problem lies ‘specifically’

    I hope you find time to read this and thanks for at least some answer ^^

    ps. you can see some errors when using the validator site you referred to but the errors there don’t match anything from the error message in simply static

    Thread Starter birckk

    (@birckk)

    Solution: There is a debugging tool under diagnostics kinda well hidden that can help.

    I guess i got my problem solved but it would be nice if you did two things.

    1. made it so the error message above showed what html page in question was the problem and that had faulty html. It was pure coincidence I found the debugging tool which made it possible to manually figure out what specific page that was the problem.

    2. Make the debugging mode much more obvious to find and clear where that it’s there.

    Hi @patrickposner ,
    I have been using Simply Static for years now, but my use case is very specific. I purposely have invalid HTML in my output because I merge the static output with another web app. I am unable to use the newer versions because it will break my setup. Is there an easy way to turn off the W3C compliant HTML check that the newer version of Simply Static does?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Can’t generate static files. Not valid HTML fragment!’ is closed to new replies.