PHP Warning
-
My Apache error logs are being filled up with PHP warnings. Its related to the widget code. See warnings below:
[Fri Aug 18 09:32:40.579863 2023] [php:warn] [pid 1005042] [client x.x.x.x:44742] PHP Warning: Undefined array key "sidebar-1" in /wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/widget/package.module.widget.php on line 93, referer: https://x.x.x/inventory/ [Fri Aug 18 09:32:40.579912 2023] [php:warn] [pid 1005042] [client x.x.x.x:44742] PHP Warning: Undefined array key "before_widget" in /wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/widget/package.module.widget.php on line 96, referer: https://x.x.x/inventory/
This is how I fixed it… Update Line 92 of package.module.widget.php
Can you update this in your repo please?
if (isset($options[$id]) && isset($wp_registered_sidebars[$sidebar_name])) {
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘PHP Warning’ is closed to new replies.