Problem with image upload

Please post all install related problems here. Visit this forum first for troubleshooting.
Post Reply
tmoura
Posts: 10
Joined: Fri 9. Jan 2004, 19:54
Location: Sanford
Contact:

Problem with image upload

Post by tmoura »

I have been playing around with the previous version for a week or so. I noticed the new version and completly uninstalled the older version and installed the latest version.

I am getting an error when uploading an image.
Error while writing file to storage (1)

I am still unsure if I need to create a dir called images and then place the images I am going to use in this dir. Is this correct?

I have correctly CHMOD all the files that were needed. I have uninstalled the new version twice and keep getting the same error.
StorHost Inc.
"Intelligent Infrastructure"
Managed Servers | Off-Site Data Back Up | Managed Solutions.
frold
Posts: 2151
Joined: Tue 25. Nov 2003, 22:42

Post by frold »

are you still usingin the old database?
http://www.studmed.dk Portal for doctors and medical students in Denmark
tmoura
Posts: 10
Joined: Fri 9. Jan 2004, 19:54
Location: Sanford
Contact:

Post by tmoura »

I am and I am not. I took the old DB and clear it out so it was empty. Then reinstalled the app. I guess I could go in and del the entore db and then edit the config file to reflect the new db settings.
StorHost Inc.
"Intelligent Infrastructure"
Managed Servers | Off-Site Data Back Up | Managed Solutions.
Pappnase

Post by Pappnase »

hello

please look here. :wink:

http://www.phpwcms.de/forum/viewtopic.php?t=578

Pappnase
tmoura
Posts: 10
Joined: Fri 9. Jan 2004, 19:54
Location: Sanford
Contact:

Post by tmoura »

PHP isnt runnig in safe mode. Also, I wish the posts could convert to English.

http://www.renaxsolutions.com/edgepanel/sysinfo.php
StorHost Inc.
"Intelligent Infrastructure"
Managed Servers | Off-Site Data Back Up | Managed Solutions.
tmoura
Posts: 10
Joined: Fri 9. Jan 2004, 19:54
Location: Sanford
Contact:

Post by tmoura »

I installed the previous version of the phpwcms and have no problems uploding an image and having the thumbnail generated.
StorHost Inc.
"Intelligent Infrastructure"
Managed Servers | Off-Site Data Back Up | Managed Solutions.
nrpil
Posts: 1
Joined: Mon 22. Dec 2003, 11:57

Post by nrpil »

I think i know what your problem is, the files you uploaded to be taken over have the wrong permissions. The webserver cannot read them.
tmoura
Posts: 10
Joined: Fri 9. Jan 2004, 19:54
Location: Sanford
Contact:

Post by tmoura »

nrpil wrote:I think i know what your problem is, the files you uploaded to be taken over have the wrong permissions. The webserver cannot read them.
Well, for some reason the permission were not being kept. I had correctly set all the permissions on the 5 other times I had tried to get the new version to work.
StorHost Inc.
"Intelligent Infrastructure"
Managed Servers | Off-Site Data Back Up | Managed Solutions.
User avatar
pSouper
Posts: 1552
Joined: Tue 11. Nov 2003, 15:45
Location: London
Contact:

Post by pSouper »

are you still usingin the old database?
I am and I am not. I
took the old DB and clear it out so it was empty. Then reinstalled the app
as there are new database entires in the new install you are probably 'dropping' the old database and re-running the startup to rebuild new database from scratch. noy just the contents over an empty, but old database structure.
tmoura
Posts: 10
Joined: Fri 9. Jan 2004, 19:54
Location: Sanford
Contact:

Post by tmoura »

Well, I had gone in an deleted the db and made a completly new one. I then installed fresh and performed a standard install. The cms was there but kept getting the image upload problems with not being able to write to storage.

So, I deleted everything and then built a new db, and installed the previous version and poof, no issues.
StorHost Inc.
"Intelligent Infrastructure"
Managed Servers | Off-Site Data Back Up | Managed Solutions.
User avatar
Oliver Georgi
Site Admin
Posts: 9892
Joined: Fri 3. Oct 2003, 22:22
Contact:

Post by Oliver Georgi »

Send me an FTP login and db data - I can check for you.

Oliver
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
User avatar
Oliver Georgi
Site Admin
Posts: 9892
Joined: Fri 3. Oct 2003, 22:22
Contact:

Post by Oliver Georgi »

Can somebody check the following:

In files.private.upload.tmpl.php change line 81 to:

Code: Select all

//$oldumask = umask(0);
line 88 to:

Code: Select all

$oldumask = umask(0);
line 96 to:

Code: Select all

umask($oldumask);
and line 135 to:

Code: Select all

//umask($oldumask);
or if this is setted then the reverse form:
line 81 to:

Code: Select all

$oldumask = umask(0);
line 88 to:

Code: Select all

//$oldumask = umask(0);
line 96 to:

Code: Select all

//umask($oldumask);
and line 135 to:

Code: Select all

umask($oldumask);

Oliver
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
Pappnase

Post by Pappnase »

hello oliver

i've tried your solution! but i won't work!

Still display the same error.

Pappnase
tmoura
Posts: 10
Joined: Fri 9. Jan 2004, 19:54
Location: Sanford
Contact:

Post by tmoura »

Oliver,

Thank you for offering to go in and see what the issue is. I have been hammered here with business and software releases.
StorHost Inc.
"Intelligent Infrastructure"
Managed Servers | Off-Site Data Back Up | Managed Solutions.
Post Reply