• Resolved Sourav Pan

    (@microbiologynote)


    [15-Oct-2023 11:05:55 UTC] PHP Notice: Undefined property: stdClass::$success in /home/u554146333/domains/xxxxxxxxx.com/public_html/wp-content/plugins/quick-adsense-reloaded/includes/scripts.php on line 909
    [15-Oct-2023 11:05:55 UTC] PHP Notice: Undefined property: stdClass::$success in /home/u554146333/domains/xxxxxxxxx.com/public_html/wp-content/plugins/quick-adsense-reloaded/includes/scripts.php on line 909

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Sourav Pan

    (@microbiologynote)

    Here is the full code creating the problem:


    function quads_render_media_query( $key, $value ) {
    $lic = get_option( ‘quads_wp_quads_pro_license_active’ );
    if( !$lic || (is_object( $lic ) && $lic->success !== true) ) {
    return ”;
    }

    $html = '';
    
    if( isset( $value['desktop'] ) ) {
        //$html .= '/* Hide on desktop */'; 
        $html .= '@media only screen and (min-width:1140px){#quads-' . $key . ', .quads-' . $key . ' {display:none;}}' . "\n";
    }
    if( isset( $value['tablet_landscape'] ) ) {
        //$html .= '/* Hide on tablet landscape */'; 
        $html .= '@media only screen and (min-width:1024px) and (max-width:1140px) {#quads-' . $key . ', .quads-' . $key . ' {display:none;}}' . "\n";
    }
    if( isset( $value['tablet_portrait'] ) ) {
        //$html .= '/* Hide on tablet portrait */'; 
        $html .= '@media only screen and (min-width:768px) and (max-width:1023px){#quads-' . $key . ', .quads-' . $key . ' {display:none;}}' . "\n";
    }
    if( isset( $value['phone'] ) ) {
        //$html .= '/* Hide on mobile device */'; 
        $html .= '@media only screen and (max-width:767px){#quads-' . $key . ', .quads-' . $key . ' {display:none;}}' . "\n";
    }
    
    return $html;

    }

    Here is the 909 line of this code:

    if( !$lic || (is_object( $lic ) && $lic->success !== true) ) {

    I just temporarily fix id by Comment out or remove the license check since you’re using the free version.

    function quads_render_media_query( $key, $value ) {
    // Using the free version, so no license check needed.

    $html = '';
    
    if( isset( $value['desktop'] ) ) {
        //$html .= '/* Hide on desktop */'; 
        $html .= '@media only screen and (min-width:1140px){#quads-' . $key . ', .quads-' . $key . ' {display:none;}}' . "\n";
    }
    if( isset( $value['tablet_landscape'] ) ) {
        //$html .= '/* Hide on tablet landscape */'; 
        $html .= '@media only screen and (min-width:1024px) and (max-width:1140px) {#quads-' . $key . ', .quads-' . $key . ' {display:none;}}' . "\n";
    }
    if( isset( $value['tablet_portrait'] ) ) {
        //$html .= '/* Hide on tablet portrait */'; 
        $html .= '@media only screen and (min-width:768px) and (max-width:1023px){#quads-' . $key . ', .quads-' . $key . ' {display:none;}}' . "\n";
    }
    if( isset( $value['phone'] ) ) {
        //$html .= '/* Hide on mobile device */'; 
        $html .= '@media only screen and (max-width:767px){#quads-' . $key . ', .quads-' . $key . ' {display:none;}}' . "\n";
    }
    
    return $html;

    }

    Plugin Support WPQuads Support

    (@wpquadssupport)

    Hi, thanks for sharing your concern. We have already raised a GitHub ticket in our repository and this concern will be addressed in the upcoming update.

    You can track the progress here: https://github.com/wpquads/quick-adsense-reloaded/issues/838

    Plugin Support WPQuads Support

    (@wpquadssupport)

    Hi, hope you’re doing well. We’ve released a new update, so kindly update the plugin with the new version 2.0.80, Clear the cache once and try it. Please feel free to reach out to us if you have any concerns.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Showing this error message in error log file please resolve it’ is closed to new replies.