1 Attachment(s)
Trouble with Layout Boxes Controller
Found a bug?
In layout Boxes Controller. When any sidebox is selected to be edited, the sidebox at the top of the list is automatically the sidebox being edited.
No box can be individually edited without the same changes happening to the rest.
When it is turned off/on, it cause all the boxes to do the same. So all Left off, or all right on. or both.
Admin Reset for Responsive Classic works, and then side boxes do not show up..
Where in the DB or files can I change this as I only have 155 files uploaded?
Thx
Re: Responsive Classic (built in to Zen Cart v1.5.5) [Support Thread]
This is not a bug or at least i can't replicate it nor is it related to the responsive_classic theme.
Make sure that you have replaced the ADMIN > layout_controller.php file with the newest available within v1.5.5.
PHP Code:
* @version $Id: Author: DrByte Sat Aug 1 18:01:55 2015 -0400 Modified in v1.5.5 $
Some previous responsive versions altered this file and those changes were not ported to 1.5.5
Re: Responsive Classic (built in to Zen Cart v1.5.5) [Support Thread]
Quote:
Originally Posted by
rbarbour
This is not a bug or at least i can't replicate it nor is it related to the responsive_classic theme.
Make sure that you have replaced the ADMIN > layout_controller.php file with the newest available within v1.5.5.
PHP Code:
* @version $Id: Author: DrByte Sat Aug 1 18:01:55 2015 -0400 Modified in v1.5.5 $
Some previous responsive versions altered this file and those changes were not ported to 1.5.5
Right on. Snagged from todays 155 update: @version $Id: Author: DrByte Sat Aug 1 18:01:55 2015 -0400 Modified in v1.5.5
Manually replacing the files didn't help anything. Somethings whacked.
Re: Responsive Classic (built in to Zen Cart v1.5.5) [Support Thread]
This doesn't feel like an issue with the Responsive Classic template specifically.
The admin/layout_controller.php file doesn't rely on much else. But I suppose if you've got something intercepting the $_GET['cID'] parameters, or if you've got something that's altered a bunch of /admin/includes/functions/*.php or /admin/includes/classes/*.php, or /includes/functions/*.php or /includes/classes/*.php files, then that could cause weirdness in various places.
Re: Responsive Classic (built in to Zen Cart v1.5.5) [Support Thread]
Thank you for your reply.
I failed to mentioned in the default money green template, all the boxes work including the footer banners I left on.
In the Responsive_Classic template I got blank side columns.
Thus, the hunch on my back made me believe it was a template issue.
Fresh install.
Can you recommend a thread to move my Layout Box concerns to besides the round sidebox next to your desk?
Re: Trouble with Layout Boxes Controller
In your database, is the layout_id field of the layout_boxes table set as an "integer" and as an "auto increment" field?
Are all the layout_id values unique, or are they all set to 0, particularly for the newest entries?
Re: Trouble with Layout Boxes Controller
However zc installer set up the db. Ill verify when I get to a computer.
I had this issue after the fresh install and before importing the old db tables.
Re: Trouble with Layout Boxes Controller
Integers
CREATE TABLE `layout_boxes` (
`layout_id` int(11) NOT NULL,
`layout_template` varchar(64) NOT NULL DEFAULT '',
`layout_box_name` varchar(64) NOT NULL DEFAULT '',
`layout_box_status` tinyint(1) NOT NULL DEFAULT '0',
`layout_box_location` tinyint(1) NOT NULL DEFAULT '0',
`layout_box_sort_order` int(11) NOT NULL DEFAULT '0',
`layout_box_sort_order_single` int(11) NOT NULL DEFAULT '0',
`layout_box_status_single` tinyint(4) NOT NULL DEFAULT '0',
`show_box_min_width` tinyint(1) NOT NULL DEFAULT '1'
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
Re: Trouble with Layout Boxes Controller
Hmmm...
The install SQL, all the way back to the original version, contains the auto-increment, and some indexes, but yours doesn't.
Without the auto-increment, all the insertions of records for each setting, including when the "reset" button is used, are getting a value of 0, which is why the links are giving strange results on screen.
This is how it should be, from the v155 install SQL:
Code:
CREATE TABLE layout_boxes (
layout_id int(11) NOT NULL auto_increment,
layout_template varchar(64) NOT NULL default '',
layout_box_name varchar(64) NOT NULL default '',
layout_box_status tinyint(1) NOT NULL default '0',
layout_box_location tinyint(1) NOT NULL default '0',
layout_box_sort_order int(11) NOT NULL default '0',
layout_box_sort_order_single int(11) NOT NULL default '0',
layout_box_status_single tinyint(4) NOT NULL default '0',
PRIMARY KEY (layout_id),
KEY idx_name_template_zen (layout_template,layout_box_name),
KEY idx_layout_box_status_zen (layout_box_status),
KEY idx_layout_box_sort_order_zen (layout_box_sort_order)
) ENGINE=MyISAM;
Re: Trouble with Layout Boxes Controller
Interesting
Is `show_box_min_width` tinyint(1) NOT NULL DEFAULT '1' applicable to v155 or 160?
Otherwise I am prepared to import this into SQL window:
DROP TABLE IF EXISTS `layout_boxes`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE layout_boxes (
layout_id int(11) NOT NULL auto_increment,
layout_template varchar(64) NOT NULL default '',
layout_box_name varchar(64) NOT NULL default '',
layout_box_status tinyint(1) NOT NULL default '0',
layout_box_location tinyint(1) NOT NULL default '0',
layout_box_sort_order int(11) NOT NULL default '0',
layout_box_sort_order_single int(11) NOT NULL default '0',
layout_box_status_single tinyint(4) NOT NULL default '0',
PRIMARY KEY (layout_id),
KEY idx_name_template_zen (layout_template,layout_box_name),
KEY idx_layout_box_status_zen (layout_box_status),
KEY idx_layout_box_sort_order_zen (layout_box_sort_order)
) ENGINE=MyISAM;
/*!40101 SET character_set_client = @saved_cs_client */;