Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Err msg continued


Terry_dZi

Recommended Posts

While trying to fix the previous problem I've encountered this issue. Any ideas?

 

Parse error: parse error in /home/dzi_web/public_html/includes/functions/general.php on line 20

 

Fatal error: Call to undefined function: tep_not_null() in /home/dzi_web/public_html/includes/functions/html_output.php on line 23

Link to comment
Share on other sites

Post lines 17 to 23 of includes/functions/general.php

No longer giving free advice. Please place deposit in meter slot provided.  Individual: [=] SME: [==] Corporation: [===]
If deposit does not fit one of the slots provided then you are asking too much! :P

Is your Osc dated try Phoenix  raising oscommerce from the ashes.

Link to comment
Share on other sites

Here it is I thanks for taking a look.

 

// Stop from parsing any further PHP code

function tep_exit() {

tep_session_close();

exit();

}

 

////

// Redirect to another page or site

function tep_redirect($url) {

if ( (ENABLE_SSL == true) & amp;amp;amp;& (getenv('HTTPS') == 'on') ) { // We are loading an SSL page

if (substr($url, 0, strlen(HTTP_SERVER)) == HTTP_SERVER) { // NONSSL url

$url = HTTPS_SERVER . substr($url, strlen(HTTP_SERVER)); // Change it to SSL

}

}

 

header('Location: ' . $url);

tep_exit();

 

}

 

////

// Error message wrapper

// When optional parameters are provided, it closes the application

// (ie, halts the current application execution task)

function tep_error_message($error_message, $close_application = false, $close_application_error = '') {

echo $error_message;

 

if ($close_application == true) {

die($close_application_error);

}

}

Link to comment
Share on other sites

Someone has been using the online file manager.

 

How do I know this?

 

The tell tale signs of corruption are evident

////
// Redirect to another page or site
function tep_redirect($url) {
if ( (ENABLE_SSL == true) & amp;amp;amp;& (getenv('HTTPS') == 'on') ) { // We are loading an SSL page
if (substr($url, 0, strlen(HTTP_SERVER)) == HTTP_SERVER) { // NONSSL url
$url = HTTPS_SERVER . substr($url, strlen(HTTP_SERVER)); // Change it to SSL
}
}

 

This should be

////
// Redirect to another page or site
?function tep_redirect($url) {
? ?if ( (ENABLE_SSL == true) && (getenv('HTTPS') == 'on') ) { // We are loading an SSL page
? ? ?if (substr($url, 0, strlen(HTTP_SERVER)) == HTTP_SERVER) { // NONSSL url
? ? ? ?$url = HTTPS_SERVER . substr($url, strlen(HTTP_SERVER)); // Change it to SSL
? ? ?}
? ?}

 

Notice how the File has been corrupted by &amp

 

You may have more issues in this file.

If you have a backup then upload a fresh copy of the file and keep away from the online file manager as there are some known issues with using it, it is better to use an ftp program such as ws_ftp to download a file and edit offline then upload to the server thus avoiding any online file manager issues

No longer giving free advice. Please place deposit in meter slot provided.  Individual: [=] SME: [==] Corporation: [===]
If deposit does not fit one of the slots provided then you are asking too much! :P

Is your Osc dated try Phoenix  raising oscommerce from the ashes.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...