lat9, I just saw you have a new version..... where can I download the zip that extracts like this? 1) load files 2) .htaccess 3) install 4)uninstall wording
I have redone the testing work of the beta4 on a new account that has NEVER had a ZEN CART website on it.
- I copy the 1.5.4 database and install it on the new server (I dare not delete the USU from my production environment)
- I put the fresh untouched v156a code over
- I run the install and convert the database to 1.5.6a
- I move the new beta4 code over
- I move the new beta4 .htaccess over
- I run the install
Found previous version installed. Upgrading (or re-installing) Ultimate URLs (old 2.215 => new 2.217).
Ultimate URLs installation / upgrade completed!
Yes, the code v1.5.6a or the USU beta4 changes the admin/products.php file during installation I suppose (I have only introduced fresh code to this server.... no old code.)
<?php/**
* @package admin
* @copyright Copyright 2003-2019 Zen Cart Development Team
* @copyright Portions Copyright 2003 osCommerce
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
* @version $Id: DrByte 2019 Jan 04 Modified in v1.5.6a $
*/
require('includes/application_top.php');
$action = (isset($_GET['action']) ? $_GET['action'] : '');
// If the action will affect the cache entries
if (preg_match("/(insert|update|setflag)/i", $action)) {
usu_reset_cache_data('true');
}
if (zen_not_null($action)) {
switch ($action) {
case 'insert_product_meta_tags':
case 'update_product_meta_tags':
if (file_exists(DIR_WS_MODULES . $zc_products->get_handler($product_type) . '/update_product_meta_tags.php')) {
require(DIR_WS_MODULES . $zc_products->get_handler($product_type) . '/update_product_meta_tags.php');
} else {
require(DIR_WS_MODULES . 'update_product_meta_tags.php');
}
break;
case 'insert_product':
case 'update_product':
if (file_exists(DIR_WS_MODULES . $zc_products->get_handler($product_type) . '/update_product.php')) {
require(DIR_WS_MODULES . $zc_products->get_handler($product_type) . '/update_product.php');
} else {
require(DIR_WS_MODULES . 'update_product.php');
}
break;
/*
case 'new_product_preview_meta_tags':
if (file_exists(DIR_WS_MODULES . $zc_products->get_handler($product_type) . '/new_product_preview_meta_tags.php')) {
require(DIR_WS_MODULES . $zc_products->get_handler($product_type) . '/new_product_preview_meta_tags.php');
} else {
require(DIR_WS_MODULES . 'new_product_preview_meta_tags.php');
}
break;
*/
case 'new_product_preview':
if (file_exists(DIR_WS_MODULES . $zc_products->get_handler($product_type) . '/new_product_preview.php')) {
require(DIR_WS_MODULES . $zc_products->get_handler($product_type) . '/new_product_preview.php');
} else {
require(DIR_WS_MODULES . 'new_product_preview.php');
}
break;
}
}
// check if the catalog image directory exists
if (is_dir(DIR_FS_CATALOG_IMAGES)) {
if (!is_writeable(DIR_FS_CATALOG_IMAGES)) {
$messageStack->add(ERROR_CATALOG_IMAGE_DIRECTORY_NOT_WRITEABLE, 'error');
}
} else {
$messageStack->add(ERROR_CATALOG_IMAGE_DIRECTORY_DOES_NOT_EXIST, 'error');
}
?>
<!doctype html>
<html <?php echo HTML_PARAMS; ?>>
<head>
<meta charset="<?php echo CHARSET; ?>">
<title><?php echo TITLE; ?></title>
<link rel="stylesheet" href="includes/stylesheet.css">
<link rel="stylesheet" href="includes/cssjsmenuhover.css" media="all" id="hoverJS">
<script src="includes/menu.js"></script>
<script src="includes/general.js"></script>
<script>
function init() {
cssjsmenu('navbar');
if (document.getElementById) {
var kill = document.getElementById('hoverJS');
kill.disabled = true;
}
}
</script>
<?php
if ($action != 'new_product_meta_tags' && $editor_handler != '') {
include ($editor_handler);
}
?>
</head>
<body onload="init();">
<!-- header //-->
<?php require(DIR_WS_INCLUDES . 'header.php'); ?>
<!-- header_eof //-->
<!-- body //-->
<!-- body_text //-->
<?php
// echo DIR_WS_MODULES . $zc_products->get_handler($product_type);
if ($action == 'new_product_meta_tags') {
require(DIR_WS_MODULES . $zc_products->get_handler($product_type) . '/collect_info_metatags.php');
} elseif ($action == 'new_product') {
require(DIR_WS_MODULES . $zc_products->get_handler($product_type) . '/collect_info.php');
} elseif ($action == 'new_product_preview_meta_tags') {
require(DIR_WS_MODULES . $zc_products->get_handler($product_type) . '/preview_info_meta_tags.php');
} elseif ($action == 'new_product_preview') {
require(DIR_WS_MODULES . $zc_products->get_handler($product_type) . '/preview_info.php');
}
?>
<!-- body_text_eof //-->
<!-- body_eof //-->
<!-- script for datepicker -->
<script>
$(function(){
$('input[name="products_date_available"]').datepicker();
})
</script>
<!-- footer //-->
<?php require(DIR_WS_INCLUDES . 'footer.php'); ?>
<!-- footer_eof //-->
</body>
</html>
<?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>
It also does the same thing.... it will not load the preview screen of product change.
- So, just for grins I run the uninstall.
Ultimate URLs removal completed! Do not forget to undo any modifications made by Ultimate URLs to core files
- load the code and install again
Ultimate URLs installation / upgrade completed!
This is still not working on the product update preview.....
The version on admin shows 2.217
- I move the admin/products.php from the new fresh code..... and it works.... but is everything okay? I don't know.
:(