Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

problem with modules in admin panel


lapis123

Recommended Posts

Hi

I have got problem with modules (payment, shipping, total order) in my admin site. They are not showing. Maybe this problem is in my configure files?

Please somebody look at my files:

include/configure.php

 

 

<?php

define('HTTP_SERVER', 'http://kismetstore.co.uk');

define('HTTPS_SERVER', 'https://kismetstore.co.uk');

define('ENABLE_SSL', true);

define('HTTP_COOKIE_DOMAIN', 'kismetstore.co.uk');

define('HTTPS_COOKIE_DOMAIN', 'kismetstore.co.uk');

define('HTTP_COOKIE_PATH', '/');

define('HTTPS_COOKIE_PATH', '/');

define('DIR_WS_HTTP_CATALOG', '/');

define('DIR_WS_HTTPS_CATALOG', '/');

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

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

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_DOWNLOAD_PUBLIC', 'pub/');

define('DIR_FS_CATALOG', '/home/kismetl1/public_html/');

define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');

define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

 

define('DB_SERVER', 'localhost');

define('DB_SERVER_USERNAME', 'xxxxxxxx');

define('DB_SERVER_PASSWORD', 'xxxxxxxxxxx');

define('DB_DATABASE', 'xxxxxxxxxxxx');

define('USE_PCONNECT', 'false');

define('STORE_SESSIONS', 'mysql');

?>

 

 

 

 

admin/include/configure.php

 

<?php

define('HTTP_SERVER', 'http://kismetstore.co.uk');

define('HTTPS_SERVER', 'https://kismetstore.co.uk');

 

define('HTTP_CATALOG_SERVER', 'http://kismetstore.co.uk');

define('HTTPS_CATALOG_SERVER', 'https://kismetstore.co.uk');

define('ENABLE_SSL_CATALOG', true);

define('DIR_FS_DOCUMENT_ROOT', '/home/kismetl1/public_html');

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

define('DIR_FS_ADMIN', '/home/kismetl1/public_html/admin/');

define('DIR_WS_CATALOG', '/home/kismetl1/public_html/admin/');

define('DIR_FS_CATALOG', '/home/kismetl1/public_html/admin/');

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('DIR_FS_CACHE', 'tmp/');

define('DB_SERVER', 'localhost');

define('DB_SERVER_USERNAME', 'xxxxxxxxxx');

define('DB_SERVER_PASSWORD', 'xxxxxxxxxx');

define('DB_DATABASE', 'xxxxxxxx');

define('USE_PCONNECT', 'false');

define('STORE_SESSIONS', 'mysql');?>

Link to comment
Share on other sites

I had this problem, to fix it you need to check what is the wrong server path that you have in your configure.php file.

 

The affected file is in /admin/includes/configure.php. No other files are needed.

 

At this line "define('DIR_FS_DOCUMENT_ROOT', '/home/kismetl1/public_html');" add a final slash

so the final result is: define('DIR_FS_DOCUMENT_ROOT', '/home/kismetl1/public_html/');

 

 

If it doesn't work try this:

 

You have to see exactly, these 3 lines:

define('DIR_FS_DOCUMENT_ROOT
define('DIR_FS_ADMIN
define('DIR_FS_CATALOG

 

The path you inserted is wrong, i can't know what is the correct one, only you can know it.

To know the full server path you can use a php script that show it.

Create a txt file and paste into it this code:

<head>
<title>Server Path</title>
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<style type="text/css">
<!--
body {
     font-family: Arial, Helvetica, sans-serif;
     font-size: 150%;
     text-align: center;
}
.path {
     color: #FF0000;
}
-->
</style>
</head>
<body>
<p><br />
 <br /> 
OK! <br />
Here's the full server path. </p>
<br />
<br />
<p class="path">
<?php echo $_SERVER['DOCUMENT_ROOT'];?>
</p>
</body>
</html>

Then rename the file extention from .txt to .php, and put this file in your server (via ftp), call it as you want. Then open this file with your browser.

 

The line shown (for example mine is: /var/www/vhosts/zetahosting.org/httpdocs/), is your server path and you have to insert into that file in the right position.

 

For define('DIR_FS_DOCUMENT_ROOT and define('DIR_FS_CATALOG you have to insert the full path that you get with the php script.

With define('DIR_FS_ADMIN only add the folder /admin/ at the end of your server path, for example /var/www/vhosts/zetahosting.org/httpdocs/admin/

 

Remember that is always needed a final slash to all the paths.

PeppezZ - from Chaos Net, never died.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...