Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

wiered Picture upload problem


Waiti

Recommended Posts

Hi Folks!

 

I don't get it!!! :(

First of all some information about my system.

-I've got 2 domains where OSc (latest "2" Release) is installed

-2 Databases

-one Webspace

-Both domains hav their own folders with the OSc files

-cache.php from both istallations are identic (checked with WinMerge)

-admin/configure.php from both installations are identic (except from the root Paths & domainsettinge & Databases)

-both /images folders have CHMOD 777

-both /admin/aplication_top.php's are identic (don't know it it has somethin to do wich it)

-I hope, this are enough information for now :P if not, let me know!

 

Now my problem

Shop 1

was running great til now. Was able to upload & edit product pictures.

suddenly i couldn't upload or change the images and recive that error message...

Warning: No file uploaded.

 

Due to that problem I had the idea to install Osc

 

Shop 2

with an other domain, in a separate folder and an other database. :puh: :lol:

On this installation the upload works fine!

 

then i compared the "Cache" settings under "Configuration".

Shop 1 = true | /absolute/path/!

Shop 2 = false | /tmp/

accordin to that i changed the values from Shop 1 to the values like in Shop 2. (didn't work!)

 

In Shop 1 it's telling me under "Tools" -> "Cache settings":

error: the Cache folder is N/A. Please set it in Konfiguration / Cache

Cache Directoryr: /tmp/

 

hmmm let's see what Shop 2 tells me :lol:

Categories Box File does not exist Reset

Manufacturers Box File does not exist Reset

Also Purchased Module File does not exist Reset

Cache Directory: /tmp/

 

Isn't that wiered? It's working there an funy is that i can't find the directory "tmp" nowhere in Shop 2

in Shop 1 there is a folder called "tmp" in root (catalog/tmp/) with CHMOD 777

 

Please please girls & boys, help me!

I realy don't get it...

My BRAIN is about to explode... That'll be a nasty thin i can tell you :blink:

 

P.S. If you need some more information abaout installed modules let me know

and sorry 4 my english (I'm german)

 

Thank's a lot for your help!!!

 

Waiti

Link to comment
Share on other sites

Hi,

 

@BryceJr

Thanks but i've got the cache already running.*

If i change the permissions to 755 OSc tells me:

Warning: The Cache Directory is write protected.

 

* And why shop2 this is the one which is working.

What i've ment:

In shop2 isn't a folder called tmp in any directory but it's working.

 

But when I login to the Admin I get this error message:

Warning: is_dir() [function.is-dir]: open_basedir restriction in effect. File(..) is not within the allowed path(s): (/var/kunden/webs/KD00000/shop1/:/tmp/) in /var/kunden/webs/KD00000/shop1/admin/index.php on line 65

Link to comment
Share on other sites

Hi,

 

@BryceJr

Thanks but i've got the cache already running.*

If i change the permissions to 755 OSc tells me:

Warning: The Cache Directory is write protected.

 

* And why shop2 this is the one which is working.

What i've ment:

In shop2 isn't a folder called tmp in any directory but it's working.

 

But when I login to the Admin I get this error message:

Warning: is_dir() [function.is-dir]: open_basedir restriction in effect. File(..) is not within the allowed path(s): (/var/kunden/webs/KD00000/shop1/:/tmp/) in /var/kunden/webs/KD00000/shop1/admin/index.php on line 65

 

Assuming your servers are running under some version of Unix or Linux the /tmp/ directory is located at the very root of your hard drive. If you were running Windows it would be at c:/tmp/ . This directory is normally usable by Linux programs for storing temporary files and by default should be available on any Linux server. Since you are having trouble with shop 1 you may need to create your own /tmp/ directory, probably inside your catalog directory. If you do this then you will need to set its location in oscommerce as /absolutepathtocatalog/tmp/ . If you are not sure exactly where your catalog directory is located check your catalog/includes/configure.php and look at the entry for DIR_FS_CATALOG. If I was creating a /tmp/ directory under catalog on our server I would find that the catalog is located at /home/e-smith/files/ibays/Primary/html/ and therefore the new tmp directory would be at /home/e-smith/files/ibays/Primary/html/tmp/ .

Link to comment
Share on other sites

Well figured out that my problem has nothing to do with the cache settings.

In shop2 i set the value from true -> to false.

Still can upload productimages.

So where is the problem?

 

@ wdepot

i already set the absolute path to the selfcreated tmp folder in the cache settings.

Yes i also created the tmp folder in shop1

 

e.g.: /shop1/tmp/

 

and the link in my cache settings:

/var/kunden/webs/KD00000/shop1/tmp/

 

that's in the configure.php

define('DIR_FS_CATALOG', '/var/kunden/webs/KD00000/shop1/');

Link to comment
Share on other sites

Hey there.

I dont have a solution for you but i think i have a similar problem! I'm running OSC 2.2rc2.

Some of my productimages cant be uploaded, and i get the same error-message that you describe. But my other productimages work fine,

All my images are jpeg.

See an example here : http://www.mit-web.dk/webshop/index.php?cPath=21

 

regards Lars

 

 

I don't think it has something to do with the image because i can upload the image in shop2 without any problem

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...