Forums / Upgrading to 1.5.x / Known Bugs (and fixes) with v1.5.0

Known Bugs (and fixes) with v1.5.0

Locked

Views: 16,084

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
12 Jun 2012, 6:02 PM
#1
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Known Bugs (and fixes) with v1.5.0

This thread is a collection of known bugs and their fixes ... specifically applicable to v1.5.0

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

12 Jun 2012, 6:08 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Known Bugs (and fixes) with v1.5.0

Symptom: can't update an Admin Profile's checkboxes for assigned permissions

Workaround:
/admin/profiles.php
Find around line 199:

  <form id="profileBoxes" name="profileBoxes" action="<?php echo zen_href_link(FILENAME_PROFILES) ?>" method="post">

and replace that line with:

  <?php echo zen_draw_form('profileBoxes', FILENAME_PROFILES, 'action=update') ?>

http://www.zen-cart.com/showthread.php?190594-v1-50-Admin-Profiles-problem-editing-existing-profile-checkboxes
http://www.zen-cart.com/showthread.php?191547-Admin-Profiles-Not-Updating

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

22 Jul 2012, 11:23 PM
#3
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Known Bugs (and fixes) with v1.5.0

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

6 Aug 2012, 3:19 AM
#4
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Known Bugs (and fixes) with v1.5.0

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:```
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 '',
[B] page_parameters text default '',[/B]
ip_address varchar(20) NOT NULL default '',
flagged tinyint NOT NULL default '0',
attention varchar(255) NOT NULL default '',
[B] gzpost mediumblob NOT NULL default '',[/B]
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;

with this instead:```
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 '',
[B]  page_parameters text,[/B]
  ip_address varchar(20) NOT NULL default '',
  flagged tinyint NOT NULL default '0',
  attention varchar(255) NOT NULL default '',
[B]  gzpost mediumblob,[/B]
  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.sql
Replace this line:```
ALTER TABLE admin_activity_log ADD COLUMN gzpost [B]mediumblob[/B] [B]NOT NULL default ''[/B];

with:```
ALTER TABLE admin_activity_log ADD COLUMN gzpost [B]mediumblob[/B] ;

/YOUR_RENAMED_admin/includes/init_includes/init_admin_history.php
add the line shown:```
$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' => '',
[B] 'gzpost' => '',[/B]
'ip_address' => substr($_SERVER['REMOTE_ADDR'],0,15)
);

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

19 Oct 2012, 6:41 AM
#5
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Known Bugs (and fixes) with v1.5.0

**Problem: **debug logs are generated when editing Products on the Preview and on the Update

Solution: Work around ...
https://github.com/zencart/zencart/commit/a4f2d78d1d6fc562068e3b445ea0798af4ab9917

NOTE: Does not apply if site is running in UTF8

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

18 Oct 2016, 5:17 PM
#6
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Known Bugs (and fixes) with v1.5.0

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.php?221226-Chrome-Browser-54-0-2840-59-64-bit-windows-cannot-log-into-admin

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.