Re: Ultimate SEO 2.200 [Support Thread]
I know I might be the only one upgrading from the beta3 but this occurred when installing the latest and greatest beta4
The installed version of 'Ultimate URLs' is newer than the installer. This may indicate a problem occurred when the uploading files for the Ultimate URLs plugin!
Please upload the currently installed version before continuing. Attempting to downgrade without first removing the newer version is not recommended and may result in damage to the store.
Found previous version installed. Upgrading (or re-installing) Ultimate URLs (old 3.0.0-beta2 => new 2.217).
Ultimate URLs installation / upgrade completed!
perhaps the version hasn't been updated on the beta4 sql statement?
Re: Ultimate SEO 2.200 [Support Thread]
I moved the new beta4 on top of my beta3 install and am getting the same error as before ....
When I try to edit a product it is not completing the page on preview....
[23-Feb-2019 15:52:49 UTC] PHP Fatal error: Call to a member function format() on null in /home/public_html/site/admin/includes/modules/product/preview_info.php on line 65
[23-Feb-2019 15:52:49 UTC] Request URI: /admin/product.php?cPath=14&pID=12553&action=new_product_preview, IP address:
--> PHP Fatal error: Call to a member function format() on null in /home/com/public_html/site/admin/includes/modules/product/preview_info.php on line 65.
Re: Ultimate SEO 2.200 [Support Thread]
Quote:
Originally Posted by
shrimp-gumbo-mmmhhh
I moved the new beta4 on top of my beta3 install and am getting the same error as before ....
When I try to edit a product it is not completing the page on preview....
[23-Feb-2019 15:52:49 UTC] PHP Fatal error: Call to a member function format() on null in /home/public_html/site/admin/includes/modules/product/preview_info.php on line 65
[23-Feb-2019 15:52:49 UTC] Request URI: /admin/product.php?cPath=14&pID=12553&action=new_product_preview, IP address:
--> PHP Fatal error: Call to a member function format() on null in /home/com/public_html/site/admin/includes/modules/product/preview_info.php on line 65.
How about you post (using the 'CODE' tag, the big # in the menu-bar when you're writing a post) the contents of your /admin/product.php? I believe you've still got some kind of remnants of that older USU version.
Re: Ultimate SEO 2.200 [Support Thread]
Quote:
Originally Posted by
shrimp-gumbo-mmmhhh
I know I might be the only one upgrading from the beta3 but this occurred when installing the latest and greatest beta4
The installed version of 'Ultimate URLs' is newer than the installer. This may indicate a problem occurred when the uploading files for the Ultimate URLs plugin!
Please upload the currently installed version before continuing. Attempting to downgrade without first removing the newer version is not recommended and may result in damage to the store.
Found previous version installed. Upgrading (or re-installing) Ultimate URLs (old 3.0.0-beta2 => new 2.217).
Ultimate URLs installation / upgrade completed!
perhaps the version hasn't been updated on the beta4 sql statement?
You haven't removed USU's previous files; that's the 2.217 installer getting "in the way". Have you tried (again) running v3.0.0's uninstall script (available in the admin's Extras menu)? That will remove those remnants.
Re: Ultimate SEO 2.200 [Support Thread]
This was working just a few minutes ago with what I had upgraded from Beta3... Before Beta3 I started with a fresh script and did not install any 2.17 script or code. There should not be any 2.17 code in my stuff. :( :( :(
I installed the uninstall and ran it...
It doesn't work at this point...
I moved back the beta4 and installed....
Ultimate URLs installation / upgrade completed!
After the installation my admin still shows the version number to be unchanged....
Ultimate URLs Version
Indicates the currently installed version of Ultimate URLs.
2.217
Where is the code at that sets the version level in the module???
This is still not working correctly.... product update preview is not completing the page....
PHP Fatal error: Call to a member function format() on null in /home/com/public_html/site/admin/includes/modules/product/preview_info.php on line 65.
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'); ?>
Re: Ultimate SEO 2.200 [Support Thread]
That's because, as I've pointed out multiple times before, you've still got those v2.217 php-file remnants lurking around in your site's file-system. That's evidenced by the changes made to the top of your /admin/product.php, where the v2.217 installer is making those unwanted changes to that file.
Re: Ultimate SEO 2.200 [Support Thread]
Truthfully, there could have been a possibility of other code when I last tested. I am sorry about that.
However, I have unzipped another fresh v156a and only moving the config.sys for admin and / into it.... there is no other code I am putting with this. I move over the Beta4 as instructed.... it installs.... my Ultimate shows version 2.17 ..... and it doesn't work.... however, when I replace the admin/product.php file from the v156s on top of the installation then it does work.
I would like to help you debug this problem if you would like to... I need to know what does the install read from the database when installing.... is it possible it is reading from the directory below the install? That unfortunately is where I have installed my production site .... could it be reading the files from there and pulling over?
Re: Ultimate SEO 2.200 [Support Thread]
Quote:
Originally Posted by
shrimp-gumbo-mmmhhh
Truthfully, there could have been a possibility of other code when I last tested. I am sorry about that.
However, I have unzipped another fresh v156a and only moving the config.sys for admin and / into it.... there is no other code I am putting with this. I move over the Beta4 as instructed.... it installs.... my Ultimate shows version 2.17 ..... and it doesn't work.... however, when I replace the admin/product.php file from the v156s on top of the installation then it does work.
I would like to help you debug this problem if you would like to... I need to know what does the install read from the database when installing.... is it possible it is reading from the directory below the install? That unfortunately is where I have installed my production site .... could it be reading the files from there and pulling over?
It's possible; check your admin's /includes/configure.php to make sure that the DIR_FS_CATALOG setting "points to" your zc156a sub-directory installation ... not one directory lower (where your production site's installed).
Re: Ultimate SEO 2.200 [Support Thread]
I've just submitted USU v3.0.0 to the Zen Cart plugins for review; I'll update this thread when it's available for download.
This version of USU supports Zen Cart 1.5.5 and later, providing updates for the following GitHub issues:
#2: Simplification of the plugin's logging interface.
#7: Canonical-link not being written.
#8: Correct usage of zen_get_info_page when used during admin processing (zc156+ integration).
#10: USU installer doesn't update zc156+ core files correctly.
#11: Restructure plugin to require no core-file overwrites
Note that the "no-core overwrites" requires that the changes required by previous versions of USU must be removed prior to installing v3.0.0. I promise, it'll be much easier next time!
See the following link for more information: https://github.com/lat9/usu/blob/mas...ade_from_v2.md
Re: Ultimate SEO 2.200 [Support Thread]
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.
1) I copy the 1.5.4 database and install it on the new server (I dare not delete the USU from my production environment)
2) I put the fresh untouched v156a code over
3) I run the install and convert the database to 1.5.6a
4) I move the new beta4 code over
5) I move the new beta4 .htaccess over
6) 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.)
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.
1) 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
2) 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
3) I move the admin/products.php from the new fresh code..... and it works.... but is everything okay? I don't know.
:(