Better, no way!Eddy wrote:I`am improving this rate extension with more options,just wait
5 Star + Thumb + Hearts Rate Extension + translate variable
- BaconFries
-
- Posts: 4717
- Joined: Thu Aug 16, 2007 7:32 pm
Php Rater Bug
I insert the php rater in a wysiwyg .php page.
When published, I get this error:
Warning: fopen(item_1.rating) [function.fopen]: failed to open stream: Permission denied in /home/todo/domains/mydomain.com/public_html/prueba/rater.php on line 86
Warning: fclose(): supplied argument is not a valid stream resource in /home/todo/domains/mydomain.com/public_html/prueba/rater.php on line 87
Any idea on how to fix it?
Thanks
When published, I get this error:
Warning: fopen(item_1.rating) [function.fopen]: failed to open stream: Permission denied in /home/todo/domains/mydomain.com/public_html/prueba/rater.php on line 86
Warning: fclose(): supplied argument is not a valid stream resource in /home/todo/domains/mydomain.com/public_html/prueba/rater.php on line 87
Any idea on how to fix it?
Thanks
Code: Select all
I only have Rater.php file (with chmod 777)
and a Stars dir with png files.
On your server.1) Where can I find "Rater" and "Proses" files you mention ?
2) How can I know if I have php safe mode off in cpanel ?
You can ask your hosting compagny.
Ask them also about the error message ,maybe they know how to solve it or what they have to change on the server to make it work.
This is where you have the error,
Code: Select all
}
fclose($rater_file);
}else{
$rater_file=fopen($rater_filename,"w");
fclose($rater_file);
}
The rate file what stores the ratings is generated after the first rating on your server.(item_1.rating)
Have u tried changing the permission to 777 right after the file item1.rating is created?
cmod the file item1.rating to 777
Please contact your hosting maybe they can help you if cmod to 777 das not solve your problem.
Have u tried changing the permission to 777 right after the file item1.rating is created?
cmod the file item1.rating to 777
Please contact your hosting maybe they can help you if cmod to 777 das not solve your problem.
hey...
I was messing around with the NEW star rater (80 max)
I deleted (item_1.rating ) from my server & now when I re-upload the Star rater extention
the upload dosnt put the nessesary file back...........hmmmm
I have tried uploading the entire site to get it to work but still
wont upload the file item_1.rating
See example here http://www.highwaytrucker.com/talent.php
Regards V8
I was messing around with the NEW star rater (80 max)
I deleted (item_1.rating ) from my server & now when I re-upload the Star rater extention
the upload dosnt put the nessesary file back...........hmmmm
I have tried uploading the entire site to get it to work but still
wont upload the file item_1.rating
See example here http://www.highwaytrucker.com/talent.php
Regards V8
item_1.rating is generated on your server after the first rating,please read previous posts about the same problem.
It looks that the rater das not work on your server ,something on your server is not configured for this script ( fopen) I have read this from other users to but dont know how to change the php to make it work on al servers.
Contact your hosting maybe they know what todo.
Your error code:
http://nl2.php.net/function.fopen
It looks that the rater das not work on your server ,something on your server is not configured for this script ( fopen) I have read this from other users to but dont know how to change the php to make it work on al servers.
Contact your hosting maybe they know what todo.

Your error code:
Maybe you can use this?Warning: fopen(item_5.rating) [function.fopen]: failed to open stream: Permission denied in /home/v84x4/public_html/rater.php on line 35
Warning: fread(): supplied argument is not a valid stream resource in /home/v84x4/public_html/rater.php on line 37
Warning: fwrite(): supplied argument is not a valid stream resource in /home/v84x4/public_html/rater.php on line 60
Warning: fclose(): supplied argument is not a valid stream resource in /home/v84x4/public_html/rater.php on line 63
Warning: fopen(item_5.rating) [function.fopen]: failed to open stream: Permission denied in /home/v84x4/public_html/rater.php on line 86
Warning: fclose(): supplied argument is not a valid stream resource in /home/v84x4/public_html/rater.php on line 87
http://nl2.php.net/function.fopen
-
-
- Posts: 39
- Joined: Sun Feb 22, 2009 1:59 am
Great extension, really useful - just a thought, would be even better ( for my purposes anyway) if placing a comment required a login ie only registered members can place a rating.
The other thought that I had:
If, for example, you had the rating extension on an individual products page (ie with main image, product details, buy now etc), but also had a product list somewhere else with just a thumbnail & brief description, etc. It would be really useful to be able to display just the star rating & av rating text (without 'rate this' option etc) and have this shortened version linked back to the original rating extension so when ratings are made both displays are updated.
Unfortunately I have zero extension building ability so its well beyond me.
Anyway, top extension. Thanks!
The other thought that I had:
If, for example, you had the rating extension on an individual products page (ie with main image, product details, buy now etc), but also had a product list somewhere else with just a thumbnail & brief description, etc. It would be really useful to be able to display just the star rating & av rating text (without 'rate this' option etc) and have this shortened version linked back to the original rating extension so when ratings are made both displays are updated.
Unfortunately I have zero extension building ability so its well beyond me.
Anyway, top extension. Thanks!
-
-
- Posts: 39
- Joined: Sun Feb 22, 2009 1:59 am
Getting error as above, can someone please supply the file for item_1.rate so I can upload to server. Or is this not the solution? Not really familiar wih this sort of thing.Warning: fopen(item_1.rating) [function.fopen]: failed to open stream: Permission denied in /home/travel/domains/travel.co.nz/public_html/rater.php on line 35
Warning: fread(): supplied argument is not a valid stream resource in /home/travel/domains/travel.co.nz/public_html/rater.php on line 37
Warning: fwrite(): supplied argument is not a valid stream resource in /home/travel/domains/travel.co.nz/public_html/rater.php on line 60
Warning: fclose(): supplied argument is not a valid stream resource in /home/travel/domains/travel.co.nz/public_html/rater.php on line 63
Warning: fopen(item_1.rating) [function.fopen]: failed to open stream: Permission denied in /home/travel/domains/travel.co.nz/public_html/rater.php on line 86
Warning: fclose(): supplied argument is not a valid stream resource in /home/travel/domains/travel.co.nz/public_html/rater.php on line 87