View previous topic :: View next topic |
Author |
Message |
xkid New User
Joined: 23 Feb 2005 Posts: 2
|
Posted: Tue May 24, 2005 11:29 am Post subject: Warning: dir(/polldata): failed to open dir: :S |
|
|
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?  |
|
Back to top |
|
GodfatherUK CJ-Design.com Moderator
Joined: 17 Sep 2004 Posts: 226 Location: UK
|
Posted: Tue May 24, 2005 8:26 pm Post subject: |
|
|
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
For my $your_url i actually have it set as
Code: | $your_url = "http://www.godfatheruk.com/polls"; |
and that works fine for me  _________________ GodfatherUK
CJ Designs Forum Moderator
"I dont think i am good at coding.. But i KNOW im good at helping" |
|
Back to top |
|
xkid New User
Joined: 23 Feb 2005 Posts: 2
|
Posted: Sat May 28, 2005 12:52 am Post subject: |
|
|
Thanks for the reply
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..  |
|
Back to top |
|
darkcarnival CJ-Design.com Admin

Joined: 10 Jul 2003 Posts: 1389 Location: Michigan
|
Posted: Sat May 28, 2005 2:05 am Post subject: |
|
|
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!
Elite Bulletin Board v0.5 try it out today!
http://www.elite-board.z42.us/
version 0.9 coming soon! |
|
Back to top |
|
PHPDUMMY CJ-Design.com Moderator
Joined: 09 Mar 2005 Posts: 569 Location: South East Kentucky,U.S.A.
|
|
Back to top |
|
darkcarnival CJ-Design.com Admin

Joined: 10 Jul 2003 Posts: 1389 Location: Michigan
|
Posted: Sun May 29, 2005 2:08 am Post subject: |
|
|
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!
Elite Bulletin Board v0.5 try it out today!
http://www.elite-board.z42.us/
version 0.9 coming soon! |
|
Back to top |
|
PHPDUMMY CJ-Design.com Moderator
Joined: 09 Mar 2005 Posts: 569 Location: South East Kentucky,U.S.A.
|
|
Back to top |
|
|