Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Not working default Title for OTHER NOT DEFINED, PAGES


Rolex

Recommended Posts

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 !

Link to comment
Share on other sites

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.

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

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.

Link to comment
Share on other sites

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:

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

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...