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
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.