• Hi how can I remove this unidentified variable error on my wishlist page?

    error message: Undefined variable: share_googleplus_enabled in D:\home\site\wwwroot\wp-content\themes\oceanwp\woocommerce\share.php

    • This topic was modified 5 years, 8 months ago by ahranalytics.
Viewing 1 replies (of 1 total)
  • Plugin Author YITHEMES

    (@yithemes)

    Hi there

    As you can see the error appears to be generated in share.php template on your theme
    I have a copy of OceanWP (version 1.9.0) and I think that you could solve the issue by removing this section of code

    <?php if ( $share_googleplus_enabled ) : ?>
    			<li style="list-style-type: none; display: inline-block;">
    				<a target="_blank" class="googleplus" href="https://plus.google.com/share?url=<?php echo urlencode( $share_link_url ); ?>&title=<?php echo $share_link_title; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>" onclick='javascript:window.open(this.href, "", "menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=600");return false;'><i class="fa fa-google-plus" aria-hidden="true"></i></a>
    				<span class="screen-reader-text"><?php esc_html_e( 'Share on Google plus (opens in a new tab)', 'oceanwp' ); ?></span>
    			</li>
    		<?php endif; ?>
    

    In my file this section of code is located in lines 40-45

    Anyway, I’d suggest you to contact theme’s developers and ask them to update the bundled version of this template 😉

    • This reply was modified 5 years, 7 months ago by YITHEMES.
Viewing 1 replies (of 1 total)

The topic ‘Unidentified Variable’ is closed to new replies.