Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

application_top.php error


hlbarbosa

Recommended Posts

Hi all,

 

I would like to ask you some help on a mistake I made when implementing language in Admin page.

I probably mistype portuguese in language path like portuguese.ph and now I am receinving the following error when trying to load main page:

 

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

 

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

 

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

 

In application_top.php I see it calls a function language and add .php to the end of it:

 

// include the language translations

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

 

Where can I find this portugues.ph to correct it?

 

Thanks in advance,

 

Hugo.

Link to comment
Share on other sites

Hi all,

 

I would like to ask you some help on a mistake I made when implementing language in Admin page.

I probably mistype portuguese in language path like portuguese.ph and now I am receinving the following error when trying to load main page:

 

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

 

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

 

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

 

In application_top.php I see it calls a function language and add .php to the end of it:

 

// include the language translations

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

 

Where can I find this portugues.ph to correct it?

 

Thanks in advance,

 

Hugo.

 

In the database. You will find the languages in table "languages". The entry can be edited using PhpMyAdmin

Link to comment
Share on other sites

In the database. You will find the languages in table "languages". The entry can be edited using PhpMyAdmin

 

Thanks a lot, Alex. It helped me very much. I could access the admin page and roll back all changes made. In PHPMyAdmin, I could delete the portuguese information from languages table, but I cannot access the index.php from \catalog\includes\

It is duplicating the path information with a remain information for the portugues.php.

 

The error is the following:

 

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

 

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

 

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

 

Do you know where this information is linked to?

 

Thanks in advance,

 

Hugo.

Link to comment
Share on other sites

What name shows for the language file in the admin ares?

 

Is the file name portugese.php or portugues,php?

 

What is the name of the language directory on your server?

 

/includes/languages/.......

 

They all need to be spelt the same.

Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile

 

Virus Threat Scanner

My Contributions

Basic install answers.

Click here for Contributions / Add Ons.

UK your site.

Site Move.

Basic design info.

 

For links mentioned in old answers that are no longer here follow this link Useful Threads.

 

If this post was useful, click the Like This button over there ======>>>>>.

Link to comment
Share on other sites

Thanks a lot, Alex. It helped me very much. I could access the admin page and roll back all changes made. In PHPMyAdmin, I could delete the portuguese information from languages table, but I cannot access the index.php from \catalog\includes\

It is duplicating the path information with a remain information for the portugues.php.

 

The error is the following:

 

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

 

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

 

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

 

Do you know where this information is linked to?

 

Thanks in advance,

 

Hugo.

 

It seems as if you changed the language in a wrong way.

 

if you look at

includes/languages//includes/languages/portugues.php

 

the path is completly wrong. it should be

includes/languages/portugues.php

 

Did you change the language directory in database to '/includes/languages/portugues.php'?

 

If so, change it again, but into 'portugues.php'

Link to comment
Share on other sites

It seems as if you changed the language in a wrong way.

 

if you look at

includes/languages//includes/languages/portugues.php

 

the path is completly wrong. it should be

includes/languages/portugues.php

 

Did you change the language directory in database to '/includes/languages/portugues.php'?

 

If so, change it again, but into 'portugues.php'

 

 

Great, guys! I found the path and deleted it. Now it is openning the file correctly. Thanks a lot for you help. This thread is closed.

 

Regards,

 

Hugo.

Link to comment
Share on other sites

  • 3 years later...

I made a similar mistake when installing the french language and had typed 'frrench' for the directory, and after editign it and verifying the edit in the database i still am getting the samae error:

 

 

Warning: require(includes/languages/frrench.php) [function.require]: failed to open stream: No such file or directory in /home/dreamweb/public_html/oscommerce/psy/includes/application_top.php on line 288

 

Fatal error: require() [function.require]: Failed opening required 'includes/languages/frrench.php' (include_path='.:/usr/local/php52/pear') in /home/dreamweb/public_html/oscommerce/psy/includes/application_top.php on line 288

 

http://dreamwebsitedesigns.com/oscommerce/psy/

Link to comment
Share on other sites

It seems to show up fine on safari, but firefox isn't showing it proporly, I cleared my cache, ...and just tried with firefox on my other computer and it is working fine, just not in this one browser, and I even restarted the browser. ... Weird.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...