Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

installed 2.2rc2a and its all over the place


paulieGB

Recommended Posts

ok, not sure what to change,

here is my configure.php =

 

<?php

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

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

define('ENABLE_SSL', false);

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

 

and here is my admin/configure.php =

 

<?php

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

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

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

define('ENABLE_SSL_CATALOG', 'false');

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

 

:)

Paul.

Link to comment
Share on other sites

  • Replies 75
  • Created
  • Last Reply
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.

 

ow im very sorry.

Link to comment
Share on other sites

Basically, I'm fed up with seeing 3 separate topics from you all asking the same question. If you think starting multiple topics all asking the same question will get it solved faster then I don't think it will. I for one have tuned out because of this. But, good look getting your site working.

Link to comment
Share on other sites

in both configure.php files i have changed =

 

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

 

to =

 

define('HTTPS_SERVER', '');

 

i thought that may help but it hasn't unfortunatly.

 

Paulie.

Is this still not fixed!

 

Look!!! From your post #20 above you say this...

Im using http:// for admin

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

 

And you now say you had it defined as https://www.foxycards.co.uk, but have now changed it to ''.

 

Since you have not got SSL or an SSL web server set up, how do you expect the page to be served up from a secure server?

 

Look back at my earlier post where I pasted full changed versions of both your configure.php files. Since you don't have an SSL server, just change wherever I've put https to be http instead. (I had assumed you would have a secure server or secure proxy server.) The flag saying use SSL should be set to false, I guess, but it probably won't matter if all your settings for server start http: anyway. In your particular case, it seems all references to HTTPS_SERVER and HTTP_SERVER should start with http:// and never https://

Link to comment
Share on other sites

Yes thanks,

Also i had to change =

 

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

 

to =

 

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

 

and =

 

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

 

to =

 

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

 

its working ok on my site but not showing in admin.

Well atleast we can now see my images on the site.

 

Paulie.

Link to comment
Share on other sites

I have this warning showing after i add a new product and image in my admin =

 

Warning: chmod(): No such file or directory in d:\users\foxycardsuk\public_html\admin\includes\classes\upload.php on line 87

 

Success: File upload saved successfully.

 

and then in my admin it says = IMAGE DOES NOT EXIST.

 

But it does show on the site

 

Paulie.

Link to comment
Share on other sites

I have this warning showing after i add a new product and image in my admin =

 

Warning: chmod(): No such file or directory in d:\users\foxycardsuk\public_html\admin\includes\classes\upload.php on line 87

 

Success: File upload saved successfully.

 

and then in my admin it says = IMAGE DOES NOT EXIST.

 

But it does show on the site

 

Paulie.

Sounds like the admin configure.php file.

 

Aren't you glad you used a template.

Link to comment
Share on other sites

lol,

 

well atleast my site looks good now.

 

I dont think my problems have ended yet either,

I cant access file manager in tools in my admin,

i have this error =

 

 

Fatal error: Call to a member function on a non-object in d:\users\foxycardsuk\public_html\admin\file_manager.php on line 185

 

 

But one thing at a time,

 

My admin/configure.php file =

 

<?php

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

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

define('HTTPS_CATALOG_SERVER', '');

define('ENABLE_SSL_CATALOG', 'false');

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

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

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

 

How does that look ?

I can't see what i need to change.

 

Paulie.

Link to comment
Share on other sites

When you say "I had to change X to Y" please explain why that was.

 

Did the admin/includes/configure.php file I pasted above not work after you'd changed https to http everywhere? I can't see why you've changed specific lines to something else. What exactly didn't work when you'd configured it as I said, namely like this:

 

<?php

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

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

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

define('ENABLE_SSL_CATALOG', 'false');

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

?>

 

I think these settings should work for you. See the items I've highlighted in bold that are different than you currently have!

If they don't work then perhaps you can tell us what the problem is rather than just saying "I had to change..." them to something else.

 

OK, so HTTPS_CATALOG_SERVER probably doesn't matter since ENABLE_SSL_CATALOG is false.

 

DIR_FS_CATALOG_IMAGES is your real problem. It should be the path from root, but you've currently got it set to just images/, a definite no, no.

Link to comment
Share on other sites

lol,

 

well atleast my site looks good now.

 

I dont think my problems have ended yet either,

I cant access file manager in tools in my admin,

i have this error =

 

 

Fatal error: Call to a member function on a non-object in d:\users\foxycardsuk\public_html\admin\file_manager.php on line 185

 

 

But one thing at a time,

 

My admin/configure.php file =

 

<?php

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

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

define('HTTPS_CATALOG_SERVER', '');

define('ENABLE_SSL_CATALOG', 'false');

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

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

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

 

How does that look ?

I can't see what i need to change.

 

Paulie.

You could try changing the following parts

 

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

 

define('DIR_FS_ADMIN', DIR_FS_DOCUMENT_ROOT . DIR_WS_ADMIN);

 

define('DIR_FS_CATALOG', DIR_FS_DOCUMENT_ROOT . DIR_WS_CATALOG);

 

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

 

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

Link to comment
Share on other sites

Leslie, do you think the 2 of us in unison will get through? :)

I did not mean to be unision, I had the thread open and I am a slow typer.

 

Let's hope that the problems will be fixed, and that there are no more double postings (which is really annoying).

 

Also, does anyone who installs the stock osc have problems with their configure.php files (or anything else, for that matter)?

Link to comment
Share on other sites

I did not mean to be unision, I had the thread open and I am a slow typer.

Let's hope that the problems will be fixed, and that there are no more double postings (which is really annoying).

I was just joking, it is one of the annoying things that happens sometimes, but is unavoidable. I think we posted within 10 seconds of each other on this occasion! :)

 

It does seem that setting up the two configure.php files causes significant headaches. They do seem a little more complicated than perhaps could be the case.

Link to comment
Share on other sites

I was just joking, it is one of the annoying things that happens sometimes, but is unavoidable. I think we posted within 10 seconds of each other on this occasion! :)

 

It does seem that setting up the two configure.php files causes significant headaches. They do seem a little more complicated than perhaps could be the case.

These things do happen (answers coming within a short space of tine of each other), I have no problem with it.

 

I am no expert, but whenever I have installed the stock osc, the configure.php files are coreect.

Link to comment
Share on other sites

When you say "I had to change X to Y" please explain why that was.

 

Did the admin/includes/configure.php file I pasted above not work after you'd changed https to http everywhere? I can't see why you've changed specific lines to something else. What exactly didn't work when you'd configured it as I said, namely like this:

 

<?php

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

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

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

define('ENABLE_SSL_CATALOG', 'false');

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

?>

 

I think these settings should work for you. See the items I've highlighted in bold that are different than you currently have!

If they don't work then perhaps you can tell us what the problem is rather than just saying "I had to change..." them to something else.

 

OK, so HTTPS_CATALOG_SERVER probably doesn't matter since ENABLE_SSL_CATALOG is false.

 

DIR_FS_CATALOG_IMAGES is your real problem. It should be the path from root, but you've currently got it set to just images/, a definite no, no.

 

 

Ok my images would not show on my site and i had errors in my admin -this happened when i added a new product in my admin with an image, then i had these errors =

 

Error: Destination does not exist.

Error: Catalog images directory does not exist: /images

 

I was looking through the admin /configuration.php and changed it as i said and it worked and now my images for my new products show on my site.

 

Now i have a different warning/error in my admin after i upload a new image with a new product =

 

Warning: chmod(): No such file or directory in d:\users\foxycardsuk\public_html\admin\includes\classes\upload.php on line 87

 

Success: File upload saved successfully.

 

and then in my admin it says = IMAGE DOES NOT EXIST.

 

And the image does not show in my admin but does show on my site .

 

Lol ,i hope that makes sence.

 

Paulie.

Link to comment
Share on other sites

Ok my images would not show on my site and i had errors in my admin -this happened when i added a new product in my admin with an image, then i had these errors =

 

Error: Destination does not exist.

Error: Catalog images directory does not exist: /images

 

I was looking through the admin /configuration.php and changed it as i said and it worked and now my images for my new products show on my site.

 

Now i have a different warning/error in my admin after i upload a new image with a new product =

 

Warning: chmod(): No such file or directory in d:\users\foxycardsuk\public_html\admin\includes\classes\upload.php on line 87

 

Success: File upload saved successfully.

 

and then in my admin it says = IMAGE DOES NOT EXIST.

 

And the image does not show in my admin but does show on my site .

 

Lol ,i hope that makes sence.

 

Paulie.

I hope you changed the admin/includes/configure.php file.

Link to comment
Share on other sites

the admin/includes/configuration.php IS the file i changed

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

 

 

You could try changing the following parts

 

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

 

define('DIR_FS_ADMIN', DIR_FS_DOCUMENT_ROOT . DIR_WS_ADMIN);

 

define('DIR_FS_CATALOG', DIR_FS_DOCUMENT_ROOT . DIR_WS_CATALOG);

 

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

 

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

 

 

This didn't work,

It just went back to how it was with the new images not showing and the same errors.

Link to comment
Share on other sites

Does it not make any difference if i cant access my file manager in my admin/tools ?

 

Also i guess as long as my images show fine on the site i can make do with them not showing in admin, :( it dont look to good in admin though.

 

Paulie.

Link to comment
Share on other sites

the admin/includes/configuration.php IS the file i changed

This didn't work,

It just went back to how it was with the new images not showing and the same errors.

 

Not a lot more I can suggest then, other than you really should put admin/includes/configure.php how we said and then carefully debug exactly why it isn't working with your code. The key setting as I said before is define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/');

 

If you set that to just 'images/' then you're asking for trouble. It should definitely be the full filesystem path from root, not a relative setting.

 

I did tell you in an earlier post to check that $_SERVER['DOCUMENT_ROOT'] does return a valid path from root on your system. It can be system dependant. You could also try $DOCUMENT_ROOT php global instead if it doesn't work. I strongly suggest you check it's working OK on your system.

 

Good luck getting everything working.

Link to comment
Share on other sites

ok thank you,

can i please have a break down on how i do this =

 

check that $_SERVER['DOCUMENT_ROOT'] does return a valid path from root on your system. It can be system dependant. You could also try $DOCUMENT_ROOT php global instead if it doesn't work. I strongly suggest you check it's working OK on your system

 

Just remember im a newbe and stupid.

 

Paulie.

Link to comment
Share on other sites

ok thank you,

can i please have a break down on how i do this =

 

check that $_SERVER['DOCUMENT_ROOT'] does return a valid path from root on your system. It can be system dependant. You could also try $DOCUMENT_ROOT php global instead if it doesn't work. I strongly suggest you check it's working OK on your system

 

Just remember im a newbe and stupid.

 

Paulie.

You could perhaps try:

<?php

echo "\$_SERVER['DOCUMENT_ROOT']='" . $_SERVER['DOCUMENT_ROOT'] . "'<br>";

echo "getenv('DOCUMENT_ROOT')='" . getenv('DOCUMENT_ROOT') . "'<br>";

?>

 

Just a thought! Good luck.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...