Log inUsernamePassword
Log me on automatically each visit    
Register
Register
Log in to check your private messages
Log in to check your private messages
CJ Webmaster Forums Forum Index -> PHP Scripts » CJ Dynamic Poll

Post new topic   Reply to topic
Warning: dir(/polldata): failed to open dir: :S
View previous topic :: View next topic  
Author Message
xkid
New User


Joined: 23 Feb 2005
Posts: 2

PostPosted: Tue May 24, 2005 11:29 am    Post subject: Warning: dir(/polldata): failed to open dir: :S Reply with quote

Hi! I'm trying get CJ poll at the same page as my Gallery-script.
I use the wrapper.footer.default for the inclusion, but i get this error:



Warning: dir(/polldata): failed to open dir: No such file or directory in /home/hvemfaen/public_html/bilder/poll/poll.php on line 111

Fatal error: Call to a member function on a non-object in /home/hvemfaen/public_html/bilder/poll/poll.php on line 114




i can see my poll, but when i vote i get this mountain of errors:




Warning: submitvote(): Failed opening '' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/hvemfaen/public_html/bilder/poll/submit_vote.php on line 7

Warning: fread(): supplied argument is not a valid stream resource in /home/hvemfaen/public_html/bilder/poll/submit_vote.php on line 9

Warning: fputs(): supplied argument is not a valid stream resource in /home/hvemfaen/public_html/bilder/poll/submit_vote.php on line 15

Warning: fclose(): supplied argument is not a valid stream resource in /home/hvemfaen/public_html/bilder/poll/submit_vote.php on line 16

Warning: fputs(): supplied argument is not a valid stream resource in /home/hvemfaen/public_html/bilder/poll/submit_vote.php on line 19

Warning: fputs(): supplied argument is not a valid stream resource in /home/hvemfaen/public_html/bilder/poll/submit_vote.php on line 20

Warning: fputs(): supplied argument is not a valid stream resource in /home/hvemfaen/public_html/bilder/poll/submit_vote.php on line 21

Warning: fputs(): supplied argument is not a valid stream resource in /home/hvemfaen/public_html/bilder/poll/submit_vote.php on line 22

Warning: fputs(): supplied argument is not a valid stream resource in /home/hvemfaen/public_html/bilder/poll/submit_vote.php on line 23

Warning: fputs(): supplied argument is not a valid stream resource in /home/hvemfaen/public_html/bilder/poll/submit_vote.php on line 24

Warning: fputs(): supplied argument is not a valid stream resource in /home/hvemfaen/public_html/bilder/poll/submit_vote.php on line 25

Warning: fputs(): supplied argument is not a valid stream resource in /home/hvemfaen/public_html/bilder/poll/submit_vote.php on line 26

Warning: fputs(): supplied argument is not a valid stream resource in /home/hvemfaen/public_html/bilder/poll/submit_vote.php on line 27

Warning: fputs(): supplied argument is not a valid stream resource in /home/hvemfaen/public_html/bilder/poll/submit_vote.php on line 28

Warning: fputs(): supplied argument is not a valid stream resource in /home/hvemfaen/public_html/bilder/poll/submit_vote.php on line 29

Warning: fputs(): supplied argument is not a valid stream resource in /home/hvemfaen/public_html/bilder/poll/submi



I think the urls are correct, the root url to the script is:

/home/hvemfaen/public_html/bilder/poll/

Can anyone help me out here? Smile
Back to top
View user's profile Send private message
GodfatherUK
CJ-Design.com Moderator



Joined: 17 Sep 2004
Posts: 226
Location: UK

PostPosted: Tue May 24, 2005 8:26 pm    Post subject: Reply with quote

Please note the config states next to the $your_url

Code:
// your URL to poll files no trailing slash


So make sure there is no trailing slash in the directory Smile

For my $your_url i actually have it set as

Code:
$your_url = "http://www.godfatheruk.com/polls";


and that works fine for me Smile
_________________
GodfatherUK
CJ Designs Forum Moderator

"I dont think i am good at coding.. But i KNOW im good at helping"
Back to top
View user's profile Send private message Send e-mail Visit poster's website
xkid
New User


Joined: 23 Feb 2005
Posts: 2

PostPosted: Sat May 28, 2005 12:52 am    Post subject: Reply with quote

Thanks for the reply Smile

It works ok for me too, but it has some quite annoying bugs, though :S

1. When people vote, they're being sent to a blank page (they have to click "back" to get back to the main site..)
2. In my main page, they see "you have already voted" but in my gallery page they dont get this message before they try to vote again..

I know it's not a big deal, but it would be excellent to fix it.. Razz
Back to top
View user's profile Send private message
darkcarnival
CJ-Design.com Admin



Joined: 10 Jul 2003
Posts: 1389
Location: Michigan

PostPosted: Sat May 28, 2005 2:05 am    Post subject: Reply with quote

im curious about why you have to have the files in the same folder.
_________________
Admin of CJ-Design Forum
watch out spammers, I'm watching you! Twisted Evil

Elite Bulletin Board v0.5 try it out today!
http://www.elite-board.z42.us/

version 0.9 coming soon!
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
PHPDUMMY
CJ-Design.com Moderator



Joined: 09 Mar 2005
Posts: 569
Location: South East Kentucky,U.S.A.

PostPosted: Sat May 28, 2005 2:22 am    Post subject: Reply with quote

I'm gonna bet on this... i bet that either he's just wanting to keep the file manager tidy or , the host only allows scripting to run in a designated folder.......mixed between those two.

I try to keep everything in one folder personally because of tidyness.
_________________
Cheers,
Danny
C-J Search Engine All Tidied Up V4.0http://www.cj-design.com/forum/viewtopic.php?t=1820

C-J Search Engine MySQL !http://www.cj-design.com/forum/viewtopic.php?t=1555
Back to top
View user's profile Send private message
darkcarnival
CJ-Design.com Admin



Joined: 10 Jul 2003
Posts: 1389
Location: Michigan

PostPosted: Sun May 29, 2005 2:08 am    Post subject: Reply with quote

well if its the 2nd reason i would switch hosts as that would upset me

i like to put files in the folder of which its ment to go in(thats my way of tidy)
_________________
Admin of CJ-Design Forum
watch out spammers, I'm watching you! Twisted Evil

Elite Bulletin Board v0.5 try it out today!
http://www.elite-board.z42.us/

version 0.9 coming soon!
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
PHPDUMMY
CJ-Design.com Moderator



Joined: 09 Mar 2005
Posts: 569
Location: South East Kentucky,U.S.A.

PostPosted: Sun May 29, 2005 3:29 am    Post subject: Reply with quote

Well , I guess thats what I meant in a way.... I mean like the counter , I'll put everything related to it in one folder and then reference it from wherever.... so i guess thats tidy enuff 4 me anyway..
_________________
Cheers,
Danny
C-J Search Engine All Tidied Up V4.0http://www.cj-design.com/forum/viewtopic.php?t=1820

C-J Search Engine MySQL !http://www.cj-design.com/forum/viewtopic.php?t=1555
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    CJ Webmaster Forums Forum Index -> PHP Scripts » CJ Dynamic Poll All times are GMT
Page 1 of 1

 
Jump to:  
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

Powered by phpBB © 2001, 2002 phpBB Group
iCGstation v1.0 Template By Ray © 2003, 2004 iOptional, Mods by CJ Website Design