Home>Support>Notice: Undefined index: cell in /wp-content/plugins/siteorigin-panels/inc/renderer.php on line 647

Notice: Undefined index: cell in /wp-content/plugins/siteorigin-panels/inc/renderer.php on line 647

By Joey Sephora, 7 years ago. Last reply by Alex S, 7 years ago.
Notice: This thread is over two years old; the information may be outdated. Please consider creating a new thread if you require free support. If you have an active SiteOrigin Premium license, you can email our premium support desk at [email protected].

This was also in a previous thread and Greg Priday said he would fix this bug in v2.5.1 but that was over a year ago. I recently updated to WP 4.9.5 and also updated SiteOrigins to the latest version.
On some pages on my website I get this error: Notice: Undefined index: cell in /wp-content/plugins/siteorigin-panels/inc/renderer.php on line 647 and line 648.

This is the code on those lines:

	foreach ( $panels_data['widgets'] as $i => $widget ) {
			        $widget['panels_info']['widget_index'] = $i;
			        $row_index = intval( $widget['panels_info']['grid'] );
			        $cell_index = intval( $widget['panels_info']['cell'] );
			$layout_data[ $row_index ]['cells'][ $cell_index ]['widgets'][] = $widget;
		}

For now, I will turn debug to false so this error hopefully won’t appear on the frontend but it would be good to solve this because it seems like it affects load time.

thanks

Joey

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 7 years, 2 months ago Alex S
    Hi, I Work Here

    Hi Joey,

    Preface: Please note that the linked thread is unrelated. That issue is related to cell indexes which is different to the literal cell.

    Unfortunately, I can’t seem to work out the underlying cause of this issue. This means I can only force this issue to happen by incorrectly editing the layout rather than it happening naturally. While we can fix this, it would be a band-aid and the actual cause of the issue itself would remain. Would it be possible for you to send me an export for the layout you’re having issues? To do this please open up the linked page in the editor and click the Layout button in the Page Builder toolbar. Then click import/export and then click download. Please upload the export to a 3rd party file hosting site such as teknik.io.

Replies on this thread are closed. Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More