Forum Replies Created

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter sandeep2408

    (@sandeep2408)

    Hi @tacoverdo

    After updating new version 4.0.1, I am able to work with classic editor, but I am still getting same error on website for some pages. I am working on Multisite and observed that I am getting
    Fatal error: Uncaught TypeError: Argument 1 passed to Yoast\WP\Duplicate_Post\Permissions_Helper::is_rewrite_and_republish_copy() must be an instance of WP_Post, null given, called in \wp-content\plugins\duplicate-post\src\ui\class-post-states.php on line 59 and defined in \wp-content\plugins\duplicate-post\src\class-permissions-helper.php on line 57

    If I add following condition before “if ( $this->permissions_helper->is_rewrite_and_republish_copy( $post ) ) {” this code then fatal error disappear

    if ( ! $post instanceof WP_Post ) {
    return false;
    }

    can you please help me

    Thank you

    Thread Starter sandeep2408

    (@sandeep2408)

    Hi @tacoverdo

    Thank you for your quick response and fix. The issue is fixed now.

    Thank you

    Thread Starter sandeep2408

    (@sandeep2408)

    Hello Ajay,

    Thank you for your quick response. There are approx total 8000 posts and displaying 100 post per page.

    Thank you

    Thread Starter sandeep2408

    (@sandeep2408)

    Hello Ajay,

    Thank you for your quick response. I didn’t installed this plugin on a brand new site. The plugin was already installed, I just updated WordPress and Top 10 plugin. I am able to see All Post Page after unchecking the “Page views in admin” checkbox. will it impact on plugin’s any functionality?

    Thank you

    Thread Starter sandeep2408

    (@sandeep2408)

    Hello Thomas Maier,

    Thank you for help.

    Thread Starter sandeep2408

    (@sandeep2408)

    Hello Thomas Maier,

    Thank you for quick response.

    The background-image is set by Advanced Ads because if I disable the plugin and refresh page multiple times but background-image doesn’t display.

    I am not using any paid add-ons or pro version, only two plugins are enabled https://www.screencast.com/t/00EJBSsxu.

    I have created ad https://www.screencast.com/t/hyrqmgsP and following is the code which generates ads and set background-image.

    <!– HEADER TAG –>

    <script type=’text/javascript’>
    (function() {
    var useSSL = ‘https:’ == document.location.protocol;
    var src = (useSSL ? ‘https:’ : ‘http:’) +
    ‘//www.googletagservices.com/tag/js/gpt.js’;
    document.write(‘<scr’ + ‘ipt src=”‘ + src + ‘”></scr’ + ‘ipt>’);
    })();
    </script>

    <script type=’text/javascript’>
    googletag.defineSlot(‘/21614370252/COSMO-Web-Homepage’, [1, 1], ‘div-gpt-ad-1373625495868-0’).addService(googletag.pubads());
    googletag.defineSlot(‘/21614370252/COSMO-Web-Homepage’, [728, 90], ‘div-gpt-ad-1373625495868-1’).addService(googletag.pubads()).setTargeting(“Pos”,”Top”);
    googletag.defineSlot(‘/21614370252/COSMO-Web-Homepage’, [[300, 250],[300, 600]], ‘div-gpt-ad-1373625495868-2’).addService(googletag.pubads());
    googletag.defineSlot(‘/21614370252/COSMO-Web-Homepage’, [728, 90], ‘div-gpt-ad-1373625495868-3’).addService(googletag.pubads()).setTargeting(“Pos”,”Mid”);
    googletag.defineSlot(‘/21614370252/COSMO-Web-Homepage’, [728, 90], ‘div-gpt-ad-1373625495868-4’).addService(googletag.pubads()).setTargeting(“Pos”,”Bot”);
    googletag.pubads().enableSingleRequest();
    googletag.enableServices();
    </script>
    <script type=”text/javascript”>
    var accClickUrl = “%%CLICK_URL_UNESC%%%%DEST_URL%%”;
    var accClickTarget = “_blank”;
    document.write(‘<style>’);
    document.write(‘body {‘);
    document.write(‘background-image: url(“LINKTOGETTHEFILE”);’);
    document.write(‘background-repeat: no-repeat;’);
    if(‘top’==’top with offset’) {
    document.write(‘background-position:center 0px;’);
    }else{
    document.write(‘background-position:center top;’);
    }
    if(‘FFFFFF’!=””)document.write(‘background-color: #FFFFFF;’);
    document.write(‘background-attachment: fixed;’);
    if (accClickUrl != “”)document.write(‘cursor: pointer;’);
    document.write(‘}’);
    if (accClickUrl != “”)document.write(‘body > *{cursor: default;}’);
    document.write(‘</style>’);
    if (accClickUrl != “”){
    function OpenWin(page) {
    if(accClickTarget==”_blank”)
    window.open(page);
    else
    document.location=page;
    }
    accBgClickEvent=function(e){var bglink=accClickUrl;EE=e?e:event;if(!EE)return;var tg=EE.target?EE.target:EE.srcElement;if((!tg||tg.tagName!=”BODY”)&&tg.parentNode.tagName!=”BODY”)return;var BackLink=OpenWin(“”+bglink);};
    document.onclick= accBgClickEvent;
    }
    document.write(”);
    document.write(”);
    </script>

    As you can see this code set background-image in body tag. My problem is that the background-image display only page load and vanished after scroll in Safari browser on Live site https://www.cosmopolitan.co.za/?google_preview=21UCSb6cYJsY2IXh5QUw2KGW7QWIAYCAgKCHzP-dKA&iu=21614370252&gdfp_req=1&lineItemId=5039860792&creativeId=138267824633 and never display even if I refresh multiple times.

    Please help me.
    Thank you
    Sandeep

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