Jack_mcs Posted January 23, 2020 Author Share Posted January 23, 2020 The fix I posted was from an unreleased versions. I didn't look at it as close as I should have and I see now it requires some other changes to work properly. But those changes are too numerous to post here so I will upload a new version with this and other problems fixed. I should get that done before Monday. I apologize for my quick answer causing more problems for you. Quote Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. Get the latest versions of my addons Recommended SEO Addons Link to comment Share on other sites More sharing options...
artfulweb Posted January 23, 2020 Share Posted January 23, 2020 8 minutes ago, Jack_mcs said: The fix I posted was from an unreleased versions. I didn't look at it as close as I should have and I see now it requires some other changes to work properly. But those changes are too numerous to post here so I will upload a new version with this and other problems fixed. I should get that done before Monday. I apologize for my quick answer causing more problems for you. No problem Jack, all the rest still works. I just can not duplicate a product to save time entering all the new products for the new season that just fell. I can still do it the "old" way! Thank you for taking the time to prepare a new release. Quote Link to comment Share on other sites More sharing options...
johnwurzbacher Posted January 23, 2020 Share Posted January 23, 2020 Hi Jack, I'm getting an error when going to edit the header tags for a particular product: Header Tags SEO Meta Tag Data Title TagBreadcrumb TextEnglish:Fatal error: Uncaught Error: Call to undefined function tep_get_products_head_title_tag() in H:\root\home\instrumj-001\www\instrument\storelogin\includes\modules\header_tags_seo.php:19 Stack trace: #0 H:\root\home\instrumj-001\www\instrument\storelogin\categories.php(737): require() #1 {main} thrown in H:\root\home\instrumj-001\www\instrument\storelogin\includes\modules\header_tags_seo.php on line 19 Thanks! John Quote Link to comment Share on other sites More sharing options...
Jack_mcs Posted January 23, 2020 Author Share Posted January 23, 2020 1 hour ago, johnwurzbacher said: I'm getting an error when going to edit the header tags for a particular product: Please post the versions of oscommerce, php and this addon that you are using. Quote Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. Get the latest versions of my addons Recommended SEO Addons Link to comment Share on other sites More sharing options...
johnwurzbacher Posted January 23, 2020 Share Posted January 23, 2020 We are running Header Tags SEO 3.0, PHP 7.0 and OSCommerce 2.3. I think the issue may have started when we upgraded our PHP version from 5.6. Thanks! John Quote Link to comment Share on other sites More sharing options...
Jack_mcs Posted January 23, 2020 Author Share Posted January 23, 2020 Version 3.0 was released seven years ago so it is not likely to be compatible with php 5.6. You will need to upgrade this addon to a newer version. I'm not sure if the latest version will work in your shop without changes. It may but be sure to use the Frozen version in the addon. If not, one or two versions before it should work. The safest way to upgrade is to do it one at a time using the included update files. That will take longer but should go more smoothly in the long-run. Just be sure to backup your files between each update so that if you need to back it out you don't lose all of your work. Quote Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. Get the latest versions of my addons Recommended SEO Addons Link to comment Share on other sites More sharing options...
Jack_mcs Posted January 24, 2020 Author Share Posted January 24, 2020 A new version has been uploaded with these changes: Corrected the code to add individual missing pages when the automatic page option is off. Corrected the add missing pages code since it mangled the includes/header_tags.php file. Corrected the code that adds categories and manufacturers to the titles so it doesn't apply when the parents setting is set to standard. Corrected the duplicate product code in admin/categories.php. Corrected the database installer so it did not delete previous tables. Removed a call to language files no longer needed. Quote Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. Get the latest versions of my addons Recommended SEO Addons Link to comment Share on other sites More sharing options...
artfulweb Posted January 24, 2020 Share Posted January 24, 2020 Perfect Jack, you are the best! Thank you ever so much. Quote Link to comment Share on other sites More sharing options...
artfulweb Posted January 24, 2020 Share Posted January 24, 2020 Me again, Jack. Just a little error in my error logs: Invalid argument supplied for foreach() in (catalog)/includes/modules/content/index_nested/templates/tpl_cm_in_category_listing_hts.php on line 6 Quote Link to comment Share on other sites More sharing options...
Jack_mcs Posted January 25, 2020 Author Share Posted January 25, 2020 Assuming you are working on a Phoenix shop, try removing that module and use the stock one. I remember making some changes to it but then decided to use the stock one and I forgot to go back and test it. Just be sure you have made the change to the category_tree.php file in classes. Please let me know if it works or not. Quote Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. Get the latest versions of my addons Recommended SEO Addons Link to comment Share on other sites More sharing options...
artfulweb Posted January 25, 2020 Share Posted January 25, 2020 10 hours ago, Jack_mcs said: Assuming you are working on a Phoenix shop, try removing that module and use the stock one. I remember making some changes to it but then decided to use the stock one and I forgot to go back and test it. Just be sure you have made the change to the category_tree.php file in classes. Please let me know if it works or not. Yes Jack, Phoenix 1.0.4.3, replaced and it is still there. Category_tree was done. Quote Link to comment Share on other sites More sharing options...
Jack_mcs Posted January 25, 2020 Author Share Posted January 25, 2020 Please uninstall all of the index_nested modules for this addon to see which one is causing the problem. Quote Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. Get the latest versions of my addons Recommended SEO Addons Link to comment Share on other sites More sharing options...
artfulweb Posted January 25, 2020 Share Posted January 25, 2020 1 hour ago, Jack_mcs said: Please uninstall all of the index_nested modules for this addon to see which one is causing the problem. It is cm_in_category_listing_hts.php Quote Link to comment Share on other sites More sharing options...
Jack_mcs Posted January 25, 2020 Author Share Posted January 25, 2020 Are you sure you removed it? There's no way it can cause a failure if it is not installed. Quote Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. Get the latest versions of my addons Recommended SEO Addons Link to comment Share on other sites More sharing options...
artfulweb Posted January 25, 2020 Share Posted January 25, 2020 1 hour ago, Jack_mcs said: Are you sure you removed it? There's no way it can cause a failure if it is not installed. I uninstalled it, then no error. Put it back in and the error logged again. Quote Link to comment Share on other sites More sharing options...
♥BrockleyJohn Posted January 26, 2020 Share Posted January 26, 2020 11 hours ago, artfulweb said: I uninstalled it, then no error. Put it back in and the error logged again. uninstalled or just disabled? Quote Contact me for work on updating existing stores - whether to Phoenix or the new osC when it's released. Looking for a payment or shipping module? Maybe I've already done it. Working on generalising bespoke solutions for Quickbooks integration, Easify integration and pay4later (DEKO) integration at 2.3.x Link to comment Share on other sites More sharing options...
artfulweb Posted January 26, 2020 Share Posted January 26, 2020 1 hour ago, BrockleyJohn said: uninstalled or just disabled? Uninstalled Quote Link to comment Share on other sites More sharing options...
Jack_mcs Posted January 26, 2020 Author Share Posted January 26, 2020 18 hours ago, artfulweb said: I uninstalled it, then no error. Put it back in and the error logged again. The module is broken. That's why I said to remove it. Once you do that, you should get the error. Quote Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. Get the latest versions of my addons Recommended SEO Addons Link to comment Share on other sites More sharing options...
artfulweb Posted January 26, 2020 Share Posted January 26, 2020 1 hour ago, Jack_mcs said: The module is broken. That's why I said to remove it. Once you do that, you should get the error. Ok Jack. Thank you. Quote Link to comment Share on other sites More sharing options...
Jack_mcs Posted January 26, 2020 Author Share Posted January 26, 2020 43 minutes ago, artfulweb said: Ok Jack. Thank you. Does the stock listing module work correctly, meaning does it use the HTS text? Quote Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. Get the latest versions of my addons Recommended SEO Addons Link to comment Share on other sites More sharing options...
artfulweb Posted January 27, 2020 Share Posted January 27, 2020 22 hours ago, Jack_mcs said: Does the stock listing module work correctly, meaning does it use the HTS text? Yes Jack, they do work for categories and sub categories with the osComm Phoenix stock listing modules, so all ok on that end. Jack_mcs 1 Quote Link to comment Share on other sites More sharing options...
koopmanh Posted January 30, 2020 Share Posted January 30, 2020 Hi Jack, I just installed the update on my admin side. I run into two twings: first the version still show 3.3.6 secondly I think the version-checker produces a strange result: in the file header_tags_seo.php line 597: <td class="smallText" align="right" style="font-weight: bold; color: red;"><?php echo AnnounceVersion($contribPath, $currentVersion, $contribName); ?></td> outputs an complete array <start screendump get http://addons.oscommerce.com/info/5851 Array ( [0] => [1] => [2] => [3] => [4] => [5] => [6] => [7] => [8] => [9] => [10] => [11] => [12] => [13] = end screendump> It looks like the result of the function in version checker is not what it should be: FYI: I currently running the admin on php 5.6 Quote Link to comment Share on other sites More sharing options...
Jack_mcs Posted January 30, 2020 Author Share Posted January 30, 2020 4 hours ago, koopmanh said: first the version still show 3.3.6 secondly I think the version-checker produces a strange result: Thanks for mentioning these. For the version, I will change that in the next version. For the version checker, find this code in the admin/includes/functions/header_tags.php file if (! function_exists('GetFileArray')) { function GetFileArray($path) { $lines = array(); if (false && function_exists('curl_init')) { $ch = curl_init(); $timeout = 5; // set to zero for no timeout curl_setopt ($ch, CURLOPT_URL, $path); curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt ($ch, CURLOPT_CONNECTTIMEOUT, $timeout); $file_contents = curl_exec($ch); curl_close($ch); $lines = explode("\n", $file_contents); echo 'curl'; } else { echo 'get '.$path; $lines = @file($path); } ?> <pre> <?php print_r($lines); ?> </pre> <?php return $lines; } } and replace it with this if (! function_exists('GetFileArray')) { function GetFileArray($path) { $lines = array(); if (function_exists('curl_init')) { $ch = curl_init(); $timeout = 5; // set to zero for no timeout curl_setopt ($ch, CURLOPT_URL, $path); curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt ($ch, CURLOPT_CONNECTTIMEOUT, $timeout); $file_contents = curl_exec($ch); curl_close($ch); $lines = explode("\n", $file_contents); } else { $lines = @file($path); } return $lines; } } Quote Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. Get the latest versions of my addons Recommended SEO Addons Link to comment Share on other sites More sharing options...
radhavallabh Posted February 17, 2020 Share Posted February 17, 2020 On 1/24/2020 at 11:31 PM, Jack_mcs said: A new version has been uploaded with these changes: Corrected the code to add individual missing pages when the automatic page option is off. Corrected the add missing pages code since it mangled the includes/header_tags.php file. Corrected the code that adds categories and manufacturers to the titles so it doesn't apply when the parents setting is set to standard. Corrected the duplicate product code in admin/categories.php. Corrected the database installer so it did not delete previous tables. Removed a call to language files no longer needed. Is it compatible with Phoenix- 1.0.5.0? Quote Link to comment Share on other sites More sharing options...
Jack_mcs Posted February 17, 2020 Author Share Posted February 17, 2020 9 hours ago, radhavallabh said: Is it compatible with Phoenix- 1.0.5.0? Yes, it should. It was test in 1.0.4.4 and nothing was changed in the later versions of Phoenix that would cause problems. Quote Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. Get the latest versions of my addons Recommended SEO Addons Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.