Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Fatal error ;(


jokaz

Recommended Posts

Posted

Yesterday everything was OK, but today i turn on pc, go to web and i saw this error:

 

Warning: require(includes/languages/.php) [function.require]: failed to open stream: No such file or directory in /usr/home/www/ftp/jokaz/includes/application_top.php on line 288

 

Fatal error: require() [function.require]: Failed opening required 'includes/languages/.php' (include_path='.:/usr/local/share/pear') in /usr/home/www/ftp/jokaz/includes/application_top.php on line 288

 

application_top.php on line 288 is:

 

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

 

How can I fix this error? Please help me!

Posted
Yesterday everything was OK, but today i turn on pc, go to web and i saw this error:

 

Warning: require(includes/languages/.php) [function.require]: failed to open stream: No such file or directory in /usr/home/www/ftp/jokaz/includes/application_top.php on line 288

 

Fatal error: require() [function.require]: Failed opening required 'includes/languages/.php' (include_path='.:/usr/local/share/pear') in /usr/home/www/ftp/jokaz/includes/application_top.php on line 288

 

application_top.php on line 288 is:

 

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

 

How can I fix this error? Please help me!

is the path right? It looks odd having the ftp there.

/usr/home/www/ftp/jokaz/includes

Posted
is the path right? It looks odd having the ftp there.

/usr/home/www/ftp/jokaz/includes

 

My web is at FTP server, is there something wrong?

Posted

Now i got another error, i fix it, but i don't know how, here is my new error -_-

 

Warning: require(includes/languages/.php) [function.require]: failed to open stream: No such file or directory in /usr/home/www/ftp/jokaz/admin/includes/application_top.php on line 157

 

Fatal error: require() [function.require]: Failed opening required 'includes/languages/.php' (include_path='.:/usr/local/share/pear') in /usr/home/www/ftp/jokaz/admin/includes/application_top.php on line 157

 

157 line is:

 

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

Posted
Now i got another error, i fix it, but i don't know how, here is my new error -_-

 

Warning: require(includes/languages/.php) [function.require]: failed to open stream: No such file or directory in /usr/home/www/ftp/jokaz/admin/includes/application_top.php on line 157

 

Fatal error: require() [function.require]: Failed opening required 'includes/languages/.php' (include_path='.:/usr/local/share/pear') in /usr/home/www/ftp/jokaz/admin/includes/application_top.php on line 157

 

157 line is:

 

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

Are you using the admin filemanager? If so, don't.

 

You didn't fix the probelem, you just moved it (perhaps by inadvertantly deleting code).

 

If you have back up files (as you should) just replace the files mentioned.

Posted
Are you using the admin filemanager? If so, don't.

 

You didn't fix the probelem, you just moved it (perhaps by inadvertantly deleting code).

 

If you have back up files (as you should) just replace the files mentioned.

 

I'm using FIleZilla FTP program, so i don't have to use it??

Posted
I'm using FIleZilla FTP program, so i don't have to use it??

Very good.

 

No if you have backups, replace the affected files, and see how it goes.

 

Did you delete the default language by any chance?

Posted
Very good.

 

No if you have backups, replace the affected files, and see how it goes.

 

Did you delete the default language by any chance?

 

I didn't have backups ;( So I have to re-install one more time. I'm edit Englisch(default) language to my country Lithuanian. Maybe that's the problem?

Posted
I didn't have backups ;( So I have to re-install one more time. I'm edit Englisch(default) language to my country Lithuanian. Maybe that's the problem?

 

Is there a Lithuanian language pack? Not sure how you edited.

Posted

 

Do you have a file called \includes\languages\lithuanian.php? And \admin\includes\languages\lithuanian.php?

 

If not, put them there from the contribution (along with the directories of lithuanian ifo)

 

Then go into your site's admin and under Localization, Languages - if Lithuanian isn't listed, add "new language". That error in your php is looking for a file at variable name location $languages, and this is one place to set that. Fields required are Name (Lithuanian), code (li maybe?), image you can leave blank I think, directory (this is the important one): lithuanian (the exact same as the firs tpart of lithuanian.php!), sort order 0 or 1.

 

if you can't get to that Localization/Languages for via your admin page either, then we need to remember where the $languages variable is set! If I find it I'll post back. Sometimes so hard to find these details when you need them!

Posted
Sometimes so hard to find these details when you need them!

That is for sure.

Posted

Peoples, now everything is OK. I'm re-install the website, and now it seems working good, without errors. I did backup, if someone will crash. So, thanks for help Coopco and cmakynen. Respect :)

Posted
Peoples, now everything is OK. I'm re-install the website, and now it seems working good, without errors. I did backup, if someone will crash. So, thanks for help Coopco and cmakynen. Respect :)

Fantastic. Now how did the problem arise in the first place?

Archived

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

×
×
  • Create New...