Code Monkey home page Code Monkey logo

Comments (6)

mikeschinkel avatar mikeschinkel commented on July 19, 2024

@greghaygood Thanks for the report.

So this might be the case that you used your code instead of ours? Our code should have included turning on debugging in the wp-config-local.php. Can you check that?

This was included in that file:

define( 'WP_DEBUG', true );
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);

If that is not the issue then I would definitely like to address it.

BTW, is this the theme?

from wplib-box.

greghaygood avatar greghaygood commented on July 19, 2024

This is a vanilla install of wplib-box, and the first thing I did to it was to install the Layers plugin. So my wp-config-local.php matches what you have here.

And yes, that's the theme. I made no changes since it failed immediately, so you should be able to replicate easily.

from wplib-box.

mikeschinkel avatar mikeschinkel commented on July 19, 2024

@greghaygood Okay, will try to reproduce.

from wplib-box.

mikeschinkel avatar mikeschinkel commented on July 19, 2024

@greghaygood So I cloned wplib/wplib-box and downloaded and placed the Layers theme and was not able to get it to crash.

I then searched for the string 'to silence this notice and keep existing sidebar content' and found in one place in WordPress core's register_sidebar() function. I think searched for everywhere that function is called and in most cases it is called with a partially hardcoded string for 'id'.

The only place I could find that was not hardcoding the id is a LayersWP function register_dynamic_sidebars() that iterates over $a_layers_widget->get_dynamic_sidebars() (class Layers_Widgets) Based on the data you have in your wp_options table it is possible but even that seems unlikely.

So I uncommented the if { ... } to force the error message to trigger and then it did, but the Query Manager plugin caught the error messages and displayed them in a debugging console accessible via a red flashing button on the Admin Bar.

So I am at a loss. I would love to find out why and how this failed, but I think I might need your test DB and any code that goes beyond just the box as cloned and the theme as downloaded. Let me know if you want to package that and send to me; you know how to get it to me.

BTW, one potential is if you have an add_action( 'register_sidebar', ... ) in your code, if the filter in not returning the correct value. But even then, the Query Monitor caught the error when I forced it to happen so not sure how to fix... Help?

from wplib-box.

greghaygood avatar greghaygood commented on July 19, 2024

Thanks for digging in. I just PM'd you a copy of the Site+DB so hopefully that will better help illuminate the issue.

from wplib-box.

greghaygood avatar greghaygood commented on July 19, 2024

Odd - I just wiped the DB (didn't change anything with the code) and let WP re-install, and now the errors are showing in the browser. ¯_(ツ)_/¯

I'll close this until I find something replicable. Thanks!

from wplib-box.

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.