Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

OMG Parse error: syntax error, unexpected T_DNUMBER


knifeman

Recommended Posts

Posted

Well I did it now. I went into application_top to comment out the "top" line of my breadcrumd and now I have an error:

Parse error: syntax error, unexpected T_DNUMBER in /home/prankit/public_html/includes/application_top.php on line 233

I uploaded a backup and still the same error. Does anyone have a clue for me? I googled the error, but nothing seems to fit. Is this a problem with another file? Because I tried my backup file and a couple from other sites and get the same error every time.

 

Thanks for looking,

Tim

 

Here is the code from that area just in case

// verify the ssl_session_id if the feature is enabled

if ( ($request_type == 'SSL') && (SESSION_CHECK_SSL_SESSION_ID == 'True') && (ENABLE_SSL == true) && ($session_started == true) ) {

$ssl_session_id = getenv('SSL_SESSION_ID');

if (!tep_session_is_registered('SSL_SESSION_ID')) {

$SESSION_SSL_ID = $ssl_session_id;

tep_session_register('SESSION_SSL_ID');

}

 

if ($SESSION_SSL_ID != $ssl_session_id) {

tep_session_destroy();

tep_redirect(tep_href_link(FILENAME_SSL_CHECK));

}

}

Posted

I am looking at my includes/application_top and it keeps changing.

The code I pasted above reverts to this

// verify the IP address if the feature is enabled
 if (SESSION_CHECK_IP_ADDRESS == 'True') {
72.29.121.169_address = tep_get_ip_address();
if (!tep_session_is_registered('SESSION_IP_ADDRESS')) {
  $SESSION_IP_ADDRESS = $ip_address;
  tep_session_register('SESSION_IP_ADDRESS');
}

if ($SESSION_IP_ADDRESS != $ip_address) {
  tep_session_destroy();
  tep_redirect(tep_href_link(FILENAME_LOGIN));
}
 }

As soon as I save it without the IP numbers.

Posted

Just for information, I found my problem. I was using the file manager that comes with Cpanel. I NEVER had any problems editing my files this way. Today, if I edit application_top, then an IP address is inserted into this section when I save the file. I uploaded my backup via ftp and it now works properly.

 

I suppose this begs the question: Is this just a quirk with Cpanel file manager, or is there something maliscious going on. I have edited this file many times in the past and never had this problem

 

Tim

  • 7 months later...
Posted

Just wanted to say thanks for posting this fix. I was having the same problem and going out of my mind. Phew.

:)

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...