Page 1 of 1

Problem with image upload

Posted: Fri 9. Jan 2004, 19:58
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.

Posted: Fri 9. Jan 2004, 20:11
by frold
are you still usingin the old database?

Posted: Fri 9. Jan 2004, 20:48
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.

Posted: Fri 9. Jan 2004, 22:20
by Pappnase
hello

please look here. :wink:

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

Pappnase

Posted: Fri 9. Jan 2004, 22:55
by tmoura
PHP isnt runnig in safe mode. Also, I wish the posts could convert to English.

http://www.renaxsolutions.com/edgepanel/sysinfo.php

Posted: Fri 9. Jan 2004, 23:29
by tmoura
I installed the previous version of the phpwcms and have no problems uploding an image and having the thumbnail generated.

Posted: Sat 10. Jan 2004, 18:17
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.

Posted: Sat 10. Jan 2004, 19:07
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.

Posted: Sat 10. Jan 2004, 20:29
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.

Posted: Sun 11. Jan 2004, 07:23
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.

Posted: Sun 11. Jan 2004, 08:19
by Oliver Georgi
Send me an FTP login and db data - I can check for you.

Oliver

Posted: Sat 17. Jan 2004, 13:03
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

Posted: Sat 17. Jan 2004, 13:17
by Pappnase
hello oliver

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

Still display the same error.

Pappnase

Posted: Sat 17. Jan 2004, 15:50
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.