Page 1 of 1

How to solve this error? I am getting this error on homepage header.

Posted: Wed May 29, 2019 2:04 pm
by viveknathany901
I have mistakenly created a Duplicate category then i got this error, therefore i deleted duplicate category but getting the below error.

Notice: Undefined offset: 0 in /home/thevcolr/public_html/catalog/controller/extension/module/so_page_builder.php on line 365
Notice: Undefined variable: category_list in /home/thevcolr/public_html/catalog/controller/extension/module/so_page_builder.php on line 371
Warning: array_map(): Argument #2 should be an array in /home/thevcolr/public_html/catalog/controller/extension/module/so_page_builder.php on line 371
Warning: implode(): Invalid arguments passed in /home/thevcolr/public_html/catalog/controller/extension/module/so_page_builder.php on line 371

===========
You can also check this error on my website https://www.thevcollection.com

The below code is in So_page_builder.php between line 365 to 373.

Code: Select all

				if (!defined ('magnific_popup')){

					$this->document->addStyle('admin/view/template/extension/module/so_page_builder/assets/css/magnific-popup.css');

					$this->document->addScript('admin/view/template/extension/module/so_page_builder/assets/js/magnific-popup.js');

					define( 'magnific_popup', 1 );

				}

Re: How to solve this error? I am getting this error on homepage header.

Posted: Wed May 29, 2019 3:28 pm
by D3MO
you pasted wrong code snippet for sure because there is no even variables used in the code like category_list or array_map not even implode and the code you pasted is just for inclusion of css and js and defining a variable to true magnific_popup
viveknathany901 wrote:
Wed May 29, 2019 2:04 pm
I have mistakenly created a Duplicate category then i got this error, therefore i deleted duplicate category but getting the below error.

Notice: Undefined offset: 0 in /home/thevcolr/public_html/catalog/controller/extension/module/so_page_builder.php on line 365
Notice: Undefined variable: category_list in /home/thevcolr/public_html/catalog/controller/extension/module/so_page_builder.php on line 371
Warning: array_map(): Argument #2 should be an array in /home/thevcolr/public_html/catalog/controller/extension/module/so_page_builder.php on line 371
Warning: implode(): Invalid arguments passed in /home/thevcolr/public_html/catalog/controller/extension/module/so_page_builder.php on line 371

===========
You can also check this error on my website https://www.thevcollection.com

The below code is in So_page_builder.php between line 365 to 373.

Code: Select all

				if (!defined ('magnific_popup')){

					$this->document->addStyle('admin/view/template/extension/module/so_page_builder/assets/css/magnific-popup.css');

					$this->document->addScript('admin/view/template/extension/module/so_page_builder/assets/js/magnific-popup.js');

					define( 'magnific_popup', 1 );

				}

Re: How to solve this error? I am getting this error on homepage header.

Posted: Wed May 29, 2019 3:31 pm
by viveknathany901
Dear, Thank you for your reply.
Yes, you are right. So what I need to do to remove this error?

Please help.

Re: How to solve this error? I am getting this error on homepage header.

Posted: Wed May 29, 2019 4:17 pm
by grgr
I believe that is a theme problem, or at very least a non default module. So best to start with the theme supplier.