Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Many Questions


Guest

Recommended Posts

Hi all,

 

I saw this ecommerce system on a website and it worked really well so I want to start my own. I have a few question I would like to ask however.

 

1. If you download the ZIP file from the download section (windows link) will it still work on MacOSX?

 

2. Can this system be run on IIS (Internet Information Services) or will that result in errors?

 

3. I am using IIS and have just installed the software. I went to my catalog homepage and I get the following error:

 

At the top of the page in plain text:

Warning: session_start() [function.session-start]: open(/tmp\sess_ea5a74cf39d3633ada876b43be21c9de, O_RDWR) failed: No such file or directory (2) in C:\Inetpub\wwwroot\techshop\includes\functions\sessions.php on line 67

 

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at C:\Inetpub\wwwroot\techshop\includes\functions\sessions.php:67) in C:\Inetpub\wwwroot\techshop\includes\functions\sessions.php on line 67

 

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at C:\Inetpub\wwwroot\techshop\includes\functions\sessions.php:67) in C:\Inetpub\wwwroot\techshop\includes\functions\sessions.php on line 67

 

Errors highlighted in RED:

Warning: I am able to write to the configuration file: C:\Inetpub\wwwroot\techshop/includes/configure.php. This is a potential security risk - please set the right user permissions on this file.

Warning: The sessions directory does not exist: /tmp. Sessions will not work until this directory is created.

 

Errors in plain text at the bottom of the page:

Warning: session_write_close() [function.session-write-close]: open(/tmp\sess_ea5a74cf39d3633ada876b43be21c9de, O_RDWR) failed: No such file or directory (2) in C:\Inetpub\wwwroot\techshop\includes\functions\sessions.php on line 106

 

Warning: session_write_close() [function.session-write-close]: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in C:\Inetpub\wwwroot\techshop\includes\functions\sessions.php on line 106

 

If someone can give me advice on how to fix any of these errors and answer any of my other questions I would greatly appreciate it. I am new to this and have not done it before however I have good knowledge in MySQL etc.

 

Thanks in advance :D

Link to comment
Share on other sites

Hi all,

 

I saw this ecommerce system on a website and it worked really well so I want to start my own. I have a few question I would like to ask however.

 

1. If you download the ZIP file from the download section (windows link) will it still work on MacOSX?

 

2. Can this system be run on IIS (Internet Information Services) or will that result in errors?

 

3. I am using IIS and have just installed the software. I went to my catalog homepage and I get the following error:

 

At the top of the page in plain text:

Errors highlighted in RED:

Errors in plain text at the bottom of the page:

If someone can give me advice on how to fix any of these errors and answer any of my other questions I would greatly appreciate it. I am new to this and have not done it before however I have good knowledge in MySQL etc.

 

Thanks in advance  :D

 

I don't know about 1) and 2) but for 3) I can tell:

to get rid of the session errors make sure you have in both the admin/includes/configure.php and catalog/includes/configure.php the line

  define('STORE_SESSIONS', ''); // leave empty '' for default handler or set to 'mysql'

set to

  define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'

or make sure the path to your tmp directory is set to an absolute path in Admin->Configuration->Sessions (which should also exist of course).

 

The error about being able to write to the configuration file means that both the admin/includes/configure.php and catalog/includes/configure.php should be set read-only (chmod 644 or 444 depending on your server configuration).

Link to comment
Share on other sites

Hey wheeloftime,

 

Thanks a lot for that it fixed all my errors to do with sessions and stuff but now I still have one error highlighted in red which is:

 

"Warning: I am able to write to the configuration file: C:\Inetpub\wwwroot\techshop/includes/configure.php. This is a potential security risk - please set the right user permissions on this file."

 

What do I need to do here? I tried to change some permissions but it never worked and the error still comes out I am running it on my own computer so I take it I need to CHMOD this file somehow. Does anyone have any advice on how I can fix this last error? B)

Link to comment
Share on other sites

Ok will have a go when I get home. Um do I do that on the directory called "catalog" is is there a way to set read only permissions in windows for just that file?

 

Thanks for your help :D

Link to comment
Share on other sites

Yea I know where the two files are except I am using Windows XP Pro. How do I change the permissions on each file? When I right hand click I get 3 tabs - "General, Security and Summary"

 

Thanks :rolleyes:

Link to comment
Share on other sites

Gotcha, if I remember correctly, it is a PITA to try to reset the settings in windows. I think when I set it up on my home PC oh so long ago, I googled how to do it from a DOS command window. If it is just for your own tinkering at home, it isn't really a big deal, unless the error message is really going to get to you!

 

Jeremy

Link to comment
Share on other sites

I am currently setting it up on my WIN XP Pro system and testing it all so I get use to it then I want to install it on someones MAC OSX server. So does anyone know if I will encounter this error with MAC OSX or is it wasy to change file permissions on mac?

 

I read that tutorial but it looks really long and complicated and a bit over my head at the point. Is there a programe or some other way of doing it?

 

Also I tried to go into the admin panel by typing http://localhost/techshop/admin (I renamed catalog to techshop) and I get the following error:

Fatal error: Cannot re-assign $this in C:\Inetpub\wwwroot\techshop\admin\includes\classes\upload.php on line 31

 

Can anyone help we with any of these errors? I appreciate all the help that people are giving me :D

Link to comment
Share on other sites

Well I have still been unable to fix this admin error. Does anyone have a solution for it?

 

Also does anyone runs this on MAC OSX? And have you ran into that permission problem I talked about above? If you did I would also appreciate hearing how you fixed it, just incase it happens to me when I put it onto a MAC.

Link to comment
Share on other sites

Hey wheeloftime,

 

Thanks a lot for that it fixed all my errors to do with sessions and stuff but now I still have one error highlighted in red which is:

What do I need to do here? I tried to change some permissions but it never worked and the error still comes out I am running it on my own computer so I take it I need to CHMOD this file somehow. Does anyone have any advice on how I can fix this last error? B)

 

Just set proper permission.

Keeping config file with write permission is a security risk.

 

Satish Mantri

Ask/Skype for Free osCommerce value addon/SEO suggestion tips for your site.

 

Check My About US For who am I and what My company does.

Link to comment
Share on other sites

Thanks, I am only running it on my Windows Server just for testing purposes. It is really hard to CHMOD things in windows. I was really just asking if anyone encountered the same problem in OSX?

 

Also an answer to my admin error above would be appreciate :thumbsup:

 

Just set proper permission.

Keeping config file with write permission is a security risk.

 

Satish Mantri

Link to comment
Share on other sites

Well I actually did a different search on this forum and forund this - http://www.oscommerce.com/forums/index.php?sho...02entry687602 and it fixed my problem. However you need to replace it with unset ($this); - There must be a space between unset and ($this);

 

So thats all my problems solved except for that small error on the about the config file as far as I know :)

Link to comment
Share on other sites

Well I actually did a different search on this forum and forund this - http://www.oscommerce.com/forums/index.php?sho...02entry687602 and it fixed my problem. However you need to replace it with unset ($this); - There must be a space between unset and ($this);

 

So thats all my problems solved except for that small error on the about the config file as far as I know :)

 

On Windows XP Home you can right click on file and choose Properties followed by the Advanced tab where you can set the file read-only. Don't know if that is the same with XP Pro. I don't use that anyway as with Total Commander (former Windows Commander) you can set Attributes locally and remote to your wish amongst a lot of other things.

Link to comment
Share on other sites

Yea I have done this but what user do I do it for? I have attached a screen shot of what it looks like. I have made both users deny "Write" but this has not fixed my problem. :-"

security.gif

Link to comment
Share on other sites

Yea I have done this but what user do I do it for? I have attached a screen shot of what it looks like. I have made both users deny "Write" but this has not fixed my problem. :-"

security.gif

 

Unfamiliar screen for me but just try some options to see when it is enough. I think if you deny Modify and Write it will be enough.

Link to comment
Share on other sites

Ok thanks for your help anyway. I will just wait and see what happens when I put it onto the MAC server it might be a lot easier for me to specify permissions on that. Now I have some other questions which I would appreciate some help with.

 

1) How do I add some text and change the copyright information? E.g. I want to leave "Powered by osCommerce" but I want to change it so it says "Copyright 2005 - My Store Name" I have looked around lots of files but have been unable to find it yet.

 

2) Is there a way to change the colour of the background of the headings to this colour? #339933 - Is it as easy as just changing some CSS code or do I need to make images or something. Here is an image of what I have at the moment back.gif I want to change the grey to that colour code.

 

That is all for now I would like to thank everyone who has helped to date and I appreciate it greatly. I hope you can help with some of these new questions :)

Link to comment
Share on other sites

Ok thanks for your help anyway. I will just wait and see what happens when I put it onto the MAC server it might be a lot easier for me to specify permissions on that. Now I have some other questions which I would appreciate some help with.

 

1) How do I add some text and change the copyright information? E.g. I want to leave "Powered by osCommerce" but I want to change it so it says "Copyright 2005 - My Store Name" I have looked around lots of files but have been unable to find it yet.

 

2) Is there a way to change the colour of the background of the headings to this colour? #339933 - Is it as easy as just changing some CSS code or do I need to make images or something. Here is an image of what I have at the moment back.gif I want to change the grey to that colour code.

 

That is all for now I would like to thank everyone who has helped to date and I appreciate it greatly. I hope you can help with some of these new questions :)

 

1) For the copyright information look in your catalog/includes/languages/english.php (and other language.php files if you have more then one language).

At the bottom of the file you will find the define FOOTER_TEXT_BODY and you can make your changes there.

 

2) Open your catalog/stylesheet.css and find TD.infoBoxHeading. Change the background color to your liking.

 

As for setting the attributes on your XP Pro box:

Go to this site and download the latest version. This is the very best there is and it is my companion for about 15 years now.

Link to comment
Share on other sites

Well thanks wheelofatime.

That copyright information worked perfectally and I am very happy about this :)

 

I followed your advice on changing the CSS and managed to get most if it but there are small corners and stuff that are not working. They still show up the old grey color. Any solution to this? Here is an image: back2.gif

Link to comment
Share on other sites

Well thanks wheelofatime.

That copyright information worked perfectally and I am very happy about this :)

 

I followed your advice on changing the CSS and managed to get most if it but there are small corners and stuff that are not working. They still show up the old grey color. Any solution to this? Here is an image: back2.gif

 

Yep, but only by making those corner images transparent instead of the solid color.

This contribution will give you a start but assumes a white background. As that is what you have you should be set already, otherwise you can always change the little part of the images with white to the background color you are going to use.

Link to comment
Share on other sites

Hey that pretty much worked excellently. However there are little white lines around some of the ends. Do you know if this is normal or if there is a way this can be fixed?

whitebox.gif

Link to comment
Share on other sites

Hey that pretty much worked excellently. However there are little white lines around some of the ends. Do you know if this is normal or if there is a way this can be fixed?

whitebox.gif

 

To get it perfect you will have to fiddle with the pictures in your favorite graphics editor. I can't see from the picture what you mean so it probably isn't that bad.

Link to comment
Share on other sites

Yea it is real hard to actually pick up on the small mistake but it you have a look at the image you will see my cursor in the "Manafactures" box. The left hand corner of that box has two white boxes that is what I am alking about but they actually don't look too bad. Adds a nice little design to the who thing don't you think?

Link to comment
Share on other sites

Yea it is real hard to actually pick up on the small mistake but it you have a look at the image you will see my cursor in the "Manafactures" box. The left hand corner of that box has two white boxes that is what I am alking about but they actually don't look too bad. Adds a nice little design to the who thing don't you think?

 

Now I understand what you mean :D That's how the default picture is and it doesn't look bad indeed but a bit dependant of how you style your whole site.

You can always replace it with another picture in the future or just leave it as is.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...