Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Parse error line 159


Guest

Recommended Posts

After installing Header tags SEO from Header tags 2.6.2 up to Header tags SEO version 3.0.9 I have the following Parse error on the home page.

Your help is higly appreciated

Rene

 

 

Parse error: syntax error, unexpected T_CASE in /www/t/u/b/tube-fidelity.com/public_html/includes/header_tags.php on line 159

 

 

public_html/includes/header_tags.php

 

if ($insertPoint == 0)

$insertPoint = $idx;

}

 

// advanced_search_result.php

case (strstr($_SERVER['PHP_SELF'],FILENAME_ADVANCED_SEARCH_RESULT) or strstr($PHP_SELF,FILENAME_ADVANCED_SEARCH_RESULT)): Line 159

$header_tags_array = tep_header_tag_page(FILENAME_ADVANCED_SEARCH_RESULT);

break;

 

// advanced_search.php

case (strstr($_SERVER['PHP_SELF'],FILENAME_ADVANCED_SEARCH) or strstr($PHP_SELF,FILENAME_ADVANCED_SEARCH)):

$header_tags_array = tep_header_tag_page(FILENAME_ADVANCED_SEARCH);

break;

Link to comment
Share on other sites

case (strstr($_SERVER['PHP_SELF'],FILENAME_ADVANCED_SEARCH_RESULT) or strstr($PHP_SELF,FILENAME_ADVANCED_SEARCH_RESULT)): Line 159

 

replace with $page = strstr($PHP_SELF,FILENAME_ADVANCED_SEARCH_RESULT));

 

and echo $page.

 

case $page:

 

and chek this might clear or help in analysing further.

 

Satish

Ask/Skype for Free osCommerce value addon/SEO suggestion tips for your site.

 

Check My About US For who am I and what My company does.

Link to comment
Share on other sites

case (strstr($_SERVER['PHP_SELF'],FILENAME_ADVANCED_SEARCH_RESULT) or strstr($PHP_SELF,FILENAME_ADVANCED_SEARCH_RESULT)): Line 159

 

replace with $page = strstr($PHP_SELF,FILENAME_ADVANCED_SEARCH_RESULT));

 

and echo $page.

 

case $page:

 

and chek this might clear or help in analysing further.

 

Satish

 

Thank you very much for your help.

I now have the following error:

 

Fatal error: Call to undefined function tep_get_defined_content() in /www/t/u/b/tube-fidelity.com/public_html/includes/header.php on line 61

 

</table>

<table border="0" width="100%" cellspacing="0" cellpadding="1">

<tr class="headerNavigation">

<td align="right" class="headerNavigation"><a href="java script:window.external.AddFavorite(location.href,document.title);" class="headerNavigation"><?php echo BOX_HEADER_ADDFAVORITE; ?></a>  </td>

</tr>

<?php echo tep_get_defined_content('Page Header'); ?> Line 61

<table border="0" width="100%" cellspacing="0" cellpadding="1">

<tr class="headerNavigation">

<td class="headerNavigation">  <?php echo $breadcrumb->trail(' » '); ?></td>

<td align="right" class="headerNavigation"> | 

Link to comment
Share on other sites

<?php echo tep_get_defined_content('Page Header'); ?>

 

chek that You have this tep_get_defined_content function included.

 

One of Your contribution has this.

 

Satish

Ask/Skype for Free osCommerce value addon/SEO suggestion tips for your site.

 

Check My About US For who am I and what My company does.

Link to comment
Share on other sites

<?php echo tep_get_defined_content('Page Header'); ?>

 

chek that You have this tep_get_defined_content function included.

 

One of Your contribution has this.

 

Satish

Dear Satish,

Thank you for your information. De you mean by your answer that I should have

installed a contribution where a file called Page Header is included?

 

Rene

Link to comment
Share on other sites

Dear Satish,

Thank you for your information. De you mean by your answer that I should have

installed a contribution where a file called Page Header is included?

 

Rene

 

I have deleted line 61 from public_html/includes/header.php

It now seem to work fine.

I hope it is the solution

Rene

 

<?php echo tep_get_defined_content('Page Header'); ?> Line 61

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...