Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter Serj Komarov

    (@serjkomorov)

    Hi @mbis!

    Thanks a lot for a quick responce! Unfortunately this new release doesn’t help, so for now I decided to fix it over the code (added redirect if url ends with numbers). Also I noticed that on the page with numbers in the end of url I’m still getting correct uri from get_permalink() function.

    Thread Starter Serj Komarov

    (@serjkomorov)

    Finally I’ve found out the source of issue, it was some custom code, of course ?? It was something like this:

    add_filter('the_content', 'replace_blockquote', 9999);
    
    function replace_blockquote($content) {
    ...
    $content = preg_replace('/<blockquote(.*?)>/', '<blockquote $1>' . $icon, $content);
    ...
    }

    By the way, issue with blank screen on frontend reproduced only in case then web story has no title, when I added title – all good.

    Thanks for help!

    Thread Starter Serj Komarov

    (@serjkomorov)

    I’ve found the last working version of plugin for me, it’s 1.27.0, since 1.28.0 I see only white screen on front-end. Seems like filter_template_include() in Single.php does’t run from this version (because I can’t see any output information via var_dump() inside this function, for example), so because of this single-web-story.php doesn’t return there.

    I tried to compare $this->context right after ‘single_template’ and ‘template_include’ in register() and there are some differences in these versions of plugin:


    1. [“wp_customize”:”Google\Web_Stories\Admin\Customizer“:private]
    1.27.0 = uninitialized(WP_Customize_Manager)
    1.28.0 = NULL

    2. [“register_styles“:protected]
    1.27.0 = array(0)
    1.28.0 = [“web-stories-embed”]=>bool(true)
    [“web-stories-block”]=>bool(true)

    3. [“register_scripts“:protected]
    1.27.0 = array(0)
    1.28.0 = [“web-stories-block”]=>bool(true)

    Don’t know if it’s the reason, but I’m continuing to investigate this issue.

    Thread Starter Serj Komarov

    (@serjkomorov)

    Great, thanks a lot!

Viewing 4 replies - 1 through 4 (of 4 total)