Page 2 of 4

Posted: Thu Apr 23, 2009 10:24 pm
by star57
Eddy wrote:I`am improving this rate extension with more options,just wait :wink:
Better, no way!

Posted: Sun Apr 26, 2009 8:26 am
by Eddy
New updates ,look in the first post :wink:

Posted: Sun Apr 26, 2009 12:35 pm
by BaconFries
WOW as the words of the song......
"Things can only get better Can only get better"
thx Eddy......

Posted: Sun Apr 26, 2009 2:09 pm
by Eddy
What are the difference between the 1st (with translation) and the others
I did write an answer in the first post.

Php Rater Bug

Posted: Tue Jun 09, 2009 11:56 pm
by rolo
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

Posted: Wed Jun 10, 2009 10:02 am
by Eddy
There are two files,the proses file and the rate file.

check the file permissions - they are probably set in a way that the web server cannot open it.

Cmod to 755 or 777
Look also if php safe mode is off.

Posted: Thu Jun 11, 2009 11:59 am
by rolo
I only have Rater.php file (with chmod 777)

and a Stars dir with png files.

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 ?

Thanks !

Posted: Thu Jun 11, 2009 12:18 pm
by Eddy

Code: Select all

I only have Rater.php file (with chmod 777) 
and a Stars dir with png files.
The rate file what stores the ratings is generated after the first rating on your server.(item_1.rating)
1) Where can I find "Rater" and "Proses" files you mention ?
On your server.
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);
}

Posted: Tue Jul 07, 2009 12:37 am
by Eddy
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.

Posted: Sat Sep 19, 2009 6:26 pm
by v84x4
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

Posted: Sat Sep 19, 2009 8:19 pm
by Eddy
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:
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
Maybe you can use this?
http://nl2.php.net/function.fopen

Posted: Mon Sep 21, 2009 2:59 am
by v84x4
I manually created the item_1.rate and then chmod it to 666. All works now.

Thank you eddy This is a great estention

Regards V8

Posted: Mon Sep 21, 2009 6:51 am
by Eddy
manually created the item_1.rating and then chmod it to 666.

Never thought about that,maybe this works for others to :?

Posted: Wed Sep 23, 2009 6:06 am
by brassnugget
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!

Posted: Wed Sep 23, 2009 8:49 am
by brassnugget
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
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.