vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Beta Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=5)
-   -   vbProArcade Beta 2 (https://vborg.vbsupport.ru/showthread.php?t=42880)

sHORTYWZ 09-04-2002 09:35 PM

I am getting this error when I try and upload images:

safeupload is: 0
tmppath is: /temp
vbProArcade Error: bad file upload (temporary file does not exist!)

I am able to upload avatars, file attachments, etc normally so I don't understand why this is happening.

The only thing I can think of that might be causing this is that I have the attachments as files hack installed which causes my attachments to be stored outside of the DB. Avatars however are still stored in the DB and I have another vB board up on the box which doesn't have that hack installed and can upload files/avatars no problem.

Ideas?

wolfe 09-04-2002 09:40 PM

Current PHP version: 4.1.0

futureal 09-04-2002 09:43 PM

Quote:

Originally posted by mewgood
this is funny
I have replaced the code you gave me, and it works. No more errors
However I still see a broken image..

When you say you replaced the code, you mean you changed that line, or just replaced the file?

To fix the broken image, try this file I am attaching here.

edit: File Updated...

mewgood 09-04-2002 09:46 PM

replaced that line..

futureal 09-04-2002 09:46 PM

Quote:

Originally posted by wolfe
Current PHP version: 4.1.0
Man, I dunno what to say then. I thought that error might be something to do with PHP v4.2.x but I guess not. Are you sure it started up as a result of installing this hack? It doesn't seem like it could be related.

I would suggest posting it in the Support forum here at vb.org and see if one of the main support guys (FireFly, smachol, etc.) could help out -- they are definite more knowledgable about the inner workings of vBulletin than I am.

My only other suggestion is to upgrade to the newest version of vBulletin. Often times that fixes some little, weird errors like that.

mewgood 09-04-2002 09:48 PM

ar..
I got this now...
Quote:

Warning: SAFE MODE Restriction in effect. The script whose uid is 10105 is not allowed to access /tmp/icon-scoreboard.gif owned by uid 2526 in /usr/local/psa/home/vhosts/wcgalaxy.com/httpdocs/vbb/admin/proarcadeadmin.php on line 59

Warning: SAFE MODE Restriction in effect. The script whose uid is 10105 is not allowed to access /tmp/icon-crown.gif owned by uid 2526 in /usr/local/psa/home/vhosts/wcgalaxy.com/httpdocs/vbb/admin/proarcadeadmin.php on line 59
Arcade options updated!

wolfe 09-04-2002 09:48 PM

i think it was the bulletin email generator

futureal 09-04-2002 09:52 PM

Quote:

Originally posted by sHORTYWZ
I am getting this error when I try and upload images:

safeupload is: 0
tmppath is: /temp
vbProArcade Error: bad file upload (temporary file does not exist!)

I am able to upload avatars, file attachments, etc normally so I don't understand why this is happening.

The only thing I can think of that might be causing this is that I have the attachments as files hack installed which causes my attachments to be stored outside of the DB. Avatars however are still stored in the DB and I have another vB board up on the box which doesn't have that hack installed and can upload files/avatars no problem.

Ideas?

This seems really odd to me. You are the first person not running safe mode to have a problem with the icon stuff.

My only idea is, try the file I posted a couple steps back and let me know what happens. The only thing I can think of is that it is a problem with the $tmppath variable.

sHORTYWZ 09-04-2002 09:55 PM

Same deal :

safeupload is: 0
tmppath is: /temp
vbProArcade Error: bad file upload (temporary file does not exist!)

futureal 09-04-2002 10:04 PM

Another new file here: https://vborg.vbsupport.ru/showthrea...467#post295467

Download it again and let me know what happens.

I am really stumped on this one. I have double checked my code against the same routines that vBulletin uses for avatar uploads, and the same commands are being executed. Very odd...

wolfe 09-04-2002 10:06 PM

i also can't upload it does but shows with red X

mewgood 09-04-2002 10:06 PM

for me?

wolfe 09-04-2002 10:07 PM

when i try to upload pics in the arcade admin it shows white box with red X

mewgood 09-04-2002 10:08 PM

If that file is for me, I got an error
Quote:

safeupload is: 1
tmppath is: tmp
path is /tmp/icon-scoreboard.gif

Warning: SAFE MODE Restriction in effect. The script whose uid is 10105 is not allowed to access /tmp/icon-scoreboard.gif owned by uid 2526 in /usr/local/psa/home/vhosts/wcgalaxy.com/httpdocs/vbb/admin/proarcadeadmin.php on line 63
vbProArcade Error: is not a valid file type for images (only gif/jpg/png are supported)

Arcade options updated!

sHORTYWZ 09-04-2002 10:10 PM

safeupload is: 0
tmppath is: /temp
vbProArcade Error: [su0] bad file upload (temporary file does not exist!)

Arcade options updated!

sHORTYWZ 09-04-2002 10:14 PM

Although this won't really fix the question as to why this is happening, how about adding an option to pull the images off of the webserver instead of from the db?

futureal 09-04-2002 10:14 PM

sHORTYWZ: Try this file. At the very least, it should return a bit more info for us to try and figure out what is going on. The only thing I can think of is that the script is not getting the path to the temp directory correctly.

mewgood: You can try this one as well -- I'd like to see what version of PHP your server is running.

futureal 09-04-2002 10:15 PM

Quote:

Originally posted by sHORTYWZ
Although this won't really fix the question as to why this is happening, how about adding an option to pull the images off of the webserver instead of from the db?
That is probably what I will end up doing... even though it is working for the majority of the people, it looks like with different php versions and server configurations, it will be difficult to get just right.

mewgood 09-04-2002 10:17 PM

your php version is: 4.1.0

sHORTYWZ 09-04-2002 10:18 PM

your php version is: 4.2.2
safeupload is: 0
tmppath is: /temp
vpafile is c:tempphp1F81.tmp
vbProArcade Error: [su0] bad file upload (temporary file does not exist!)

Doesn't look like it's parsing the temp directory correctly..

As far as the other idea, it would reduce queries on the DB as well (not very many, but some people are paranoid)

futureal 09-04-2002 10:21 PM

Quote:

Originally posted by sHORTYWZ
your php version is: 4.2.2
safeupload is: 0
tmppath is: /temp
vpafile is c:tempphp1F81.tmp
vbProArcade Error: [su0] bad file upload (temporary file does not exist!)

Doesn't look like it's parsing the temp directory correctly..

You're not running this on a Windows box by any chance, are you? :)

(if you ARE, then I think I may know how to fix it... the file_exists() function needs some addition parameters to work with Windows...)

sHORTYWZ 09-04-2002 10:23 PM

Unless they added a really nifty GUI and a microsoft logo to linux, I think so =)

futureal 09-04-2002 10:25 PM

Quote:

Originally posted by sHORTYWZ
Unless they added a really nifty GUI and a microsoft logo to linux, I think so =)
Haha, knowing Microsoft, I'm surprised they haven't. :)

What about web browsers -- which browser/version are you uploading with?

Normally, it should look something like this:

Quote:

your php version is: 4.2.0
safeupload is: 0
tmppath is: /tmp
vpafile is /tmp/phpQO1QyH

mewgood 09-04-2002 10:27 PM

hm..
do you have any idea whats going on? Or whats wrong???

Link14716 09-04-2002 10:28 PM

Any news on Frogger? :)

sHORTYWZ 09-04-2002 10:29 PM

IE 6 - whatever comes with XP..

futureal 09-04-2002 10:30 PM

Quote:

Originally posted by mewgood
hm..
do you have any idea whats going on? Or whats wrong???

Did yours work OK at one point, or did it never work? I can't remember if I fixed it and then broke it again or not.

futureal 09-04-2002 10:30 PM

Quote:

Originally posted by Link14716
Any news on Frogger? :)
Not yet. I really have been too busy doing debugging to modify any more games...

mewgood 09-04-2002 10:31 PM

Quote:

Originally posted by Link14716
Any news on Frogger? :)
dont think so...
He is fixing the upload problem...

mewgood 09-04-2002 10:31 PM

Quote:

Originally posted by futureal


Did yours work OK at one point, or did it never work? I can't remember if I fixed it and then broke it again or not.

no didn't work. Not even 1 time..After i upload all I see is errors and a box with a red X inside:(
:(

futureal 09-04-2002 10:33 PM

Quote:

Originally posted by sHORTYWZ
IE 6 - whatever comes with XP..
Man, I am stumped on that. If I knew what condition in the system was causing that behavior, I could just add some code to re-parse the file correctly... but even so, that's kind of a lame solution.

Does custom avatar uploading work on your vBulletin? I will go back and look over that code for the umpteenth time to see what I am doing wrong...

mewgood 09-04-2002 10:35 PM

Yes, upload avatars is working for me..

sHORTYWZ 09-04-2002 10:36 PM

Yeah it does.. I just went and rechecked to be sure. Deleted my avatar and reuploaded another one succesfully.

It looks like it's not parsing \'s correctly - my php.ini temp directory is c:\temp

futureal 09-04-2002 10:38 PM

Alright, I'm going to dump my function and start over. Give me about 15 minutes to try a new one and we'll see what it can do.

mewgood 09-04-2002 10:40 PM

ok
hope it will works:D

Link14716 09-04-2002 10:46 PM

To tell you the truth, I am going to try and save us all the pain and agony andf make it where you upload the files to the images directory. I get red x's to ;)

EDIT: Nvm, I don't ;)

Link14716 09-04-2002 10:56 PM

To fix the Red X's for ivcons in the admin center:

Open proarcadeadmin.php:
Find
Code:

<img src=\"/forum
Replace With (3 Times)
Code:

<img src=\"..

futureal 09-04-2002 11:13 PM

That was already fixed, actually. I haven't updated the main zip yet (was waiting on this other problem...)

The best way is actually to replace "/forum/proimage.php" with "$bburl/proimage.php" to keep format with the rest of the code.

Sorry for missing that in the original hack, it snuck in there. :)

futureal 09-04-2002 11:17 PM

OK, for anybody still watching from earlier, give this a shot and report back what it does/says. Thanks!

sHORTYWZ 09-04-2002 11:22 PM

Works! =)


All times are GMT. The time now is 05:11 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02501 seconds
  • Memory Usage 1,819KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (14)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete