jmoll Posted August 11, 2012 Share Posted August 11, 2012 ...Beyond that, the code posted by Gary was from several years ago and should not be needed if you have the latest version of Header Tags installed. Hi Jack, I went back and double checked my original header_tags.php file that came as part of your 3.2.8 package that I downloaded earlier this year, and the "old" code is indeed in there that Gary references in his post, and for which he relayed your recommended solution.... so I followed the instructions you all had there in that clubosc post, and it did indeed then allow my HT SEO 3.2.8 and USU5 configuration to begin working together just fine, other than when I started to use Page Control for pages like my about_us.php, which is when I realized the "!==" vs. "!==" issue.... but as I mentioned, I was able to at least seemingly "fix" that by changing the "!==" to "!=" in yours/Gary's posted code fix.... will be waiting for your further insights on that as mentioned above. Thanks! Quote Link to comment Share on other sites More sharing options...
knifeman Posted August 11, 2012 Share Posted August 11, 2012 I found some time ago this post at http://www.clubosc.com/seourls5-htcseo3.html which explains the fix Jack provided to make HT SEO and USU5 work. I use URI mode = standard (because I'm on a windoze server - long story) and it works great. If you scroll down to near the bottom of the comments on the above-referenced clubosc post, you'll see a question posted from Gurdeep dated May 2, 2012. I found that page as well in my searching, but it made mine worse. And as Jack mentioned a couple posts ago, it is no longer needed. I eventually got rewrite to work in USU5, by resetting the cache. Then as mentioned in several places, both mods now work on the same shop. For me it is all good as I had chemos rewrite add on from years ago so my new store will have the exact same urls as the current store. thanks to both contributors, Tim Quote Link to comment Share on other sites More sharing options...
blaine109 Posted August 19, 2012 Share Posted August 19, 2012 (edited) Hi Jack, After updating to 3.2.7 I have an error in my categories box but only when you click on a manufacturer in the manufacturers box. Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/****/public_html/includes/boxes/categories.php on line 36 Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/****/public_html/includes/boxes/categories.php on line 43 Those error codes are repeated several times before it starts to display the actual categories. Once again, this only shows up if you click on a manufacturer in the manufacturers box. Edited August 19, 2012 by blaine109 Quote Link to comment Share on other sites More sharing options...
Jack_mcs Posted August 19, 2012 Author Share Posted August 19, 2012 Hi Jack, After updating to 3.2.7 I have an error in my categories box but only when you click on a manufacturer in the manufacturers box. Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/****/public_html/includes/boxes/categories.php on line 36 Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/****/public_html/includes/boxes/categories.php on line 43 Those error codes are repeated several times before it starts to display the actual categories. Once again, this only shows up if you click on a manufacturer in the manufacturers box. The latest version is 3.2.8. Please use that. Quote Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons Link to comment Share on other sites More sharing options...
blaine109 Posted August 19, 2012 Share Posted August 19, 2012 (edited) I am using 3.2.8, I just didn't have the issues till I did the big upgrade to 3.2.7. The lines that the error is point to on line 36 and 43 of categories.php is: if ( ($id) && (in_array($counter, $id)) ) { Edited August 19, 2012 by blaine109 Quote Link to comment Share on other sites More sharing options...
Jack_mcs Posted August 19, 2012 Author Share Posted August 19, 2012 I am using 3.2.8, I just didn't have the issues till I did the big upgrade to 3.2.7. The lines that the error is point to on line 36 and 43 of categories.php is: if ( ($id) && (in_array($counter, $id)) ) { You didn't say you were using 3.2.8. 3.2.7 was broken so I can't comment on any error to do with it. The error you mention though is not part of Header Tags since it doesn't change the category box. If the error didn't occur until after this installation, then you either made a mistake in the installation or there is some conflict with the code in your category box. Quote Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons Link to comment Share on other sites More sharing options...
♥14steve14 Posted August 19, 2012 Share Posted August 19, 2012 I am using 3.2.8, I just didn't have the issues till I did the big upgrade to 3.2.7. Surely this is a backward step as 3.2.8 came after 3.2.7 Quote REMEMBER BACKUP, BACKUP AND BACKUP Link to comment Share on other sites More sharing options...
blaine109 Posted August 20, 2012 Share Posted August 20, 2012 I figured out my issue. Somehow my install of 2.2RC2a, which is a Fantastico install, had an old MS1 file for includes/boxes/categories.php. I replaced it with a fresh copy with a real 2.2RC2a copy of the file and all is working now. Quote Link to comment Share on other sites More sharing options...
andrea.freddi Posted August 20, 2012 Share Posted August 20, 2012 hi jack i've installed version 3.2.8 and get the following error (from admin-header tags seo-test): 1146 - Table 'XXXXXX.TABLE_HEADERTAGS' doesn't exist select page_name from TABLE_HEADERTAGS where page_name like 'index.php' and language_id = '1' LIMIT 1 i had a look in includes/database_tables.php and the modifications are made, in phpmyadmin and the tables are also created. can you please tell me what to do to get this great contrib working? thx in advance andrea Quote Link to comment Share on other sites More sharing options...
♥14steve14 Posted August 20, 2012 Share Posted August 20, 2012 Have you added the code into the includes/database_tables.php Quote REMEMBER BACKUP, BACKUP AND BACKUP Link to comment Share on other sites More sharing options...
andrea.freddi Posted August 20, 2012 Share Posted August 20, 2012 @@14steve14 yes, i added the code in includes/database_tables.php and also in admin/includes/database_table.php also i controlled if the tables exist in my database with phpmyadmin and the tables were created Quote Link to comment Share on other sites More sharing options...
Jack_mcs Posted August 20, 2012 Author Share Posted August 20, 2012 The error is saying it can't find the definition. If you've made that change, be sure it is actually on the server (not just on your computer). That is the only thing it can be, assuming your shop is structured as a standard oscommerce shop. Quote Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons Link to comment Share on other sites More sharing options...
andrea.freddi Posted August 20, 2012 Share Posted August 20, 2012 hmmm, strange, now it's working, but i didn't touch anything, and i'm sure i've putted my pages to server before reporting to this forum. anyway, many thx for help and this great contrib regards andrea Quote Link to comment Share on other sites More sharing options...
blaine109 Posted August 20, 2012 Share Posted August 20, 2012 Jack, When I was having difficulty upgrading this past weekend and made all the changes then reverted them and made them again I ended up running the db update twice. So now in Configuration->HeaderTagsSEO I have all the options listed out twice. Please advise the best course of action to removing the duplicates as each duplicate does have a separate cID. Thanks, Blaine Quote Link to comment Share on other sites More sharing options...
Jack_mcs Posted August 20, 2012 Author Share Posted August 20, 2012 Jack, When I was having difficulty upgrading this past weekend and made all the changes then reverted them and made them again I ended up running the db update twice. So now in Configuration->HeaderTagsSEO I have all the options listed out twice. Please advise the best course of action to removing the duplicates as each duplicate does have a separate cID. You will need to edit the configuration table directly and delete the extras. Search for HEADER_TAGS_ and all of them should show, making it easier to see which to delete. Quote Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons Link to comment Share on other sites More sharing options...
blaine109 Posted August 21, 2012 Share Posted August 21, 2012 You will need to edit the configuration table directly and delete the extras. Search for HEADER_TAGS_ and all of them should show, making it easier to see which to delete. Jack, Does it matter which duplicate I delete? Quote Link to comment Share on other sites More sharing options...
blaine109 Posted August 21, 2012 Share Posted August 21, 2012 Jack, I've looked and didn't see one but was wondering if there was a special character conversion tool for this contribution. I know you have one in your SEO URLS contribution. I sell items that are measured in inches and I use the quotation mark (") in my tags and titles but that seems to prematurely close my keywords, meta, etc. tags. If not, is there somewhere I can hardcode that in to make this conversion: "=>inch Thanks, Blaine Quote Link to comment Share on other sites More sharing options...
Jack_mcs Posted August 21, 2012 Author Share Posted August 21, 2012 Jack, I've looked and didn't see one but was wondering if there was a special character conversion tool for this contribution. I know you have one in your SEO URLS contribution. I sell items that are measured in inches and I use the quotation mark (") in my tags and titles but that seems to prematurely close my keywords, meta, etc. tags. If not, is there somewhere I can hardcode that in to make this conversion: "=>inch No, there's nothing like that in the code. You're correct. about it being trucated when used. Google interprets the quote mark as end of string so if you include a " in a title or meta tag, google only takes characters up to that point. The best thing is to just use the word, as you mentioned. But you would have to do that manually in the product edit page. Or, you could edit the includes/header_tags.php file and do a replace right before the resutls are returned. Quote Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons Link to comment Share on other sites More sharing options...
blaine109 Posted August 22, 2012 Share Posted August 22, 2012 No, there's nothing like that in the code. You're correct. about it being trucated when used. Google interprets the quote mark as end of string so if you include a " in a title or meta tag, google only takes characters up to that point. The best thing is to just use the word, as you mentioned. But you would have to do that manually in the product edit page. Or, you could edit the includes/header_tags.php file and do a replace right before the resutls are returned. Jack, I'm not fluent enough in PHP to follow all that is going on in the includes/header_tags.php file. I've tried to figure it but was not successful at figuring it out. I may need to enlist your help on it. I will make a suggestion for you to consider. Since the data that your script is putting out is in HTML you may consider cleaning all the arrays by converting any special character with HTML significance (htmlspecialcharacters) so that it doesn't interfere with the HTML syntax. It would still be nice to have a special characters conversion like you have in your SEO URLs contribution. Quote Link to comment Share on other sites More sharing options...
Phantomwheels Posted August 22, 2012 Share Posted August 22, 2012 In need of some help. I have had the header tags installed for awhile but the feature to make unique tags isnt working everything is just the default tag any ideas what could be wrong? Quote Link to comment Share on other sites More sharing options...
Flotec Posted August 24, 2012 Share Posted August 24, 2012 I have installed Header Tags latest version 3.2.8 in an Oscommerce shop 2.3.3. Everything seems OK, I don't get any error messages. However in admin I get no special header tag box so I cannot fill in header tags for index page for example. I can fill in header tags for categories and products so that works. What have I done wrong if I don't get any header tag box in admin? Someting I have forgotten? Note: I had some problems in admin/manufacturers.php file. It does not look the same as in the installation description. Maybe that file has changed in osc 2.3.3. Quote Link to comment Share on other sites More sharing options...
Flotec Posted August 24, 2012 Share Posted August 24, 2012 Sorry there was a small misstake in admin/includes/colums_left.php. Now I can see the headet tags box. However there where some strange things in admin/manufacturers.php file when I made the installation. Has anyone else with osc 2.3.3 had the same experience? Quote Link to comment Share on other sites More sharing options...
Jack_mcs Posted August 24, 2012 Author Share Posted August 24, 2012 In need of some help. I have had the header tags installed for awhile but the feature to make unique tags isnt working everything is just the default tag any ideas what could be wrong? That's usually due to the checkbox settings in Page Control. There are examples and images in the package to help with that. Quote Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons Link to comment Share on other sites More sharing options...
supermario Posted August 28, 2012 Share Posted August 28, 2012 Okay, need some help. I was given a new site to look at today and it was coded by someone who did not know what they were doing. It still uses the Header Tags SEO v3.2.5 and the Currently Viewing shows the item title, like it should but the Title of the page is showing a URL. Any suggestions on what the hell is wrong? I did download the v3.2.5 full install contrib and going line by line but almost everything matches. Making me go crazy. Oh and there is no backups SMH! I do have the same problem, but using V3.2.8 Please help us. Many regards, Mario Quote Link to comment Share on other sites More sharing options...
Jack_mcs Posted August 28, 2012 Author Share Posted August 28, 2012 I do have the same problem, but using V3.2.8 Please help us. Many regards, Mario If you have ran fill tags then it must be some mistake in your installation. You should make sure the text function runs without errors and check the title in the product or category (you don't say which) to make sure there are entries. Quote Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons 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.