Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Fatal Error


viragovisions

Recommended Posts

Posted

(Sorry for the duplicate but realized I didn't post this in the appropriate place.)

 

This is the code:

 

CODE

// give the visitors a message that the website will be down at ... time if ( (WARN_BEFORE_DOWN_FOR_MAINTENANCE == 'true') && (DOWN_FOR_MAINTENANCE == 'false') ) { tep_output_warning(TEXT_BEFORE_DOWN_FOR_MAINTENANCE . PERIOD_BEFORE_DOWN_FOR_MAINTENANCE); }// this will let the admin know that the website is DOWN FOR MAINTENANCE to the public if ( (DOWN_FOR_MAINTENANCE == 'true') && (EXCLUDE_ADMIN_IP_FOR_MAINTENANCE == getenv('REMOTE_ADDR')) ) { tep_output_warning(TEXT_ADMIN_DOWN_FOR_MAINTENANCE);

 

Producing this error:

 

Fatal error: Call to undefined function: tep_output_warning() in /home/yordany/public_html/includes/header.php on line 44

 

Line 44 equivilates the: tep_output_warning(TEXT_ADMIN_DOWN_FOR_MAINTENANCE);

 

I am not seeing a problem, but then again, still a little green on PHP.

 

Might someone have a suggestion as to where the problem is?

 

Thank you,

 

VV

Posted

it seems like you missing a reference to the function tep_output_warning

 

make sure you include the .php file in which that function resides, before you call the function.

 

if that include is missing, the function will be unknown

Archived

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

×
×
  • Create New...