Zen Cart Logo
Forums / All Other Contributions/Addons / Ultimate SEO v3 (and v2.200) [Support Thread]

Ultimate SEO v3 (and v2.200) [Support Thread]

Views: 427,456

Results 1,321 to 1,340 of 1,706
23 Feb 2019, 1:30 PM
#1321
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,065
Plugin Contributions:
56

Ultimate SEO v3 (and v2.200) [Support Thread]

shags38:

Hi Cindy, many thanks for that explanation and for the time and effort you have put into this issue. I am often slow on the uptake so just checking that I have got this right :smile:

I appreciate it being a best guess given your inheritance of the plugin! .... and I do not see it as a plugin issue anyway.

Here is how I see it. USU worked like a charm in v1.5.1 with the /includes/init_includes/overrides/init_canonical.php included the file package and SitemapXML files were generated correctly using USU generated url's.

USU v2 does work in v1.5.5f in that it does create the user friendly URL's as it is designed to - the problem is that those URL's are not generated in the SitemapXML files - given that USU and SitemapXML versions were the same (as used in v1.5.1, and still valid) at the time of upgrade to v1.5.5f, it appears something is not correlating between ZC core files in v1.5.5f and USU and SitemapXML - given that USU is generating the files correctly then it appears something is not telling SitemapXML to produce USU generated URLs in its files. The only change in the process is changes to ZC core files in v1.5.5f - so what changed in the core of v1.5.5f to create this 'imbalance' ? If that change could be isolated it may (should) solve the issue :smile: - I really do not want to upgrade to v1.5.6 any time soon (still recovering from 155f upgrades).

I have converted all my v1.5.5f sites to CEON URI Mapping so to test your theory of removing /includes/init_includes/overrides/init_canonical.php from USU v2 I will need to look at how I can do that without creating chaos :smile:

I haven't checked it out but maybe I can have both plugins installed without creating conflict and switch between them - in your opinion is that likely to be possible?

cheers and thanks for your continuing help,
Mike
Mike, I don't believe that the two will work "in harmony" as both USU and Ceon require quite different changes to the site's .htaccess file and with Ceon's "override" of init_canonical.php.

23 Feb 2019, 1:46 PM
#1322
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,065
Plugin Contributions:
56

Re: Ultimate SEO v3 (and v2.200) [Support Thread]

lat9:

Mike, I don't believe that the two will work "in harmony" as both USU and Ceon require quite different changes to the site's .htaccess file and with Ceon's "override" of init_canonical.php.
FWIW, I just installed Sitemap XML 3.9.5 and USU 3.0.0-beta3 on an Edit Orders/zc155f test site (w/ demo products) and I'm happy to report that the USU-generated links are used for the sitemap-generated files.

Here's, for example, the contents of the manufacturers' one:

<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="/zc155feo/includes/templates/template_default/css/gss.xsl"?>
<urlset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd"
        xmlns:image="http://www.google.com/schemas/sitemap-image/1.1"
        xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<!-- generator="Zen-Cart SitemapXML" 3.9.5 -->
<!-- sitemapmanufacturers.xml created at 2019-02-23 08:38:45 -->
 <url>
  <loc>http://localhost/zc155feo/matrox-m-1.html</loc>
  <lastmod>2003-12-23</lastmod>
  <changefreq>weekly</changefreq>
  <priority>1.00</priority>
 </url>
 <url>
  <loc>http://localhost/zc155feo/microsoft-m-2.html</loc>
  <lastmod>2003-12-23</lastmod>
  <changefreq>weekly</changefreq>
  <priority>0.89</priority>
 </url>
 <url>
  <loc>http://localhost/zc155feo/warner-m-3.html</loc>
  <lastmod>2003-12-23</lastmod>
  <changefreq>weekly</changefreq>
  <priority>0.78</priority>
 </url>
 <url>
  <loc>http://localhost/zc155feo/fox-m-4.html</loc>
  <lastmod>2003-12-23</lastmod>
  <changefreq>weekly</changefreq>
  <priority>0.67</priority>
 </url>
 <url>
  <loc>http://localhost/zc155feo/logitech-m-5.html</loc>
  <lastmod>2003-12-23</lastmod>
  <changefreq>weekly</changefreq>
  <priority>0.56</priority>
 </url>
 <url>
  <loc>http://localhost/zc155feo/canon-m-6.html</loc>
  <lastmod>2003-12-23</lastmod>
  <changefreq>weekly</changefreq>
  <priority>0.44</priority>
 </url>
 <url>
  <loc>http://localhost/zc155feo/sierra-m-7.html</loc>
  <lastmod>2003-12-23</lastmod>
  <changefreq>weekly</changefreq>
  <priority>0.33</priority>
 </url>
 <url>
  <loc>http://localhost/zc155feo/gt-interactive-m-8.html</loc>
  <lastmod>2003-12-23</lastmod>
  <changefreq>weekly</changefreq>
  <priority>0.22</priority>
 </url>
 <url>
  <loc>http://localhost/zc155feo/hewlett-packard-m-9.html</loc>
  <lastmod>2003-12-23</lastmod>
  <changefreq>weekly</changefreq>
  <priority>0.11</priority>
 </url>
</urlset>
23 Feb 2019, 1:49 PM
#1323
jeking avatar

jeking

Totally Zenned

Join Date:
Oct 2005
Location:
Chicago, IL USA
Posts:
1,592
Plugin Contributions:
0

Re: Ultimate SEO v3 (and v2.200) [Support Thread]

lat9:

FWIW, I just installed Sitemap XML 3.9.5 and USU 3.0.0-beta3 on an Edit Orders/zc155f test site (w/ demo products) and I'm happy to report that the USU-generated links are used for the sitemap-generated files.

That's great to know. I'm also curious about the canonical. Are those USU links too?

23 Feb 2019, 1:55 PM
#1324
shrimp_gumbo_mmmhhh avatar

shrimp_gumbo_mmmhhh

Totally Zenned

Join Date:
Jun 2007
Location:
Texas, USA
Posts:
1,436
Plugin Contributions:
0

Re: Ultimate SEO v3 (and v2.200) [Support Thread]

  1. I started with completely fresh install script
  2. Loaded the original usu-3.0.0-beta2 (this version has the known issue of not working correctly when "Enable Automatic Redirects" is set to TRUE) Install successful
  3. Went to Admin -> Catalog/Products
  4. Selected a Category
  5. Was given the message "
23 Feb 2019, 2:01 PM
#1325
shrimp_gumbo_mmmhhh avatar

shrimp_gumbo_mmmhhh

Totally Zenned

Join Date:
Jun 2007
Location:
Texas, USA
Posts:
1,436
Plugin Contributions:
0

Re: Ultimate SEO v3 (and v2.200) [Support Thread]

Well, I had a ton of information on there that got lost.... basically there is a bug in /includes/classes/usu.php

change:

    $check = $GLOBALS['db']->Execute(
        "SELECT pt.products_type

to:

    $check = $GLOBALS['db']->Execute(
        "SELECT p.products_type

And you will not get the error message I tried to post.

#10 zen_catalog_href_link() called at [/home/com/public_html/site/admin/category_product_listing.php:861]
--> PHP Fatal error: 1054:Unknown column 'pt.products_type' in 'field list' :: SELECT pt.products_type
FROM product_types pt
INNER JOIN products p
ON p.products_id = pt.type_id
WHERE pt.type_id = 35259
LIMIT 1 ==> (as called by) /home/com/public_html/site/includes/classes/usu.php on line 457 <== in /home/com/public_html/site/includes/classes/db/mysql/query_factory.php on line 171.

Was there a quick and simple fix for the Enable Automatic Redirects that I could make on this version of my code?

23 Feb 2019, 2:11 PM
#1326
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,065
Plugin Contributions:
56

Re: Ultimate SEO v3 (and v2.200) [Support Thread]

jeking:

That's great to know. I'm also curious about the canonical. Are those USU links too?
Yep, the canonical links are also the USU-generated ones.

23 Feb 2019, 2:13 PM
#1327
shrimp_gumbo_mmmhhh avatar

shrimp_gumbo_mmmhhh

Totally Zenned

Join Date:
Jun 2007
Location:
Texas, USA
Posts:
1,436
Plugin Contributions:
0

Re: Ultimate SEO v3 (and v2.200) [Support Thread]

Okay, got the usu-3.0.0-beta3 and moved over and everything works fine.... you had already fixed that issue.

Thank you!

23 Feb 2019, 2:27 PM
#1328
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,065
Plugin Contributions:
56

Re: Ultimate SEO v3 (and v2.200) [Support Thread]

shrimp-gumbo-mmmhhh:

Well, I had a ton of information on there that got lost.... basically there is a bug in /includes/classes/usu.php

change:

    $check = $GLOBALS['db']->Execute(
        "SELECT pt.products_type

to:

    $check = $GLOBALS['db']->Execute(
        "SELECT p.products_type

And you will not get the error message I tried to post.

#10 zen_catalog_href_link() called at [/home/com/public_html/site/admin/category_product_listing.php:861]
--> PHP Fatal error: 1054:Unknown column 'pt.products_type' in 'field list' :: SELECT pt.products_type
FROM product_types pt
INNER JOIN products p
ON p.products_id = pt.type_id
WHERE pt.type_id = 35259
LIMIT 1 ==> (as called by) /home/com/public_html/site/includes/classes/usu.php on line 457 <== in /home/com/public_html/site/includes/classes/db/mysql/query_factory.php on line 171.

Was there a quick and simple fix for the Enable Automatic Redirects that I could make on this version of my code?
Actually, that function should be changed as follows (GitHub issue: https://github.com/lat9/usu/issues/15%29:

    protected function getInfoPage($products_id)
    {
        // -----
        // Quick return if the zen_get_info_page function exists, noting that when
        // run in the zc156 and earlier admin that it isn't!
        //
        if (function_exists('zen_get_info_page')) {
            return zen_get_info_page($products_id);
        }
        
        // -----
        // If the function doesn't exist, emulate its output.
        //
        $check = $GLOBALS['db']->Execute(
            "SELECT pt.type_handler
               FROM " . TABLE_PRODUCTS . " p
                    INNER JOIN " . TABLE_PRODUCT_TYPES . " pt
                        ON pt.type_id = p.products_type
              WHERE p.products_id = " . (int)$products_id . "
              LIMIT 1"
        );
        return ($check->EOF) ? 'product_info' : ($check->fields['type_handler'] . '_info');
    }

The change needed for the automatic redirects is already "baked into" USU v3.0.0-beta3.

23 Feb 2019, 3:09 PM
#1330
jeking avatar

jeking

Totally Zenned

Join Date:
Oct 2005
Location:
Chicago, IL USA
Posts:
1,592
Plugin Contributions:
0

Re: Ultimate SEO v3 (and v2.200) [Support Thread]

lat9:

Yep, the canonical links are also the USU-generated ones.

:thumbsup:

23 Feb 2019, 3:44 PM
#1331
shrimp_gumbo_mmmhhh avatar

shrimp_gumbo_mmmhhh

Totally Zenned

Join Date:
Jun 2007
Location:
Texas, USA
Posts:
1,436
Plugin Contributions:
0

Re: Ultimate SEO v3 (and v2.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?


23 Feb 2019, 3:58 PM
#1332
shrimp_gumbo_mmmhhh avatar

shrimp_gumbo_mmmhhh

Totally Zenned

Join Date:
Jun 2007
Location:
Texas, USA
Posts:
1,436
Plugin Contributions:
0

Re: Ultimate SEO v3 (and v2.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.

23 Feb 2019, 4:14 PM
#1333
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,065
Plugin Contributions:
56

Re: Ultimate SEO v3 (and v2.200) [Support Thread]

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.

23 Feb 2019, 4:16 PM
#1334
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,065
Plugin Contributions:
56

Re: Ultimate SEO v3 (and v2.200) [Support Thread]

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.

23 Feb 2019, 5:09 PM
#1335
shrimp_gumbo_mmmhhh avatar

shrimp_gumbo_mmmhhh

Totally Zenned

Join Date:
Jun 2007
Location:
Texas, USA
Posts:
1,436
Plugin Contributions:
0

Re: Ultimate SEO v3 (and v2.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.

<?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'); ?>
23 Feb 2019, 5:28 PM
#1336
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,065
Plugin Contributions:
56

Re: Ultimate SEO v3 (and v2.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.

25 Feb 2019, 1:36 AM
#1337
shrimp_gumbo_mmmhhh avatar

shrimp_gumbo_mmmhhh

Totally Zenned

Join Date:
Jun 2007
Location:
Texas, USA
Posts:
1,436
Plugin Contributions:
0

Re: Ultimate SEO v3 (and v2.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?

25 Feb 2019, 12:01 PM
#1338
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,065
Plugin Contributions:
56

Re: Ultimate SEO v3 (and v2.200) [Support Thread]

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).

28 Feb 2019, 8:34 PM
#1339
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,065
Plugin Contributions:
56

Re: Ultimate SEO v3 (and v2.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/master/pages/upgrade_from_v2.md

1 Mar 2019, 1:08 AM
#1340
shrimp_gumbo_mmmhhh avatar

shrimp_gumbo_mmmhhh

Totally Zenned

Join Date:
Jun 2007
Location:
Texas, USA
Posts:
1,436
Plugin Contributions:
0

Re: Ultimate SEO v3 (and v2.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.)

<?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

  1. 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

  1. I move the admin/products.php from the new fresh code..... and it works.... but is everything okay? I don't know.

:(