Blank screen after trying to modify layout in Admin
Posted: Sat Jan 27, 2024 3:16 am
Hi,
I have been playing around with PI files to get the products page to do want I want - and had got it all (or mostly) doing what I want so went into admin to play around with the layout (Admin->Modules-Layout). when I try to change any of the modules setting and then save it I get a blank screen ... I looked in the error log for admin and the only error I can find that may be relevant is this one;
this is the same error that comes up regardless of which module I modify
/includes/modules/pi/product_info/tpl_pi_buy_button.php is unmodified, though I do have a bunch of modified files including this one in the templates/override/... folders.
I do not know if there is something wrong with one of these files - I'll put the tpl_pi_buy_button.php file from the override folder below incase that is the issue...
Thanks for any help
I have been playing around with PI files to get the products page to do want I want - and had got it all (or mostly) doing what I want so went into admin to play around with the layout (Admin->Modules-Layout). when I try to change any of the modules setting and then save it I get a blank screen ... I looked in the error log for admin and the only error I can find that may be relevant is this one;
Code: Select all
PHP Warning: Cannot modify header information - headers already sent by (output started at .../includes/modules/pi/product_info/tpl_pi_buy_button.php:33) in .../includes/system/versioned/1.0.8.5/href.php on line 195/includes/modules/pi/product_info/tpl_pi_buy_button.php is unmodified, though I do have a bunch of modified files including this one in the templates/override/... folders.
I do not know if there is something wrong with one of these files - I'll put the tpl_pi_buy_button.php file from the override folder below incase that is the issue...
Code: Select all
<?php
if ( isset($_SESSION['customer_id']) && defined('MODULE_STORE_WHOLESALE_STATUS') && MODULE_STORE_WHOLESALE_STATUS == 'True' && isset($_SESSION['wholesale_group']) && $_SESSION['wholesale_group'] > '0' ) {
$products_ws_price = $GLOBALS['product']->get('ws_price_' . $_SESSION['wholesale_group'] );
if ( $products_ws_price > 0 ) {
?>
<div class="col-sm-<?= (int)PI_BUY_CONTENT_WIDTH ?> pi-buy-button mt-2">
<?=
new Button(PI_BUY_BUTTON_TEXT, 'fas fa-shopping-cart', 'btn-success btn-block btn-lg btn-product-info btn-buy', [
'data-has-attributes' => (int)$GLOBALS['product']->get('has_attributes'),
'data-in-stock' => (int)$GLOBALS['product']->get('in_stock'),
'data-product-id' => (int)$GLOBALS['product']->get('id'),
]),
new Input('products_id', ['value' => (int)$GLOBALS['product']->get('id')], 'hidden');
?>
</div>
<?php }
if ( $products_ws_price == 0 ) {
?>
<div class="col-sm-<?= (int)PI_BUY_CONTENT_WIDTH ?> alert alert-warning text-center">
<?php echo PI_BUY_NA_TEXT;?>
</div>
<?php
}
} ?>
<?php
/*
$Id$
CE Phoenix, E-Commerce made Easy
https://phoenixcart.org
Copyright (c) 2021 Phoenix Cart
Released under the GNU General Public License
*/
?>