Giter Site home page Giter Site logo

PHP Warning Strict: Declaration of BWP_GXS_MODULE_INDEX::build_data() should be compatible with that of BWP_GXS_MODULE::build_data() about bwp-google-xml-sitemaps HOT 5 CLOSED

oddoneout avatar oddoneout commented on June 24, 2024
PHP Warning Strict: Declaration of BWP_GXS_MODULE_INDEX::build_data() should be compatible with that of BWP_GXS_MODULE::build_data()

from bwp-google-xml-sitemaps.

Comments (5)

OddOneOut avatar OddOneOut commented on June 24, 2024

A minor issue, but will be fixed.

from bwp-google-xml-sitemaps.

capn3m0 avatar capn3m0 commented on June 24, 2024

I will check and fix this night ;)

from bwp-google-xml-sitemaps.

capn3m0 avatar capn3m0 commented on June 24, 2024

i can't reproduce the issue :(

from bwp-google-xml-sitemaps.

DeanMarkTaylor avatar DeanMarkTaylor commented on June 24, 2024

This can be reproduced by doing the following:

1. Enable debugging in wp-config.php, add the following lines:

define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', true );
define( 'WP_DEBUG_DISPLAY', false );

2. Add a new plugin file debug-plugin.php to your "must use" plugin folder /wp-content/mu-plugins/debug-plugin.php:

<?php
ini_set( 'ignore_repeated_errors', 0 );
ini_set( 'ignore_repeated_source', 0 );
error_reporting( E_ALL | E_DEPRECATED | E_STRICT );

Using this plugin really just forces E_STRICT to be used, as it seems it is not normally included by WP_DEBUG.

3. Disable the caching in the "Better WordPress Google XML Sitemaps" plugin here:
/wp-admin/options-general.php?page=bwp_gxs_generator, uncheck the Enable caching? option.

4. Cause the function to run by hitting the sitemap URL: /sitemap.xml

5. View your debug log found here /wp-content/debug.log.
You should see a line like this:

[09-Mar-2013 23:05:28 UTC] PHP Strict Standards:  Declaration of BWP_GXS_MODULE_INDEX::build_data() should be compatible with that of BWP_GXS_MODULE::build_data() in /var/sites/g/example.com/public_html/wp-content/plugins/bwp-google-xml-sitemaps/includes/modules/sitemapindex.php on line 162

from bwp-google-xml-sitemaps.

OddOneOut avatar OddOneOut commented on June 24, 2024

Fixed in 1.3.0.

from bwp-google-xml-sitemaps.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.