Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Modules
Author Message
frtaz
New Member
New Member



Joined: Nov 10, 2005
Posts: 6

PostPosted: Sat Nov 12, 2005 11:37 am Reply with quote

I have a question for someone today about ePhotoVote 2.5 with phpnuke 7.6. It is not showing the Photos at all it is showing the RED X. I am also geting these error messages too. Can ePhotoVote 2.5 work with phpnuke 7.6?

This Is the first code I got when you click on the Photovote link on the home page of the site.
Warning: mysql_data_seek(): Offset 0 is invalid for MySQL result index 177 (or the query data is unbuffered) in /home/www/public_html/Home/modules/PhotoVote/index.php on line 41

This is the code I get when you try to upload a Photo.
Warning: copy(Array): failed to open stream: No such file or directory in /home/www/public_html/Home/modules/PhotoVote/upload.php on line 33

This is what I get when I try to go on to the admins page
No no-valid records

It did tell me that i need to CHMOD pollPhotos to 777this is where the photos ar uploaded at. and I did

The link to my site is [admin removed due to policy]
It is an Adult Site

This is the link to where I downloaded it at [ Only registered users can see links on this board! Get registered or login! ]
 
View user's profile Send private message
Raven
Site Admin/Owner



Joined: Aug 27, 2002
Posts: 17088

PostPosted: Sat Nov 12, 2005 11:52 am Reply with quote

I would think this is the key to your problem
No such file or directory in /home/www/public_html/Home/modules/PhotoVote/upload.php

That clearly states that you are missing a file or the file has the wrong permissions. Due to my policies, I have removed your link. I do appreciate you warning everyone though Wink
 
View user's profile Send private message
frtaz







PostPosted: Sat Nov 12, 2005 12:11 pm Reply with quote

I have tried to CHMOD some file and I reuploaded the file and I still the same thing.

Thank you for taking down the link and not the post. I did not see that in the rules the first time.
 
Raven







PostPosted: Sat Nov 12, 2005 12:14 pm Reply with quote

It probably is not there. I will add it if it's not. It's a personal standard/policy, no offense meant Smile

So you are positive that the upload.php file exists in a folder called Home/modules/PhotoVote/upload.php? *nix is case sensitive. Make sure that the folder/file is EXACTLY spelled correctly.
 
frtaz







PostPosted: Sat Nov 12, 2005 3:00 pm Reply with quote

yes I check it And the upload.php is in the PhotoVote folder. and the pollPhoto folder is CHMOD to 777 oh and I did upload the SQL.file by phpMyAdmin also

no offense was taken, I did not want to step on anyones feet that is why I put it as an Adultsite.
 
Raven







PostPosted: Sat Nov 12, 2005 3:40 pm Reply with quote

If you would like to PM me your
site url, adminid/pass
ftp url, id/pass

I will take a look later when I have some time.
 
Raven







PostPosted: Sat Nov 12, 2005 10:13 pm Reply with quote

Sorry, I misread that error message. Warning: copy(Array): failed to open stream: No such file or directory in /home/www/public_html/Home/modules/PhotoVote/upload.php on line 33 is saying that the copy instruction at line 33 if(copy("$userfile", "$Root/$id.$imageType")) is not able to be executed. The copy command attempts to copy file1 -> file2, or in this case, $userfile -> $Root/$id.$imageType. The fact that it says copy(Array) would imply that $username is not a file, but an array. You need to add some debug code to upload.php.

Presently your line 33 reads if(copy("$userfile", "$Root/$id.$imageType")). Insert this line of code on line 32 -
echo '$userfile = '.$userfile.'<br />Destination = '."$Root/$id.$imageType";
die();


Now when you try the upload again you should see what the problem is.
 
frtaz







PostPosted: Sat Nov 12, 2005 10:56 pm Reply with quote

Ok this is what I get now when I uploaded a Photo.
$userfile = Array
Destination= /home/www/public_html/Home/modules/PhotoVote/pollPhotos/1.jpg

but now I get this when I go to the PhotoVote page (the first code I get).
Warning: mysql_data_seek(): Offset 0 is invalid for MySQL result index 176 (or the query data is unbuffered) in /home/www/public_html/Home/modules/PhotoVote/index.php on line 41


It was index 177 and now it is index 176
 
Raven







PostPosted: Sat Nov 12, 2005 11:50 pm Reply with quote

As long as that debug code is in there the script can't complete because of the die(); statement. It kills it. You can remove it now. The $userfile = Array looks to be your problem. It's just a guess, since I don't know the application, but my bet is that $userfile is supposed to be the name of the photo and not an Array object. I would suggest that for expediency sake, you contact the author and/or his support forum and explain that $username is an Array object and not a file name and ask what is going wrong. There could be someone reading this that knows the application and can help you, but I would have to dig into the script and that's not a freebie Wink
 
frtaz







PostPosted: Sun Nov 13, 2005 9:21 am Reply with quote

Thank you for your help on this I will check with eComJunk.com about this. When I get it going or if I do, I will post what I did.
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Modules

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©