"Select a file you wish to upload" error!

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Post Reply
jtnygren
Posts: 10
Joined: Sun 28. Mar 2004, 14:38
Location: Nokia, Finland

"Select a file you wish to upload" error!

Post by jtnygren »

Hello! I changed webserver, copied files to new server and imported SQL dump to new database.

Everything else worked fine, but picture UPLOAD is not working anymore. I use newest 1.1RC4 release. Everytime I try to upload file, phpWcms says that "Select a file you wish to upload".

Files and dirs are chmodded and all paths are correct. Server has phpupload on.

Do you have any ideas??
jtnygren
Posts: 10
Joined: Sun 28. Mar 2004, 14:38
Location: Nokia, Finland

Post by jtnygren »

Could it be becouse register globals is off (not possible to change in this situation)? It seems that phpWCMS loses file parameter on the way to upload.

Dont you have any ideas? Oliver??

Thanks for the best CMS!
Pappnase

Post by Pappnase »

hello

please could you make a screeshot!?
i try to follow you buu i can't!*smile*
snobba
Posts: 166
Joined: Sat 6. Mar 2004, 12:41
Location: Sweden
Contact:

Post by snobba »

I had this problem to once and I think it was that the GD or ImageMagick configs were different. Did you try to tweek them in your config file? I had ImageMagick on when the server didn't have it...I think...

/ Martin
User avatar
pSouper
Posts: 1552
Joined: Tue 11. Nov 2003, 15:45
Location: London
Contact:

Post by pSouper »

maybe you don't own the files anymore. can you view the ownership of the file?
can you use CHOWN to reclaim the files?
jtnygren
Posts: 10
Joined: Sun 28. Mar 2004, 14:38
Location: Nokia, Finland

Post by jtnygren »

Here are my image configs from conf.inc.php:

$phpwcms["imagick"] = 0; //if 0 = GD, 1 = ImageMagick
$phpwcms["imagick_path"] = ""; //Path to ImageMagick
$phpwcms["use_gd2"] = 1; //if 0 = GD1, 1 = GD2

and here are screenshots:
Image

Everything should be OK, but when I press upload files ::

Image

same error every time. And it is not becouse my firewall settings, becouse it works still to my old server..
jtnygren
Posts: 10
Joined: Sun 28. Mar 2004, 14:38
Location: Nokia, Finland

Post by jtnygren »

pSouper wrote:maybe you don't own the files anymore. can you view the ownership of the file?
can you use CHOWN to reclaim the files?
I can upload same files to my other installs on different servers...
jtnygren
Posts: 10
Joined: Sun 28. Mar 2004, 14:38
Location: Nokia, Finland

Post by jtnygren »

snobba wrote:I had this problem to once and I think it was that the GD or ImageMagick configs were different. Did you try to tweek them in your config file? I had ImageMagick on when the server didn't have it...I think...
How actually you fixed the problem?? I dont have ImageMagick active and conf-file is now pointing to right GD version (GD1).
Pappnase wrote:please could you make a screeshot!?
i try to follow you buu i can't!*smile*
Do you know now the problem?? any ideas to fix it??

Thanks!
Jakob
Pappnase

Post by Pappnase »

hello

no sorry i have not really an answer for this problem!? what for an browser did you use!? will you try if this work an my domain!? you can test it there if you want!
jtnygren
Posts: 10
Joined: Sun 28. Mar 2004, 14:38
Location: Nokia, Finland

Post by jtnygren »

Pappnase wrote:what for an browser did you use!? will you try if this work an my domain!? you can test it there if you want!
Ok. I think it has something to do with servers security settings. I have tested it with iE, netscape and Opera. Same version works with my other servers.

It seems that server loses uploaded file somewhere and include/inc_tmpl/files.private.upload.tmpl.php (...or something) does not find it anymore when testing with is_uploaded_file() function (This it where phpwcms says "select file you wish to upload"). File should be in $_FILES or $HTTP_POST_FILE but it is not.
User avatar
Oliver Georgi
Site Admin
Posts: 9913
Joined: Fri 3. Oct 2003, 22:22
Contact:

Post by Oliver Georgi »

maybe upload is forbidden or restricted

Check your phpinfo().

Oliver
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
jtnygren
Posts: 10
Joined: Sun 28. Mar 2004, 14:38
Location: Nokia, Finland

Post by jtnygren »

Oliver Georgi wrote:maybe upload is forbidden or restricted
You are maybe right... from my phpinfo():

Code: Select all

file_uploads                         1 1 
upload_max_filesize             512KB 512KB 
... BUT ...

Code: Select all

upload_tmp_dir                    no value no value
I'll try to fix this.. Thanks Oliver
Post Reply