Comments (6)
@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.
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.
@greghaygood Okay, will try to reproduce.
from wplib-box.
@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.
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.
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)
- Collect list of issues that could cause WPLib Box not to work
- Consider supporting Google's QUIC protocol
- Consider supporting Apache Guacamole for VS Code, etc.
- Add Git Server option with Gitea
- Explore adding GoReplay as a feature
- Add first class support for TypeScript
- Support for Photon?
- Create a solid usable implementation of Caddy
- Support PHPStorm Protocol Handlers
- Skeleton layout fundamentally broken. ABSPATH already set. HOT 29
- Integrate with CodeRisk
- Consider implementing Pre
- Nginx throws error with `iconv('UTF-8', 'ASCII//TRANSLIT', ...)` in PHP 7.1
- Apache container does not recognize `php_value` in .htaccess HOT 4
- Need to increase packet site in MySQL/MariaDB containers
- Increase Nginx Proxy Buffer Size
- Add support for Pickle
- Add mysql.ini in MySQL/MariaDB containers
- Cannot run `show engine innodb status` for MySQL 5.7.22
- [Bug reporting] XSS vulnerabilty in wp_kses_bad_protocol in wp-includes/kses.php (CVE-2019-20041)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wplib-box.