Re: Ultimate SEO 2.200+ (new features)
Hello zenniac seo url'ers,
I have updated zen to 1.5.7c today, and have noticed that it broke usu.php in admin/includes/functions/extra_functions/usu.php
That file invokes a call to zen_product_in_parent_category(), but this does not exist in its paths.
I had to add it to usu.php (and moved it to general.php) to make the categories/products area work in the admin.
Did I perhaps miss an updatee to admin general.php that defined this function for usu.php to call?
Re: Ultimate SEO 2.200+ (new features)
Quote:
Originally Posted by
CarolineBogart
Hello zenniac seo url'ers,
I have updated zen to 1.5.7c today, and have noticed that it broke usu.php in admin/includes/functions/extra_functions/usu.php
That file invokes a call to zen_product_in_parent_category(), but this does not exist in its paths.
I had to add it to usu.php (and moved it to general.php) to make the categories/products area work in the admin.
Did I perhaps miss an updatee to admin general.php that defined this function for usu.php to call?
That's a function that is/was missing from the Zen Cart V1.5.7 includes/functions/functions_categories.php.
https://github.com/zencart/zencart/b....php#L231-L258
Code:
function zen_product_in_category($product_id, $cat_id) { global $db;
$in_cat=false;
$category_query_raw = "select categories_id from " . TABLE_PRODUCTS_TO_CATEGORIES . "
where products_id = '" . (int)$product_id . "'";
$category = $db->Execute($category_query_raw);
while (!$category->EOF) {
if ($category->fields['categories_id'] == $cat_id) $in_cat = true;
if (!$in_cat) {
$parent_categories_query = "select parent_id from " . TABLE_CATEGORIES . "
where categories_id = '" . $category->fields['categories_id'] . "'";
$parent_categories = $db->Execute($parent_categories_query);
//echo 'cat='.$category->fields['categories_id'].'#'. $cat_id;
while (!$parent_categories->EOF) {
if (($parent_categories->fields['parent_id'] !=0) ) {
if (!$in_cat) $in_cat = zen_product_in_parent_category($product_id, $cat_id, $parent_categories->fields['parent_id']);
}
$parent_categories->MoveNext();
}
}
$category->MoveNext();
}
return $in_cat;
}
Re: Ultimate SEO 2.200+ (new features)
I've created a GitHub issue (https://github.com/lat9/usu/issues/41) to track the changes needed for the issue identified by @CarolineBogart.
Re: Ultimate SEO 2.200+ (new features)
Quote:
Originally Posted by
CarolineBogart
Hello zenniac seo url'ers,
I have updated zen to 1.5.7c today, and have noticed that it broke usu.php in admin/includes/functions/extra_functions/usu.php
That file invokes a call to zen_product_in_parent_category(), but this does not exist in its paths.
I had to add it to usu.php (and moved it to general.php) to make the categories/products area work in the admin.
Did I perhaps miss an updatee to admin general.php that defined this function for usu.php to call?
interesting....
Re: Ultimate SEO 2.200+ (new features)
Quote:
Originally Posted by
CarolineBogart
That file invokes a call to zen_product_in_parent_category(), but this does not exist in its paths.
Quote:
Originally Posted by
mc12345678
Code:
function zen_product_in_category($product_id, $cat_id) {
...
mc,
2 different functions. usu accounts for the missing function of which you speak. the issue identified is a function loaded on the catalog side but not on the admin side.
best.
Re: Ultimate SEO 2.200+ (new features)
I've just submitted v3.0.8 of USU for the Zen Cart moderators' review; I'll post back here when it's available for download.
This release contains changes associated with GitHub issue #41 (Missing zen_product_in_parent_category during admin processing).
Re: Ultimate SEO 2.200+ (new features)
Quote:
Originally Posted by
lat9
I've just submitted v3.0.8 of USU for the Zen Cart moderators' review; I'll post back here when it's available for download.
This release contains changes associated with GitHub issue
#41 (Missing zen_product_in_parent_category during admin processing).
Now available for download: https://www.zen-cart.com/downloads.php?do=file&id=132
Re: Ultimate SEO 2.200+ (new features)
Thanks very much. The only change is to add the conditional function zen_product_in_parent_category? I did that so I think we're all set.
Re: Ultimate SEO 2.200+ (new features)
Hello, using plugin ver 3.0.8 on Z-C ver 1.5.5e.
Is there something I need to do for the alternate URLs to be generated? I switched Enable alternate URLs? = True, and am clicking through my site. I see no change in any of the URLs. Will the plugin "crawl" my site and gen the SEO friendly URLs?
Debug is turned on, and looking in the log, I'm seeing no errors, only a series of messages like this:
=====> URL Generation Log Started, for page: /<ADMIN_DIR>/configuration.php?gID=42&cID=1453&action=edit.
Request sent to href_link('index', '', 'NONSSL', true, true, false, true)
Generated URL: https://australianbakerycafe.com/
Request sent to href_link('index', '', 'NONSSL', true, true, false, true)
Generated URL: https://australianbakerycafe.com/
The only thing that changes in the messages is the bolded part and sometimes it is like so: gID=42&cID=1451. (no "&action=edit.")
Thanks.
Re: Ultimate SEO 2.200+ (new features)
About an hour later, I just got word that our site is down, with this message showing to customers:
The page isn’t redirecting properly
An error occurred during a connection to australianbakerycafe.com.
This problem can sometimes be caused by disabling or refusing to accept cookies.
Checking logs, I find no fatal errors, but this is a new one:
Request sent to href_link('checkout_process', '', 'SSL', true, true, false, true)
Page (checkout_process) was not in the list of pages to rewrite, URI not generated!
Which to me means that a URI was not generated as the checkout page was not included to be re-written. No biggie, I think, certainly not a reason for the whole site not to load.
If I click "Storefront" button in Admin, site opens fine (https://australianbakerycafe.com/ind...ain_page=index) Of course, visitors just type in the domain name, which results in the above error.
I set Enable alternate URLs = false, tried domain name along, no joy. Reverted the .htaccess to pre-install of plugin, and site comes back. Thus there must be something wrong with .htaccess.