Jack_mcs Posted May 23, 2007 Share Posted May 23, 2007 I have done everything suggested. But it doesnt work still :(All I can suggest is that you create a blank test shop and install it into there. Once that is working, you can compare the difference to find the problem. Jack 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 May 23, 2007 Share Posted May 23, 2007 Hello. I am using HTC with STS and everything works fine. But if I try to use the databes inserts for the product description, it shows the standard entries made in the admin. Set permissions correctly to 777 to all necessary files. I checked everything in this forum but I find no solution. can somebody help ? (my version is osCommerce MS 2.2)thanks a lot :) Try replacing your admin/categories.php file with the included one to see if it works. Jack 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...
hvejsel Posted May 23, 2007 Share Posted May 23, 2007 I need some help, i would like my header title tags on the product_info.php page to be in the following format. productname - Made4men.dk - Buy -Productname - here Can anyone help me with this? Quote Link to comment Share on other sites More sharing options...
gaus Posted May 23, 2007 Share Posted May 23, 2007 (edited) Find this line in the includes/header_tags.php file$the_product_info = tep_db_fetch_array($the_product_info_query); and place this under it echo 'Product name '. $the_product_info['products_name'].'<br>Title name '. $the_product_info['products_head_title_tag'].'<br>'; Is anything displayed on the screen? Jack Jack, I have added the code. Nothing is displayed besides the words, 'Product name' and 'Title name'. This is why I am thinking that there is a problem with the database query/variable assignment. I'm no PHP wizard, but that's my feeling after trying to echo these variables from various points in the code. I have re-installed, re-uploaded categories.php, looked through this forum, ran fill tags, looked at my database through phpMyAdmin and from there I can see the fields in products_description are populated with the info I entered via the Admin/Catalog interface when adding products. This is a heavily modifed site running STS which was installed with the STS and HTC combined contrib. I have double-checked all the find/replace instructions and cannot find any discrepancies. Here is the code* that is right above the code you have had me add, this is the database query which should end up in having the variables $the_product_info['products_head_title_tag'] echoed. Strangely, nothing is displayed except the <title> of the page does display the exact title phrase that I have configured in the header_tags.php file (includes/languages/english/header_tags.php). I have a good understanding of the HT** switches, etc.. and have configured the setup to work to the best of my understanding but no luck. Code* (includes/header_tags.php): // PRODUCT_INFO.PHP case ( strstr($_SERVER['PHP_SELF'],FILENAME_PRODUCT_INFO) or strstr($PHP_SELF,FILENAME_PRODUCT_INFO) ): // $the_product_info_query = tep_db_query("select p.products_id, pd.products_name, pd.products_description, pd.products_head_title_tag, pd.products_head_keywords_tag, pd.products_head_desc_tag, p.products_model, p.products_quantity, p.products_image, pd.products_url, p.products_price, p.products_tax_class_id, p.products_date_added, p.products_date_available, p.manufacturers_id from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_id = '" . $HTTP_GET_VARS['products_id'] . "' and pd.products_id = '" . $HTTP_GET_VARS['products_id'] . "'"); $the_product_info_query = tep_db_query("select pd.language_id, p.products_id, pd.products_name, pd.products_description, pd.products_head_title_tag, pd.products_head_keywords_tag, pd.products_head_desc_tag, p.products_model, p.products_quantity, p.products_image, pd.products_url, p.products_price, p.products_tax_class_id, p.products_date_added, p.products_date_available, p.manufacturers_id from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_id = '" . $HTTP_GET_VARS['products_id'] . "' and pd.products_id = '" . $HTTP_GET_VARS['products_id'] . "'" . " and pd.language_id ='" . $languages_id . "'"); I have uncommented the query code block on top, commenting instead the code block on the bottom to see if that had any effect and it did not. Not sure why there two blocks of query code, of which one is commented out. Thanks again, gaus here's a link to a product info page within my site if that helps out: http://www.choicepetproducts.com/product_i...products_id=485 Edited May 23, 2007 by gaus Quote Link to comment Share on other sites More sharing options...
dr.punk Posted May 23, 2007 Share Posted May 23, 2007 Try replacing your admin/categories.php file with the included one to see if it works. Jack yes, i´ve done this. the entries are there. but the sourcecode of my page shows the standard entries on every product, not the individual. find no solution... Quote Link to comment Share on other sites More sharing options...
Jack_mcs Posted May 24, 2007 Share Posted May 24, 2007 I need some help, i would like my header title tags on the product_info.php page to be in the following format. productname - Made4men.dk - Buy -Productname - here Can anyone help me with this? It's a mistake to do so but you would need to edit the product_info section in includes/header_tags.php. You will see strings that add the various parts to the url. Just insert the parts you want to add when you want them to appear and it should work for you. Jack 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 May 24, 2007 Share Posted May 24, 2007 Jack, I have added the code. Nothing is displayed besides the words, 'Product name' and 'Title name'. This is why I am thinking that there is a problem with the database query/variable assignment. I'm no PHP wizard, but that's my feeling after trying to echo these variables from various points in the code. I have re-installed, re-uploaded categories.php, looked through this forum, ran fill tags, looked at my database through phpMyAdmin and from there I can see the fields in products_description are populated with the info I entered via the Admin/Catalog interface when adding products. This is a heavily modifed site running STS which was installed with the STS and HTC combined contrib. I have double-checked all the find/replace instructions and cannot find any discrepancies. Here is the code* that is right above the code you have had me add, this is the database query which should end up in having the variables $the_product_info['products_head_title_tag'] echoed. Strangely, nothing is displayed except the <title> of the page does display the exact title phrase that I have configured in the header_tags.php file (includes/languages/english/header_tags.php). I have a good understanding of the HT** switches, etc.. and have configured the setup to work to the best of my understanding but no luck. Code* (includes/header_tags.php): // PRODUCT_INFO.PHP case ( strstr($_SERVER['PHP_SELF'],FILENAME_PRODUCT_INFO) or strstr($PHP_SELF,FILENAME_PRODUCT_INFO) ): // $the_product_info_query = tep_db_query("select p.products_id, pd.products_name, pd.products_description, pd.products_head_title_tag, pd.products_head_keywords_tag, pd.products_head_desc_tag, p.products_model, p.products_quantity, p.products_image, pd.products_url, p.products_price, p.products_tax_class_id, p.products_date_added, p.products_date_available, p.manufacturers_id from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_id = '" . $HTTP_GET_VARS['products_id'] . "' and pd.products_id = '" . $HTTP_GET_VARS['products_id'] . "'"); $the_product_info_query = tep_db_query("select pd.language_id, p.products_id, pd.products_name, pd.products_description, pd.products_head_title_tag, pd.products_head_keywords_tag, pd.products_head_desc_tag, p.products_model, p.products_quantity, p.products_image, pd.products_url, p.products_price, p.products_tax_class_id, p.products_date_added, p.products_date_available, p.manufacturers_id from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_id = '" . $HTTP_GET_VARS['products_id'] . "' and pd.products_id = '" . $HTTP_GET_VARS['products_id'] . "'" . " and pd.language_id ='" . $languages_id . "'"); I have uncommented the query code block on top, commenting instead the code block on the bottom to see if that had any effect and it did not. Not sure why there two blocks of query code, of which one is commented out. Thanks again, gaus here's a link to a product info page within my site if that helps out: http://www.choicepetproducts.com/product_i...products_id=485 The code for reading the database is standard oscommerce code so I can't explain why it is not working. If the data are in the database but the code is not extracting that data then I am at a loss as to what that might be. It would require hands-on troubleshooting, at least for me, to find the problem. Maybe someone else can see something I am missing. Jack 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 May 24, 2007 Share Posted May 24, 2007 yes, i´ve done this. the entries are there. but the sourcecode of my page shows the standard entries on every product, not the individual. find no solution...I seem to recall someone else having this problem. I believe they had edited the includes/header_tags.php and/or english/header_tags.php files. I suggest replacing those with the stock ones to see if the code works properly. Jack 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...
chinaecart Posted May 24, 2007 Share Posted May 24, 2007 I have problem in installing header tags controller, please help! The product display page is abnormal, there must be something wrong with one page, but which page possibly be the problem is, please take a look at the single product display page at: http://chinatopwholesale.com/product_info....;products_id=29 footer is not in right place, and column left is neither. Quote Link to comment Share on other sites More sharing options...
Guest Posted May 24, 2007 Share Posted May 24, 2007 HI I have installed the 2.6.3 Version to my store. But I get an error when I want to go to the Catalog directory: Parse error: parse error in D:\Firma\apachefriends\xampp\htdocs\admin\categories.php on line 1102 whats on this line: case 'edit_category': a little bit larger of the code: // HTC EOC } $contents[] = array('text' => '<br>' . TEXT_CATEGORIES_NAME . $category_inputs_string); $contents[] = array('text' => '<br>' . TEXT_CATEGORIES_IMAGE . '<br>' . tep_draw_file_field('categories_image')); $contents[] = array('text' => '<br>' . TEXT_SORT_ORDER . '<br>' . tep_draw_input_field('sort_order', '', 'size="2"')); // HTC BOC $contents[] = array('text' => '<br>' . 'Header Tags Category Title' . $category_htc_title_string); $contents[] = array('text' => '<br>' . 'Header Tags Category Description' . $category_htc_desc_string); $contents[] = array('text' => '<br>' . 'Header Tags Category Keywords' . $category_htc_keywords_string); $contents[] = array('text' => '<br>' . 'Header Tags Categories Description' . $category_htc_description_string); // HTC EOC $contents[] = array('align' => 'center', 'text' => '<br>' . tep_image_submit('button_save.gif', IMAGE_SAVE) . ' <a href="' . tep_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath) . '">' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>'); break; case 'edit_category': $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_EDIT_CATEGORY . '</b>'); $contents = array('form' => tep_draw_form('categories', FILENAME_CATEGORIES, 'action=update_category&cPath=' . $cPath, 'post', 'enctype="multipart/form-data"') . tep_draw_hidden_field('categories_id', $cInfo->categories_id)); $contents[] = array('text' => TEXT_EDIT_INTRO); $category_inputs_string = ''; $languages = tep_get_languages(); for ($i = 0, $n = sizeof($languages); $i < $n; $i++) { $category_inputs_string .= '<br>' . tep_image(DIR_WS_CATALOG_LANGUAGES . $languages[$i]['directory'] . '/images/' . $languages[$i]['image'], $languages[$i]['name']) . ' ' . tep_draw_input_field('categories_name[' . $languages[$i]['id'] . ']', tep_get_category_name($cInfo->categories_id, $languages[$i]['id'])); // HTC BOC $category_htc_title_string .= '<br>' . tep_image(DIR_WS_CATALOG_LANGUAGES . $languages[$i]['directory'] . '/images/' . $languages[$i]['image'], $languages[$i]['name']) . ' ' . tep_draw_input_field('categories_htc_title_tag[' . $languages[$i]['id'] . ']', tep_get_category_htc_title($cInfo->categories_id, $languages[$i]['id'])); $category_htc_desc_string .= '<br>' . tep_image(DIR_WS_CATALOG_LANGUAGES . $languages[$i]['directory'] . '/images/' . $languages[$i]['image'], $languages[$i]['name']) . ' ' . tep_draw_input_field('categories_htc_desc_tag[' . $languages[$i]['id'] . ']', tep_get_category_htc_desc($cInfo->categories_id, $languages[$i]['id'])); $category_htc_keywords_string .= '<br>' . tep_image(DIR_WS_CATALOG_LANGUAGES . $languages[$i]['directory'] . '/images/' . $languages[$i]['image'], $languages[$i]['name']) . ' ' . tep_draw_input_field('categories_htc_keywords_tag[' . $languages[$i]['id'] . ']', tep_get_category_htc_keywords($cInfo->categories_id, $languages[$i]['id'])); $category_htc_description_string .= '<br>' . tep_image(DIR_WS_CATALOG_LANGUAGES . $languages[$i]['directory'] . '/images/' . $languages[$i]['image'], $languages[$i]['name']) . ' ' . tep_draw_textarea_field('categories_htc_description[' . $languages[$i]['id'] . ']', 'hard', 30, 5, tep_get_category_htc_description($cInfo->categories_id, $languages[$i]['id'])); // HTC EOC hope you can help me. Quote Link to comment Share on other sites More sharing options...
Jack_mcs Posted May 24, 2007 Share Posted May 24, 2007 I have problem in installing header tags controller, please help! The product display page is abnormal, there must be something wrong with one page, but which page possibly be the problem is, please take a look at the single product display page at: http://chinatopwholesale.com/product_info....;products_id=29 footer is not in right place, and column left is neither. I don't see anything wrong with the page. If the problem is still there, please explain in more detail what is wrong. Jack 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 May 24, 2007 Share Posted May 24, 2007 HI I have installed the 2.6.3 Version to my store. But I get an error when I want to go to the Catalog directory:Parse error: parse error in D:\Firma\apachefriends\xampp\htdocs\admin\categories.php on line 1102 whats on this line: case 'edit_category': a little bit larger of the code: hope you can help me. It doesn'e do any any good to post the HTC code since it works. Any error you get in the catagories page is due to an error in the install. Try replacing your categories.php file with the one from the archive to see that it works. Then compare yours to it. Jack 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...
warrenerjm Posted May 25, 2007 Share Posted May 25, 2007 Hi Jack I'm not stalking you honest. :lol: I have fixed my other "problem" partially (thank you) & was about to do your update from 2.6.2 to 2.6.3 when I got an email saying : I have just noticed your website homepage meta description:- <meta name="Description" content="HEAD_DESC_TAG_DEFAULT Card making & Scrapbooking Supplies" / > You might want to remove the "HEAD_DESC_TAG_DEFAULT" within the description content. I can't see anything in admin, or on my tabs, so I'm lost as to where this relates to. How do you check it is working, as I was looking at what the tab was generating for each page I go to. It changes & says the manufacturer etc. I am reluctant to do the upgrade if i need to correct something from 2.6.2 that I did wrong first. Alternatively this is sorted in the update. I did find another pages code always coming up, so I deleted that page. It's never ending checking & keeping these contributions up to date, so I can't imagine how it is for you. :blink: I promise to try & do Ultimate URL's SEO AFTER I have sorted out this one, oh & an "unable to determine the page" in dynamic sitemap (I think I know how to do that one :lol: ) Thanks AGAIN Julie Quote Link to comment Share on other sites More sharing options...
Jack_mcs Posted May 26, 2007 Share Posted May 26, 2007 Hi Jack I'm not stalking you honest. :lol: I have fixed my other "problem" partially (thank you) & was about to do your update from 2.6.2 to 2.6.3 when I got an email saying : I can't see anything in admin, or on my tabs, so I'm lost as to where this relates to. How do you check it is working, as I was looking at what the tab was generating for each page I go to. It changes & says the manufacturer etc. I am reluctant to do the upgrade if i need to correct something from 2.6.2 that I did wrong first. Alternatively this is sorted in the update. I did find another pages code always coming up, so I deleted that page. It's never ending checking & keeping these contributions up to date, so I can't imagine how it is for you. :blink: I promise to try & do Ultimate URL's SEO AFTER I have sorted out this one, oh & an "unable to determine the page" in dynamic sitemap (I think I know how to do that one :lol: ) Thanks AGAIN Julie Sorry for the delay in responding. I had to make a quick call to the police. :) Can't be too careful nowadays. Next thing I know you'll be asking to meet me in some seedy hotel room (well, one can dream. :D ) Anyway, when you see capital letters like that, HEAD_DESC_TAG_DEFAULT, it means a definition is missing or the code on the page can't find it. I doubt it is the first, although it could be. You will need to view the source of several pages to see if that is showing up. If it is, or even if it is just for the one page, it is almost definately the includes/header_tags.php and/or english/header_tags.php. You might want to try replacing those with the originals as a quick test. Jack 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...
warrenerjm Posted May 26, 2007 Share Posted May 26, 2007 Sorry for the delay in responding. I had to make a quick call to the police. :) Can't be too careful nowadays. Next thing I know you'll be asking to meet me in some seedy hotel room (well, one can dream. :D ) :blush: :blush: :blush: ;) Anyway, when you see capital letters like that, HEAD_DESC_TAG_DEFAULT, it means a definition is missing or the code on the page can't find it. I doubt it is the first, although it could be. You will need to view the source of several pages to see if that is showing up. If it is, or even if it is just for the one page, it is almost definately the includes/header_tags.php and/or english/header_tags.php. You might want to try replacing those with the originals as a quick test. Jack Right...I have looked at the includes/languages/english/header_tags.php & think this is where the problem is? <_< I did notice that a page description kept coming up in searches even though it wasn't what was being searched. So I deleted that page from being included in the header tags. :-" Looking closely at this file I can see that new pages are being added, but occasionally the new set of codes for this page is being inserted between the last code & second to last code. ie not after the last code. >_< // index.php define('HTTA_DEFAULT_ON','0'); // Include HEAD_TITLE_TAG_ALL in Title define('HTKA_DEFAULT_ON','1'); // Include HEAD_KEY_TAG_ALL in Keywords define('HTDA_DEFAULT_ON','0'); // Include HEAD_DESC_TAG_ALL in Description define('HTTA_CAT_DEFAULT_ON', '1'); //Include HEADER_TITLE_DEFAULT in CATEGORY DISPLAY define('HEAD_TITLE_TAG_DEFAULT', 'xxxx'); // paper_sizes.php define('HTTA_NEW_PAGE_ON','1'); define('HTDA_NEW_PAGE_ON','0'); define('HTKA_NEW_PAGE_ON','1'); define('HEAD_TITLE_TAG_NEW_PAGE,'Blah Blah'); define('HEAD_DESC_TAG_NEW_PAGE,'Blah Blah'); define('HEAD_KEY_TAG_NEW_PAGE,'Blah Blah'); define('HEAD_KEY_TAG_DEFAULT','Blah Blah same as above & not xxx'); The define('HEAD_DESC_TAG_DEFAULT', 'xxxx'); was in the page I deleted as has happened above. Should read: // index.php define('HTTA_DEFAULT_ON','0'); // Include HEAD_TITLE_TAG_ALL in Title define('HTKA_DEFAULT_ON','1'); // Include HEAD_KEY_TAG_ALL in Keywords define('HTDA_DEFAULT_ON','0'); // Include HEAD_DESC_TAG_ALL in Description define('HTTA_CAT_DEFAULT_ON', '1'); //Include HEADER_TITLE_DEFAULT in CATEGORY DISPLAY define('HEAD_TITLE_TAG_DEFAULT', 'xxxx'); define('HEAD_DESC_TAG_DEFAULT','xxxx'); define('HEAD_KEY_TAG_DEFAULT','xxxx'); // paper_sizes.php define('HTTA_NEW_PAGE_ON','1'); define('HTDA_NEW_PAGE_ON','0'); define('HTKA_NEW_PAGE_ON','1'); define('HEAD_TITLE_TAG_NEW_PAGE,'Blah Blah'); define('HEAD_DESC_TAG_NEW_PAGE,'Blah Blah'); define('HEAD_KEY_TAG_NEW_PAGE,'Blah Blah'); This hasn't happened on all new pages, only on 5 Will the 2.6.2 to 2.6.3 update fix this? Do I need to replace this page again with the original before I do the update or will it rewrite it's self? I am assuming that this is only showing the results of a coding problem elsewhere & just cutting & pasting the misplaced code in this file will not solve the problem. I can see the problem (at least) but don't understand the cause or fix, as I just follow :lol: Baaaaa Hope you can enlighten me. Thank you. Julie Quote Link to comment Share on other sites More sharing options...
warrenerjm Posted May 26, 2007 Share Posted May 26, 2007 OK Jack Your post 3673 & rwest post 3674 & post 3675 has amendments to fix this. :-" I made these amendments to admin/header_tags_controller.php & then pressed update in the text control page, but the code in includes/languages/english/header_tags.php hasn't changed. Am I supposed to do something else for this to work? If I upload the 2.6.2 includes/languages/english/header_tags.php & then press update in admin>header tags>text control will it make that page correct AND with all my existing pages & text? Or will it wipe it all & I need to start again? Thanks Julie Quote Link to comment Share on other sites More sharing options...
warrenerjm Posted May 26, 2007 Share Posted May 26, 2007 OK Jack Your post 3673 & rwest post 3674 & post 3675 has amendments to fix this. :-" I made these amendments to admin/header_tags_controller.php & then pressed update in the text control page, but the code in includes/languages/english/header_tags.php hasn't changed. Am I supposed to do something else for this to work? If I upload the 2.6.2 includes/languages/english/header_tags.php & then press update in admin>header tags>text control will it make that page correct AND with all my existing pages & text? Or will it wipe it all & I need to start again? Thanks Julie It DOES wipe it all, but I'm not too worried as I was going to re-word them anyhow :P The code does work for me too, as I have just added a page & the includes/languages/english/header_tags.php has amended beautifully maintaining all the necessary blank lines. Thank you to both of you :thumbsup: Julie Quote Link to comment Share on other sites More sharing options...
warrenerjm Posted May 26, 2007 Share Posted May 26, 2007 (edited) Hi I have a problem that I can't fathom :angry: I have been addingthe pages back in by going to Admin>Header Tags>Page Control Here I update the Check Missing Pages & pick one I want to add. Then I go to Add a new page & fill in the details. All has been working well until the last page? :blink: When I do this I get the following warning at the top of each of my sites pages // stamping_tips.php define('HTTA_STAMPING_TIPS_ON','1'); define('HTDA_STAMPING_TIPS_ON','1'); define('HTKA_STAMPING_TIPS_ON','1'); define('HEAD_TITLE_TAG_STAMPING_TIPS','Rubber Stamping Hints & Tips|'); define('HEAD_DESC_TAG_STAMPING_TIPS','Try out some of our Rubber Stamping hints & tips for better results on your craft projects.'); define('HEAD_KEY_TAG_STAMPING_TIPS','rubber stamping,hints,tips,craft projects'); There was no entry in the Text Control page or in the "Check missing Pages" or in the "deletea new page" I manually amended the includes/languages/english/header_tags.php which did put it on the Text Control page in black. I even uploaded a new root page file & admin/header_tags.php but I still have the warning. Please help. :'( What have I missed? Thanks Julie PS OK I have just deleted the page, & the message has gone, BUT dare I try it again, or am I missing something wrong with this file? Edited May 26, 2007 by warrenerjm Quote Link to comment Share on other sites More sharing options...
warrenerjm Posted May 26, 2007 Share Posted May 26, 2007 PS OK I have just deleted the page, & the message has gone, BUT dare I try it again, or am I missing something wrong with this file? I don't know why it happens to me :angry: I tried to add another page that is showing in the "check missing pages" (which I had before the fix) & IT DID IT AGAIN! How can admin>header tags controller>add a new page be working & then without ANY code changes stop working? I have 4 pages left to do, but I am leaving them this time. Do you think I should upgrade from 2.6.2 to 2.6.3 Jack. It might fix the blip or do you have any other insight into what might have caused it to suddenly do this please? It never just runs smoothly does it? :( Thanks Julie Quote Link to comment Share on other sites More sharing options...
warrenerjm Posted May 26, 2007 Share Posted May 26, 2007 :'( Product_info pages & categories were working before this & now only show default. Another day wasted. this is sole destroying. Quote Link to comment Share on other sites More sharing options...
Jack_mcs Posted May 26, 2007 Share Posted May 26, 2007 There is an apparent bug in the code that only affects certain sites for some reason (I can't reproduce it). The problem is as you mentioned above where the new page data is not inserted correctly into the english/header_tags.php file. You need to check that file and see if that has happened again. If it has, then you will have to add the code by hand. Jack 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...
warrenerjm Posted May 26, 2007 Share Posted May 26, 2007 There is an apparent bug in the code that only affects certain sites for some reason (I can't reproduce it). The problem is as you mentioned above where the new page data is not inserted correctly into the english/header_tags.php file. You need to check that file and see if that has happened again. If it has, then you will have to add the code by hand. Jack I've lost other parts too, like products_info? When I first made the changes as described it was putting them into the inc/lang/eng/header_tags.php fine. Even now it has the correct spaces & no insertions of code in the wrong places. After about 6-7 pages it threw a wobbly. Since then I have noticed the products & categories are not showing as they were but only the default. I have loads of differences in the includes/header_tags.php but I have got so confused that I am not sure what to do next. I don't think this file is right, but I can't say what. The big gaps of missing code for the produt_info, allproducts, allmanufacturers etc might be a dead give away. I'm thinking that the 2.6.3 update might help? Upload the following: admin/header_tags_controller.php admin/header_tags_english.php admin/includes/boxes/header_tags_controller.php Shall I use the "for new shops" includes/header_tags.php & upload that instead of making the changes to mine, as I'm not sure mine is right? As this doesn't touch the inc/lang/eng/header_tags.php my new descriptions should stay. If it doesn't resolve itself I can manually add the missing code, but it didn't make the error message go away from the top of the site when I did this last time. I would gratefully appreciate your plan of attach for this, so I don't just completely break my shop & have a nervous breakdown! Thanks Julie Quote Link to comment Share on other sites More sharing options...
warrenerjm Posted May 26, 2007 Share Posted May 26, 2007 Jack I have just compared the brand new inc/header_tags.php & mine :o OK This is the same: <?php /* /catalog/includes/header_tags.php Add META TAGS and Modify TITLE */ require(DIR_WS_LANGUAGES . $language . '/' . 'header_tags.php'); $tags_array = array(); // Define specific settings per page: switch (true) { & then blank until // about_us.php case (strstr($_SERVER['PHP_SELF'],FILENAME_ABOUT_US) or strstr($PHP_SELF, FILENAME_ABOUT_US) ): $tags_array = tep_header_tag_page(HTTA_ABOUT_US_ON, HEAD_TITLE_TAG_ABOUT_US, HTDA_ABOUT_US_ON, HEAD_DESC_TAG_ABOUT_US, HTKA_ABOUT_US_ON, HEAD_KEY_TAG_ABOUT_US ); break; & then I have code like: // allmanufacturers.php case (strstr($_SERVER['PHP_SELF'],FILENAME_ALLMANUFACTURERS) or strstr($PHP_SELF, FILENAME_ALLMANUFACTURERS)); $tags_array = tep_header_tag_page(HTTA_ALLMANUFACTURERS_ON, HEAD_TITLE_TAG_ALLMANUFACTURERS, HTDA_ALLMANUFACTURERS_ON, HEAD_DESC_TAG_ALLMANUFACTURERS, HTKA_ALLMANUFACTURERS_ON, HEAD_KEY_TAG_ALLMANUFACTURERS ); break; // embellishments_tips.php case (strstr($_SERVER['PHP_SELF'],FILENAME_EMBELLISHMENTS_TIPS) or strstr($PHP_SELF, FILENAME_EMBELLISHMENTS_TIPS)); $tags_array = tep_header_tag_page(HTTA_EMBELLISHMENTS_TIPS_ON, HEAD_TITLE_TAG_EMBELLISHMENTS_TIPS, HTDA_EMBELLISHMENTS_TIPS_ON, HEAD_DESC_TAG_EMBELLISHMENTS_TIPS, HTKA_EMBELLISHMENTS_TIPS_ON, HEAD_KEY_TAG_EMBELLISHMENTS_TIPS ); break; // gallery.php case (strstr($_SERVER['PHP_SELF'],FILENAME_GALLERY) or strstr($PHP_SELF, FILENAME_GALLERY)); $tags_array = tep_header_tag_page(HTTA_GALLERY_ON, HEAD_TITLE_TAG_GALLERY, HTDA_GALLERY_ON, HEAD_DESC_TAG_GALLERY, HTKA_GALLERY_ON, HEAD_KEY_TAG_GALLERY ); break; etc for all my added pages. Do I need all this code together, or is my code not supposed to be there? End is the same: // ALL OTHER PAGES NOT DEFINED ABOVE default: $tags_array['desc'] = HEAD_DESC_TAG_ALL; $tags_array['keywords'] = HEAD_KEY_TAG_ALL; $tags_array['title'] = HEAD_TITLE_TAG_ALL; break; } echo ' <title>' . $tags_array['title'] . '</title>' . "\n"; echo ' <meta name="Description" content="' . $tags_array['desc'] . '" />' . "\n"; echo ' <meta name="Keywords" content="' . $tags_array['keywords'] . '" />' . "\n"; echo ' <meta name="robots" content="noodp" />' . "\n"; echo ' <meta http-equiv="Content-Type" content="text/html; charset=' . CHARSET . '" />'."\n"; //NOTE: If you want your email add to your source code, remove the two slashes on the //following line of code. This serves no useful purpose and is not suggested tobe used //echo ' <meta name="Reply-to" content="' . HEAD_REPLY_TAG_ALL . '"/>' . "\n"; echo '<!-- EOF: Generated Meta Tags -->' . "\n"; ?> Does this mean any thing to you? :huh: Thanks for your help AGAIN! I just wish it wasn't always me. :D Julie Quote Link to comment Share on other sites More sharing options...
Jack_mcs Posted May 26, 2007 Share Posted May 26, 2007 The includes/header_tags.php and english/header_tags.php files have to match. You can't just replace one if there have been changes made. I suggest replacing all of the files in the new shop directory and see what happens. Changing the admin files won't matter since those are not changed by anything you do. Changing the ones in the shop will cause you to lose some of your changes but they are easily replaced so it would be worth the try. Jack 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...
warrenerjm Posted May 26, 2007 Share Posted May 26, 2007 The includes/header_tags.php and english/header_tags.php files have to match. You can't just replace one if there have been changes made. I don't get what you mean sorry? If I was just upgrading then the english/header_tags.php would remain the same & I would amend the includes/header_tags.php for the new bits & replace all the original code that I have somehow managed to lose from this file? I suggest replacing all of the files in the new shop directory and see what happens. Just upload the files? ie I wouldn't have to redo all the amendments & database again as I should have them. Changing the admin files won't matter since those are not changed by anything you do. I was going to do these as I assume they are part of the reason for the update. Changing the ones in the shop will cause you to lose some of your changes but they are easily replaced so it would be worth the try.Jack I think the code suggestion has caused this. I would prefer a buggy (for my site anyhow) version that I just needed to check & manually change the english/header_tags.php rather than this . Thanks :( Julie Quote 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.