Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Help me Fix a problem please


jscrilla

Recommended Posts

Posted

I have an error when I try to pull up my site now. It was working when I went to bed last night, but I'm afraid someone might have messed with it.

 

Anyways, the error is related to this bit of code in my application_top.php file:

 

require(DIR_WS_LANGUAGES . $language . '.php');

 

What is this doing? How can I fix this?

 

My error logs show this

 

[Thu Oct 26 01:28:02 2006] [error] [] PHP Fatal error: main() [<a href='function.require'>function.require</a>]: Failed opening required 'includes/languages/.php' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/development/docs/shop/includes/application_top.php on line 285

Posted

It can't find your language directory. If the files have not been changed then your database may be corrupted. I suggest gonig into phpmyadmin and doing a repair on all of the tables. Be sure to check the status afterwards to make sure they are all OK.

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Posted
It can't find your language directory. If the files have not been changed then your database may be corrupted. I suggest gonig into phpmyadmin and doing a repair on all of the tables. Be sure to check the status afterwards to make sure they are all OK.

 

Jack

 

I tried what you suggested, but to no avail. I can't figure this out. The entire site is just down for some reason.

Posted
I tried what you suggested, but to no avail. I can't figure this out. The entire site is just down for some reason.

 

Ok, so I reinstalled the database and it worked. I guess that'll teach me not to do a backup of it. I still think someone purposefully crapped it out cause i didn't secure my admin area.

Posted

Databases can become corrupted for a variety of reasons. If your host doesn't do daily backup, then you might want to get into the habit of doing so yourself, or installing the automatic backup contribution.

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Archived

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

×
×
  • Create New...