Rolex Posted May 1, 2009 Share Posted May 1, 2009 I get the error for the titles of all pages that are not listed. Warning: Division by zero in /home/watchco8/public_html/includes/header_tags.php on line 208 Don't work this code: / / ALL OTHER PAGES NOT DEFINED ABOVE default: $ header_tags_array [ 'title'] = tep_db_prepare_input ($ defaultTags [ 'default_title']); $ header_tags_array [ 'desc'] = tep_db_prepare_input ($ defaultTags [ 'default_description']); $ header_tags_array [ 'keywords'] = tep_db_prepare_input ($ defaultTags [' default_keywords']); break; ) Another error: If i press the test Test button in Admin see the following message: Database/File Mismatch Error: The number of file entries in the database (18) do not match the number in the includes/header_tags.php file (19). Help please ! Quote Link to comment Share on other sites More sharing options...
germ Posted May 1, 2009 Share Posted May 1, 2009 On this line: / / ALL OTHER PAGES NOT DEFINED ABOVE Remove the space between the two / at the beginning. It needs to be: // ALL OTHER PAGES NOT DEFINED ABOVE That'll fix the "division by zero" error. The other error I can't help with. Quote If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there > Link to comment Share on other sites More sharing options...
Rolex Posted May 2, 2009 Author Share Posted May 2, 2009 On this line: / / ALL OTHER PAGES NOT DEFINED ABOVE Remove the space between the two / at the beginning. It needs to be: // ALL OTHER PAGES NOT DEFINED ABOVE That'll fix the "division by zero" error. The other error I can't help with. Thanks, but I have written correctly, it's just a visual effect. Unfortunately did not help. Quote Link to comment Share on other sites More sharing options...
germ Posted May 2, 2009 Share Posted May 2, 2009 If you could possibly post the line in error, and 10 or 20 lines on each side, I'm sure someone can fix it. :huh: Quote If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there > Link to comment Share on other sites More sharing options...
Rolex Posted May 7, 2009 Author Share Posted May 7, 2009 Hello ! I found the bug. Have removed this: / / Index.php case (strstr ($ _SERVER [ 'PHP_SELF'], FILENAME_ / INDEX) or strstr ($ PHP_SELF, FILENAME_ / INDEX)): $ header_tags_array = tep_header_tag_page (FILENAME_ / INDEX); break; This was mistakenly written twice. 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.