• Resolved chriscostanza

    (@chriscostanza)


    Hello,

    I have a site built using Sage 9. Everything is great besides my client wants to add some Google Web Stories to their site, so I added the plugin and when you view an individual story like this one – https://www.theproducemoms.com/web-stories/tik-tok-inspired-baked-feta-pasta/ it gives the error “There was an error generating the web story, probably because of a server misconfiguration. Try contacting your hosting provider or open a new support request.” Of course the host is no help. If I switch to the “Twenty Twenty-One” theme it works fine, but for some reason it doesn’t like Sage 9.

    Has anyone ever ran into this issue before or have any ideas why this might be triggering this error? It’s stumping me and I haven’t been able to find any threads by Googling of people encountering this before.

    FYI: I have also asked this question over at Sage Community.

    Thank you for any help.

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hello @chriscostanza and thanks for opening this topic. Sorry to hear you are having issues viewing your stories.

    Nice work switching themes which looks to have highlighted a conflict with your Sage 9 theme. I can’t see any previous reports of this in the past from our side.

    As the conflict is with the Sage 9 theme then the Sage Help/Community should be able to assist you with why this is happening and hopefully provide a solution/fix.

    Please do let us know the outcome of your question with Sage and if there is anything we can help with off the back of that. Also, if you are experiencing any further issues or have any questions then please let us know.

    Thread Starter chriscostanza

    (@chriscostanza)

    Ok @adamdunnage I will let you know if I get a solution through Sage.

    @chriscostanza Thanks a lot. In the meantime please let us know if you have any further questions.

    Thread Starter chriscostanza

    (@chriscostanza)

    Hi Adam,

    There are no errors in the server logs related to this issue unfortunately. Is there any way to get a more detailed error message than what it’s saying. It looks like it is a known issue that the error messages could be improved ( comment in code )

    The theme developers need more info than what this error provides to be able to dig more into this. Is there anyway I can get more from the plugin?

    Plugin Author Pascal Birchler

    (@swissspidy)

    I did some testing with the Sage theme and it turns out that it does alter the WordPress template hierarchy in an unusual way, taking away any chance from the Web Stories plugin to display the story instead of your regular theme layout.

    This is done here: https://github.com/roots/sage/blob/7e6d0671d3421acadb6e9b3d0bad2a9f54d62c67/app/filters.php#L46-L67

    This trips up the whole document parsing process in our plugin because of the mix of Sage markup and story markup, leading to the error you’ve seen.

    The good news is that I might have found a viable workaround for that.

    Could you try installing this version of the plugin to see if it solves the issue?

    Again, Sage does some really weird things here, so it’s best if they could improve that. Not sure if it’s already solved in v10.x.

    Thread Starter chriscostanza

    (@chriscostanza)

    Thank you so much for testing this for me and it looks like the version you sent me works! This is such good news!

    I believe the sage 9 changes have to do with the theme using the Blade templating system. I am not sure though.

    Thanks again! I really appreciate your help!

    Plugin Author Pascal Birchler

    (@swissspidy)

    That’s great to hear, thanks for confirming!

    We’ll make sure to include this fix in our next release. Until then you can use the version I sent you.

    I’m marking this thread as resolved, so if you encounter any more issues just open a new thread.

    Thanks!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Conflict with Sage 9 Theme’ is closed to new replies.