This thread is a collection of known bugs and their fixes ... specifically applicable to v1.5.0
Printable View
This thread is a collection of known bugs and their fixes ... specifically applicable to v1.5.0
Symptom: can't update an Admin Profile's checkboxes for assigned permissions
Workaround:
/admin/profiles.php
Find around line 199:
and replace that line with:Code:<form id="profileBoxes" name="profileBoxes" action="<?php echo zen_href_link(FILENAME_PROFILES) ?>" method="post">
http://www.zen-cart.com/showthread.p...ile-checkboxesCode:<?php echo zen_draw_form('profileBoxes', FILENAME_PROFILES, 'action=update') ?>
http://www.zen-cart.com/showthread.p...s-Not-Updating
Problem with PayPal and virtual products. Fix posted here: http://www.zen-cart.com/showthread.p...91#post1093291
Symptom: Difficulty installing on Windows hosts - zc_install won't complete the database installation. Error message triggered instead.
Solution: Edit 3 files:
/zc_install/sql/mysql_zencart.sql
Replace the following lines:with this instead:Code:DROP TABLE IF EXISTS admin_activity_log;
CREATE TABLE admin_activity_log (
log_id bigint(15) NOT NULL auto_increment,
access_date datetime NOT NULL default '0001-01-01 00:00:00',
admin_id int(11) NOT NULL default '0',
page_accessed varchar(80) NOT NULL default '',
page_parameters text default '',
ip_address varchar(20) NOT NULL default '',
flagged tinyint NOT NULL default '0',
attention varchar(255) NOT NULL default '',
gzpost mediumblob NOT NULL default '',
PRIMARY KEY (log_id),
KEY idx_page_accessed_zen (page_accessed),
KEY idx_access_date_zen (access_date),
KEY idx_flagged_zen (flagged),
KEY idx_ip_zen (ip_address)
) ENGINE=MyISAM;
/zc_install/sql/mysql_upgrade_zencart_139_to_150.sqlCode:DROP TABLE IF EXISTS admin_activity_log;
CREATE TABLE admin_activity_log (
log_id bigint(15) NOT NULL auto_increment,
access_date datetime NOT NULL default '0001-01-01 00:00:00',
admin_id int(11) NOT NULL default '0',
page_accessed varchar(80) NOT NULL default '',
page_parameters text,
ip_address varchar(20) NOT NULL default '',
flagged tinyint NOT NULL default '0',
attention varchar(255) NOT NULL default '',
gzpost mediumblob,
PRIMARY KEY (log_id),
KEY idx_page_accessed_zen (page_accessed),
KEY idx_access_date_zen (access_date),
KEY idx_flagged_zen (flagged),
KEY idx_ip_zen (ip_address)
) ENGINE=MyISAM;
Replace this line:with:Code:ALTER TABLE admin_activity_log ADD COLUMN gzpost mediumblob NOT NULL default '';
/YOUR_RENAMED_admin/includes/init_includes/init_admin_history.phpCode:ALTER TABLE admin_activity_log ADD COLUMN gzpost mediumblob ;
add the line shown:Code:$sql_data_array = array( 'access_date' => 'now()',
'admin_id' => (isset($_SESSION['admin_id'])) ? (int)$_SESSION['admin_id'] : 0,
'page_accessed' => 'Log found to be empty. Logging started.',
'page_parameters' => '',
'gzpost' => '',
'ip_address' => substr($_SERVER['REMOTE_ADDR'],0,15)
);
Problem: debug logs are generated when editing Products on the Preview and on the Update
Solution: Work around ...
https://github.com/zencart/zencart/c...a0798af4ab9917
NOTE: Does not apply if site is running in UTF8
THIS MAY OR MAY NOT AFFECT various v1.5.0 implementations. We're posting it here "in case". Implementing this fix is safe either way.
Symptom: Admin Login "broken" in v1.5.0 - v1.5.5a with Google Chrome error: "Aw, snap"
Google Chrome 54.0.2840.59 is now forcefully disallowing the use of javascript function declarations of 'animate'. This interferes with the "spinner" that appears during admin login since v1.5.0
The fix is simple:
1. Open /admin/login.php in a code-safe text editor, such as Sublime Text:
2. Find and replace "animate(" with "waiting_spinner(". There will be 3 occurrences.
3. Save
That's it. Login should now work again.
For a visual example of the changes, see: https://github.com/zencart/zencart/pull/1321/files
(exact position and line numbers may differ between Zen Cart versions)
Ref: https://www.zen-cart.com/showthread....log-into-admin