Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Messed Up Admin Section


Guest

Recommended Posts

I have been uploading all my files and images and all today and all of the sudden without changing the admin stuff the formatting went missing in the admin pages. I see one problem that shows up and that is in /admin/includes/application_top.php It says that there is an error on line 130 which is what I have below:

 

// include the language translations

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

$current_page = basename($PHP_SELF);

if (file_exists(DIR_WS_LANGUAGES . $language . '/' . $current_page)) {

include(DIR_WS_LANGUAGES . $language . '/' . $current_page);

}

 

What I have highlighted in red above seems to at least let me reload the page but there is no forrmating. Any ideas? Currently I cant even add products or catagories which I would really like to do.

 

Thanks, Jeff

Link to comment
Share on other sites

Warning: main(includes/languages/.php): failed to open stream: No such file or directory in /home/content/s/c/o/scootercentral/html/shop/admin/includes/application_top.php on line 130

 

Warning: main(includes/languages/.php): failed to open stream: No such file or directory in /home/content/s/c/o/scootercentral/html/shop/admin/includes/application_top.php on line 130

 

Fatal error: main(): Failed opening required 'includes/languages/.php' (include_path='.:/usr/local/lib/php') in /home/content/s/c/o/scootercentral/html/shop/admin/includes/application_top.php on line 130

Link to comment
Share on other sites

Warning: main(includes/languages/.php): failed to open stream: No such file or directory in /home/content/s/c/o/scootercentral/html/shop/admin/includes/application_top.php on line 130

 

Warning: main(includes/languages/.php): failed to open stream: No such file or directory in /home/content/s/c/o/scootercentral/html/shop/admin/includes/application_top.php on line 130

 

Fatal error: main(): Failed opening required 'includes/languages/.php' (include_path='.:/usr/local/lib/php') in /home/content/s/c/o/scootercentral/html/shop/admin/includes/application_top.php on line 130

 

Oh, that's an ugly error.

 

Post your admin/includes/configure.php file.

Contributions

 

Discount Coupon Codes

Donations

Link to comment
Share on other sites

<?php

/*

$Id: configure.php,v 1.14 2003/02/21 16:55:24 dgw_ Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2002 osCommerce

 

Released under the GNU General Public License

*/

 

// define our webserver variables

// FS = Filesystem (physical)

// WS = Webserver (virtual)

define('HTTP_SERVER', ''); // eg, http://localhost or - https://localhost should not be NULL for productive servers

define('HTTP_CATALOG_SERVER', '');

define('HTTPS_CATALOG_SERVER', '');

define('ENABLE_SSL_CATALOG', 'false'); // secure webserver for catalog module

define('DIR_FS_DOCUMENT_ROOT', $DOCUMENT_ROOT); // where your pages are located on the server. if $DOCUMENT_ROOT doesnt suit you, replace with your local path. (eg, /usr/local/apache/htdocs)

define('DIR_WS_ADMIN', '/admin/');

define('DIR_FS_ADMIN', DIR_FS_DOCUMENT_ROOT . DIR_WS_ADMIN);

define('DIR_WS_CATALOG', '/catalog/');

define('DIR_FS_CATALOG', DIR_FS_DOCUMENT_ROOT . DIR_WS_CATALOG);

define('DIR_WS_IMAGES', 'images/');

define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');

define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/');

define('DIR_WS_INCLUDES', 'includes/');

define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');

define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');

define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');

define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');

define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');

define('DIR_WS_CATALOG_LANGUAGES', DIR_WS_CATALOG . 'includes/languages/');

define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/');

define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/');

define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/');

define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');

 

// define our database connection

define('DB_SERVER', '');

define('DB_SERVER_USERNAME', 'mysql');

define('DB_SERVER_PASSWORD', '');

define('DB_DATABASE', 'osCommerce');

define('USE_PCONNECT', 'false');

define('STORE_SESSIONS', '');

?>

Link to comment
Share on other sites

The path given in the error is

 

/home/content/s/c/o/scootercentral/html/shop/admin/includes/application_top.php

 

so...

 

define('DIR_WS_ADMIN', '/shop/admin/');

define('DIR_WS_CATALOG', '/shop/');

 

I've seen this error posted, but have never seen a solution.

 

And I assume you removed your HTTP_SERVER information for privacy or is that really empty?

Contributions

 

Discount Coupon Codes

Donations

Link to comment
Share on other sites

Warning: main(includes/languages/.php): failed to open stream: No such file or directory in /home/content/s/c/o/scootercentral/html/shop/admin/includes/application_top.php on line 130

 

Warning: main(includes/languages/.php): failed to open stream: No such file or directory in /home/content/s/c/o/scootercentral/html/shop/admin/includes/application_top.php on line 130

 

Fatal error: main(): Failed opening required 'includes/languages/.php' (include_path='.:/usr/local/lib/php') in /home/content/s/c/o/scootercentral/html/shop/admin/includes/application_top.php on line 130

 

 

This problem is caused by a database issue.

 

main(includes/languages/.php): 3

 

If you notice the language is missing as this should read

 

main(includes/languages/english.php):

 

The language is set in the database so what has happened is your database has gotten corrupted or messed up and the language is not getting set. Do a restore using your last good backup. You may have to run it directly from phpmyadmin instead of your admin but that should fix the problem.

The Knowledge Base is a wonderful thing.

Do you have a problem? Have you checked out Common Problems?

There are many very useful osC Contributions

Are you having trouble with a installed contribution? Have you checked out the support thread found Here

BACKUP BACKUP BACKUP!!! You did backup, right??

Link to comment
Share on other sites

Ok so I tried all of your suggestions and I even restarted the entire site because I only have 2 or 3 items listed currently so I erased the database I was using and created another one with all newly downloaded and unzipped files from osCommerce's website. Here's a screenshot of the problem. It seems as though there is some file missing because I'm also missing the buttons as shown in the second shot. And in the third one I'm missing some files too. Any help is appreciated. Thanks!

http://i46.photobucket.com/albums/f142/cliffj/prob.jpg

 

http://i46.photobucket.com/albums/f142/cliffj/prob2.jpg

 

http://i46.photobucket.com/albums/f142/cliffj/prob3.jpg

Link to comment
Share on other sites

  • 1 month later...

Archived

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

×
×
  • Create New...