Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

installed 2.2rc2a and its all over the place


paulieGB

Recommended Posts

  • Replies 75
  • Created
  • Last Reply
Posted
Hi,

 

I just installed oscommerce 2.2 and it is all over the place, and i cant access admin.

My site is =

 

http://www.foxycards.co.uk

 

Please take a look, and help.

 

Paulie.

 

Maybe your permissions are too restrictive. Read the first post of thread then adjust your permissions accordingly with your FTP tool.

Posted

Check your config files. They are probably the problem.

Posted
I just installed oscommerce 2.2 and it is all over the place, and i cant access admin.

Please take a look, and help.

Yes, take a look at your setting of DIR_WS_HTTP_CATALOG in your includes/configure.php.

 

I think it should look like this:

  define('DIR_WS_HTTP_CATALOG', '/');

and not like this:

  define('DIR_WS_HTTP_CATALOG', 'http://www.foxycards.co.uk/');

 

Perhaps check the admin/includes/configure.php too.

Posted

its your configure.php file.. Your admin probably looks the same too.. Whats happening is that it is not using your style sheet OR connecting to your images folder because the configure.php file is wrong/

A great place for newbies to start

Road Map to oscommerce File Structure

DO NOT PM ME FOR HELP. My time is valuable, unless i ask you to PM me, please dont. You will get better help if you post publicly. I am not as good at this as you think anyways!

 

HOWEVER, you can visit my blog (go to my profile to see it) and post a question there, i will find time to get back and answer you

 

Proud Memeber of the CODE BREAKERS CLUB!!

Posted
Yes, take a look at your setting of DIR_WS_HTTP_CATALOG in your includes/configure.php.

 

I think it should look like this:

  define('DIR_WS_HTTP_CATALOG', '/');

and not like this:

  define('DIR_WS_HTTP_CATALOG', 'http://www.foxycards.co.uk/');

 

Perhaps check the admin/includes/configure.php too.

 

 

its your configure.php file.. Your admin probably looks the same too.. Whats happening is that it is not using your style sheet OR connecting to your images folder because the configure.php file is wrong/

 

 

Ok i just changes that and still the same problems, here is my configure.php, maybe someone could show me what i need to change =

 

<?php

define('HTTP_SERVER', '://');

define('HTTPS_SERVER', '://');

define('ENABLE_SSL', false);

define('HTTP_COOKIE_DOMAIN', '');

define('HTTPS_COOKIE_DOMAIN', '');

define('HTTP_COOKIE_PATH', 'www.foxycards.co.uk/');

define('HTTPS_COOKIE_PATH', 'www.foxycards.co.uk/');

define('DIR_WS_HTTP_CATALOG', '/');

define('DIR_WS_HTTPS_CATALOG', 'www.foxycards.co.uk/');

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

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

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

 

define('DB_SERVER', 'mysql.foxycards.co.uk');

define('DB_SERVER_USERNAME', '***********');

define('DB_SERVER_PASSWORD', '*************');

define('DB_DATABASE', 'foxycardsuk');

define('USE_PCONNECT', 'false');

define('STORE_SESSIONS', 'mysql');

?>

 

-------------------

and here is my admin configure.php =

 

<?php

define('HTTP_SERVER', '://');

define('HTTP_CATALOG_SERVER', '://');

define('HTTPS_CATALOG_SERVER', '://');

define('ENABLE_SSL_CATALOG', 'false');

define('DIR_FS_DOCUMENT_ROOT', 'd:/users/foxycardsuk/public_html/');

define('DIR_WS_ADMIN', 'www.foxycards.co.uk/admin/');

define('DIR_FS_ADMIN', 'd:/users/foxycardsuk/public_html/admin/');

define('DIR_WS_CATALOG', '/');

define('DIR_FS_CATALOG', 'd:/users/foxycardsuk/public_html/');

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('DB_SERVER', 'mysql.foxycards.co.uk');

define('DB_SERVER_USERNAME', '*********');

define('DB_SERVER_PASSWORD', '************');

define('DB_DATABASE', 'foxycardsuk');

define('USE_PCONNECT', 'false');

define('STORE_SESSIONS', 'mysql');

?>

 

Please help me out.

 

Paulie.

Posted
Ok i just changes that and still the same problems, here is my configure.php, maybe someone could show me what i need to change =

 

Try this for includes/configure.php:

 

<?php
 define('HTTP_SERVER', 'http://www.foxycards.co.uk');
 define('HTTPS_SERVER', 'https://www.foxycards.co.uk');   // assuming you have your own SSL certificate
 define('ENABLE_SSL', true);
 define('HTTP_COOKIE_DOMAIN', 'www.foxycards.co.uk');
 define('HTTPS_COOKIE_DOMAIN', 'www.foxycards.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', $_SERVER['DOCUMENT_ROOT'] . '/');
 define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
 define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

 define('DB_SERVER', 'mysql.foxycards.co.uk');
 define('DB_SERVER_USERNAME', '***********');
 define('DB_SERVER_PASSWORD', '*************');
 define('DB_DATABASE', 'foxycardsuk');
 define('USE_PCONNECT', 'false');
 define('STORE_SESSIONS', 'mysql');
?>

 

and this for admin/includes/configure.php:

 

<?php
 define('HTTP_SERVER', 'http://www.foxycards.co.uk');
 define('HTTP_CATALOG_SERVER', 'https://www.foxycards.co.uk');   // https here isn't a mistake!
 define('HTTPS_CATALOG_SERVER', 'https://www.foxycards.co.uk');
 define('ENABLE_SSL_CATALOG', 'true');
 define('DIR_FS_DOCUMENT_ROOT', $_SERVER['DOCUMENT_ROOT']);
 define('DIR_WS_ADMIN', '/admin/');
 define('DIR_FS_ADMIN', DIR_FS_DOCUMENT_ROOT . '/admin/');
 define('DIR_WS_CATALOG', '/');
 define('DIR_FS_CATALOG', DIR_FS_DOCUMENT_ROOT . '/');
 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('DB_SERVER', 'mysql.foxycards.co.uk');
 define('DB_SERVER_USERNAME', '*********');
 define('DB_SERVER_PASSWORD', '************');
 define('DB_DATABASE', 'foxycardsuk');
 define('USE_PCONNECT', 'false');
 define('STORE_SESSIONS', 'mysql');
?>

 

You will need to check what $_SERVER['DOCUMENT_ROOT'] is set to on your server. It should be the full directory path from root, not ending in a trailing / character.

 

Not saying the above will be exactly correct for your system, but it will be much, much closer to what you need than the settings you currently are trying to use! :)

Posted

One thing you mat want to change from what Andy gave you is

for the catalog/includes/configure.php

define('ENABLE_SSL', true);

and in the admin/includes/configure.php

define('ENABLE_SSL_CATALOG', 'true');

The settings you have in your post are false.Andy set those to true. If you don't have SSL then make sure are false.

Posted

If you don't have SSL then set to fslse.

 

SSL is for encrypting your secure pages such as login, create account and checkout. If it is set to true and you don't have SSL the pages won't sidplay.

Posted

Ok thx,

I couldn't access my account so i set them to false.

Everything seams fine except, when im in admin and i click 'online catalog' - internet explorer cannot display this page.

??

Posted

In the admin/includes/cofigure.php change

define('HTTP_CATALOG_SERVER', 'https://www.foxycards.co.uk');   // https here isn't a mistake!

to

define('HTTP_CATALOG_SERVER', 'http://foxycards.co.uk');   // https here isn't a mistake!

Posted

Yes, quite right, if you don't have SSL or a secure server at all at present then just put http wherever I put https.

SSL is secure socket layer by the way; the thing that gives the padlock on the browser.

 

If you can use an SSL proxy server instead (because you don't have an SSL certificate of your own) then you can set the configure.php files up to use that instead.

You'd probably end up replacing the 'https://www.foxycards.co.uk' lines with something like 'https://mysslproxyserver.co.uk/foxycards.co.uk' instead, depending on what your proxy server domain is, obviously. You could check with your ISP to see if they have a default SSL proxy server you can use for your shop.

Posted

thanks for all the help,

 

I have a couple of issues -

 

i added a new product and in admin there is a error =

 

Error: Catalog images directory does not exist: /images/

 

and my image does not show on my site.

 

Also i added a new currency GBR and made it my defult, but now there is no price showing on my site ?

 

Thanks,

 

Paulie.

Posted
i added a new product and in admin there is a error =

 

Error: Catalog images directory does not exist: /images/

 

and my image does not show on my site.

 

Also i added a new currency GBR and made it my defult, but now there is no price showing on my site ?

 

What URL are you using for admin, do you have https://.... in your URL or http://.... ? Are you now using a secure web server connection for your admin area?

 

What file are you browsing to get the error? Is it admin/categories.php? Please describe exactly what you're doing to get the error. Perhaps there's still a small error in your admin/includes/configure.php? You could post both your configure.php files again here so we can see what settings you now have.

 

Is your new currency the British Pound? If so, perhaps you'd be better off using GBP instead? Have you gone into your admin -> Localization -> currencies and checked your new default currency has a value of 1.00000000 as its exchange rate value. Click on "Update Currencies" button to set the rates of the other currencies you have, if any.

Posted

Im using http:// for admin

I havent changed anything there or added a secure web server e.t.c.

 

I wasn't browsing a file when i had the error =

I went into the admin side of my shop to add a product to my shop.

After i added the product with the image, the error came up on the top of the admin page.

 

My new currency is GBP, i was in admin - localization - currencies and added GBP set it as my defult currency value of 1.00000000.

And the amount is not showing on my site its (0)

 

I just clicked on update exchange rate in my admin and these errors came up =

 

Warning: The primary exchange rate server (oanda) failed for US Dollar (USD) - trying the secondary exchange rate server.

Error: The exchange rate for US Dollar (USD) was not updated via xe. Is it a valid currency code?

Warning: The primary exchange rate server (oanda) failed for Euro (EUR) - trying the secondary exchange rate server.

Error: The exchange rate for Euro (EUR) was not updated via xe. Is it a valid currency code?

Warning: The primary exchange rate server (oanda) failed for GBP () - trying the secondary exchange rate server.

Error: The exchange rate for GBP () was not updated via xe. Is it a valid currency code?

 

Im not sure if i needed to click update exchange rate ?

Not sure why im getting these errors.

 

I have put a new template on my site, and it looks great but im obviosly getting a few errors.

 

http://www.foxycards.co.uk

 

Paulie.

Posted

Ok i fixed the currencies.

 

But i cant upload a image in my admin when i put a new product on my site.

 

I get these warnings on the top of my admin page =

 

Error: Destination does not exist.

Error: Catalog images directory does not exist: /images/

 

???

Please help.

 

Paulie.

Posted

Have you deleted your /images/ directory by any chance??

If not what is the permission you have set for this directory??

Posted
Ok i fixed the currencies.

 

But i cant upload a image in my admin when i put a new product on my site.

 

I get these warnings on the top of my admin page =

 

Error: Destination does not exist.

Error: Catalog images directory does not exist: /images/

 

???

Please help.

 

Paulie.

I see you've now started yet another topic to ask this question. It is against forum rules to ask the same question in 2 places because it wastes everyone's time.. If you want to start a new topic, please close the existing one off first!

 

I assume tthen that this topic can now die and we'll pick up this question in your new topic here.

Posted
i havent deleted it

and permissions are set at 777

Then it should be the configure.php files.

Archived

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

×
×
  • Create New...