I am not really that familiar with PHP. I'm working on a WordPress platform website and have 'child theme configurator' plugin installed. When I go to 'analyze' my child theme it is coming up with the following errors. They all seem to be related to code on the same line in class-wp-widget-factory.php line 71 which calls something
$this->widgets[ $widget ] = new $widget();
and is defined in class-wp-widget.php on line 162
public function __construct( $id_base, $name, $widget_options = array(), $control_options = array() ) {
It looks like there is/are undefined variable: name in class-wp-widget.php on line 164
$this->name = $name;
Here are the errors that are coming up ( sorry for the length, but they might be redundant? )
Warning: Missing argument 1 for WP_Widget::__construct(), called in /home/jpalenhouseblog/public_html/wp-includes/class-wp-widget-factory.php on line 71 and defined in /home/jpalenhouseblog/public_html/wp-includes/class-wp-widget.php on line 162
Warning: Missing argument 2 for WP_Widget::__construct(), called in /home/jpalenhouseblog/public_html/wp-includes/class-wp-widget-factory.php on line 71 and defined in /home/jpalenhouseblog/public_html/wp-includes/class-wp-widget.php on line 162
Notice: Undefined variable: name in /home/jpalenhouseblog/public_html/wp-includes/class-wp-widget.php on line 164
Warning: Missing argument 1 for WP_Widget::__construct(), called in /home/jpalenhouseblog/public_html/wp-includes/class-wp-widget-factory.php on line 71 and defined in /home/jpalenhouseblog/public_html/wp-includes/class-wp-widget.php on line 162
Warning: Missing argument 2 for WP_Widget::__construct(), called in /home/jpalenhouseblog/public_html/wp-includes/class-wp-widget-factory.php on line 71 and defined in /home/jpalenhouseblog/public_html/wp-includes/class-wp-widget.php on line 162
Notice: Undefined variable: name in /home/jpalenhouseblog/public_html/wp-includes/class-wp-widget.php on line 164
Warning: Missing argument 1 for WP_Widget::__construct(), called in /home/jpalenhouseblog/public_html/wp-includes/class-wp-widget-factory.php on line 71 and defined in /home/jpalenhouseblog/public_html/wp-includes/class-wp-widget.php on line 162
Warning: Missing argument 2 for WP_Widget::__construct(), called in /home/jpalenhouseblog/public_html/wp-includes/class-wp-widget-factory.php on line 71 and defined in /home/jpalenhouseblog/public_html/wp-includes/class-wp-widget.php on line 162
Notice: Undefined variable: name in /home/jpalenhouseblog/public_html/wp-includes/class-wp-widget.php on line 164
Warning: Missing argument 1 for WP_Widget::__construct(), called in /home/jpalenhouseblog/public_html/wp-includes/class-wp-widget-factory.php on line 71 and defined in /home/jpalenhouseblog/public_html/wp-includes/class-wp-widget.php on line 162
Warning: Missing argument 2 for WP_Widget::__construct(), called in /home/jpalenhouseblog/public_html/wp-includes/class-wp-widget-factory.php on line 71 and defined in /home/jpalenhouseblog/public_html/wp-includes/class-wp-widget.php on line 162
Notice: Undefined variable: name in /home/jpalenhouseblog/public_html/wp-includes/class-wp-widget.php on line 164
Any assistance would be great. I know there are a lot of extremely knowledgeable coders here.
I've tried turning off several third party plugins that may be related to widgets such as WP Instagram Widget and then running the analyzer again but the same errors come up.
Thanks.
Dennis
Related
I have an error notice in the visual constructor of my web page (jupiter)
That error says:
Warning: Illegal string offset 'pro_widgets' in /home/customer/www/gedysa.com/public_html/wp-content/plugins/elementor/includes/api.php on line 164
Warning: Illegal string offset 'pro_widgets' in /home/customer/www/gedysa.com/public_html/wp-content/plugins/elementor/includes/api.php on line 167
I have gone where apparently the problem is, in the php archive of jupiter plugin and it look like this:
164 $data['pro_widgets'] = [];
165 }
166
167 return $data['pro_widgets'];
but I dont know what to do.
Could somebody help me??
PrestaShop 1.6.1.10
PHP 5.5.7
When I turn on debugging in PrestaShop, appear as errors like this, I would fix it, but I do not understand how to fix it.
Notice: Undefined index: br in
public_html/tools/smarty/sysplugins/smarty_internal_templatebase.php(157)
: eval()'d code on line 34 Notice: Trying to get property of
non-object in
public_html/tools/smarty/sysplugins/smarty_internal_templatebase.php(157)
: eval()'d code on line 34 Notice: Undefined index: hookPaymentShow in
public_html/tools/smarty/sysplugins/smarty_internal_templatebase.php(157)
: eval()'d code on line 44 Notice: Trying to get property of
non-object in
public_html/tools/smarty/sysplugins/smarty_internal_templatebase.php(157)
: eval()'d code on line 44 Notice: Undefined index: manifestPDFFooter
in
public_html/tools/smarty/sysplugins/smarty_internal_templatebase.php(157)
: eval()'d code on line 52 Notice: Trying to get property of
non-object in
public_html/tools/smarty/sysplugins/smarty_internal_templatebase.php(157)
: eval()'d code on line 52 Notice: Undefined index: desc in
public_html/tools/smarty/sysplugins/smarty_internal_templatebase.php(157)
: eval()'d code on line 54 Notice: Trying to get property of
non-object in
public_html/tools/smarty/sysplugins/smarty_internal_templatebase.php(157)
: eval()'d code on line 54
It means somewhere in a tpl there is a call to hookPaymentShow (for example) in an array that is not defined (doesn't exist).
Try to find the location where the notice is thrown, and you can delete the entry or use something like {if isset($array['variable'])}$array['variable']{/if}
I have 266 filters in 1 group in opencart. Then I am trying to add the 267th and I get this error:
Notice: Undefined index: filter_description in /home/eshop/public_html/admin/controller/catalog/filter.php on
line 386
Warning: Invalid argument supplied for foreach() in
/home/eshop/public_html/admin/controller/catalog/filter.php on
line 386
Notice: Undefined index: sort_order in
/home/eshop/public_html/vqmod/vqcache/vq2-admin_model_catalog_filter.php
on line 48
Notice: Undefined index: filter_description in
/home/eshop/public_html/vqmod/vqcache/vq2-admin_model_catalog_filter.php
on line 53
Warning: Invalid argument supplied for foreach() in
/home/eshop/public_html/vqmod/vqcache/vq2-admin_model_catalog_filter.php
on line 53
Warning: Cannot modify header information - headers already
sent by (output started at
/home/eshop/public_html/admin/index.php:85) in
/home/eshop/public_html/vqmod/vqcache/vq2-system_engine_controller.php
on line 28
Warning: Cannot modify header information - headers already
sent by (output started at
/home/eshop/public_html/admin/index.php:85) in
/home/eshop/public_html/vqmod/vqcache/vq2-system_engine_controller.php
on line 29
Is there a limit in the number of filters in a group?
My Oc version is 1.5.6.4
So, again a problem with my parser.
These errors:
Notice: Undefined property: template::$param in C:\xampp\htdocs\app\includes\classes\class.template.php on line 35
Warning: array_keys() expects parameter 1 to be array, null given in C:\xampp\htdocs\app\includes\classes\class.template.php on line 35
Notice: Undefined property: template::$param in C:\xampp\htdocs\app\includes\classes\class.template.php on line 35
Warning: array_values() expects parameter 1 to be array, null given in C:\xampp\htdocs\app\includes\classes\class.template.php on line 35
The line that causes the errors:
$content = str_replace(array_keys($this->param), array_values($this->param), $content);
Any answers?
are you returning an object to twig template instead of array.
getArrayResult if using doctrine.
I'm running Magento 1.6.2.0.
I noticed in system.log every time an order is placed these 3 lines:
2012-12-19T15:37:00+00:00 ERR (3): Recoverable Error: Argument 1 passed to Mage_Core_Controller_Varien_Action::__construct() must be an instance of Zend_Controller_Request_Abstract, array given, called in /chroot/home/saucench/saucencheese.com/html/app/code/core/Mage/Core/Model/Config.php on line 1351 and defined in /chroot/home/saucench/saucencheese.com/html/app/code/core/Mage/Core/Controller/Varien/Action.php on line 138
2012-12-19T15:37:00+00:00 ERR (3): Recoverable Error: Argument 2 passed to Mage_Core_Controller_Varien_Action::__construct() must be an instance of Zend_Controller_Response_Abstract, none given, called in /chroot/home/saucench/saucencheese.com/html/app/code/core/Mage/Core/Model/Config.php on line 1351 and defined in /chroot/home/saucench/saucencheese.com/html/app/code/core/Mage/Core/Controller/Varien/Action.php on line 138
2012-12-19T15:37:00+00:00 ERR (3): Notice: Undefined variable: response in /chroot/home/saucench/saucencheese.com/html/app/code/core/Mage/Core/Controller/Varien/Action.php on line 141
So apparently the variable "response" isn't defined. Would anyone be able to help me locate the source that's causing this error? It can't be in the Config.php or Action.php since I've never modified those.
Thank you.
It's on this file
/chroot/home/saucench/saucencheese.com/.../Core/Controller/Varien/Action.php
on line 141
See what is happening there and make sure the $variables are defined.