Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Fatal error!! please help


theroo

Recommended Posts

Hi there

 

I have a problem on my index.php page

this error comes up

 

 

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

 

line 23 on my header.php page reads

 

if ( (file_exists(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/includes/configure.php')) && (is_writeable(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/includes/configure.php')) ) {

tep_output_warning(WARNING_CONFIG_FILE_WRITEABLE);

 

what does this mean?

 

the odd thing is that one day (before this it was all working) the page had an error that said : register globals is off, needs to be on, so i put a php.ini file that has 'register_globals = on' in. But then the above 'fatal error' omes up.

 

can someone please help me with this? thanks

Link to comment
Share on other sites

This probably means you host suddenly decided on a Monday morning :) to turn off register globals without informing you, and you are not allowed to turn it back on by using the php.ini. You probably beed to talk to your host or switch hosts.

 

Ken

commercial support - unProtected channel, not to be confused with the forum with same name - open to everyone who need some professional help: either PM/email me, or go to my website (URL can be found in my profile).

over 20 years of computer programming experience.

Link to comment
Share on other sites

Is yours a very old version of osC or something?

 

tep_output_warning() doesn't exist in the current release.

Link to comment
Share on other sites

Is yours a very old version of osC or something?

 

tep_output_warning() doesn't exist in the current release.

 

if i use fantastico to update the version, what will happen to all the modding i did? will it all be removed? i did a crazy amount of modding which i cannot remember now! it was a year plus ago!

 

Ken - the register globals using php.ini works i think!

Link to comment
Share on other sites

Sadly I'd imagine that you would lose your mods and there would be other issues.

 

Someone with more knowledge of the older versions will have to help here.

 

If it were me, I'd set up a local pc server ..

 

Download the old site ..

 

Set up a fresh new osCommerce from here (Not Fantastico) and rebuild it locally until it worked well .. then replace the old site.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...