Simple Testimonial Star Rating
Permalink Browser Info Environment
Testing theme for potential client, first time I tried Simple Testimonials. When I created the block it threw an error about N requiring a number, which I came to determine was the star rating. Seems like I must add the star rating if the block is to be created. How can we avoid this?
http://dev.teknoziz.com:8888/mmarts...
http://dev.teknoziz.com:8888/mmarts...
Type: | Discussion |
---|---|
Status: | In Progress |
I receive this error:
An unexpected error occurred. mysqlt error: [-9999: Numeric field type "N" requires numeric value.] in DOQUOTE(, ) < Back to Home
An unexpected error occurred. mysqlt error: [-9999: Numeric field type "N" requires numeric value.] in DOQUOTE(, ) < Back to Home
OK thanks.
I have tested in an other environment and still no luck at replicating unfortunately.
I am running concrete5 5.6.2.1 and foundation 1.6.0. Could you confirm what version you are using please?
Thanks
I have tested in an other environment and still no luck at replicating unfortunately.
I am running concrete5 5.6.2.1 and foundation 1.6.0. Could you confirm what version you are using please?
Thanks
C5 3.6.3.3, Foundation 5 1.6.0
Have a feeling this is related to the latest version of concrete5. Found a similar issue on an other add-on:
https://www.concrete5.org/marketplace/addons/simple-jwplayer-video-p...
We will continue to look in to this.
https://www.concrete5.org/marketplace/addons/simple-jwplayer-video-p...
We will continue to look in to this.
There seems to be an issue with the rating helpers javascript in the latest version of concrete5...
You can side step this by opening the form_setup.php file within the simple testimonial block's folder and changing line 87 from
to
That will prevent using javascript and give you 5 radio buttons instead.
You can side step this by opening the form_setup.php file within the simple testimonial block's folder and changing line 87 from
<?php echo $rt->rating('testimonialRating', $testimonialRating, $includeJavaScript = true);?>
to
<?php echo $rt->rating('testimonialRating', $testimonialRating, $includeJavaScript = false);?>
That will prevent using javascript and give you 5 radio buttons instead.
Yes, but how then do you _remove_ a rating from an existing testimonial... lol.
Well I guess you don't...
If you set a review on a testimonial, I guess this would not change? You could always delete the testimonial block if you really needed to.
The problem here is the issue appears to be within the conrete5 system as this block uses the core ratings functionality. If you really had to bottom this off you could always change the db.xml field type from 'f' to 'C' and give it a size - that would do it. Although this is a little hacky to be honest and I would not recommend it.
If you set a review on a testimonial, I guess this would not change? You could always delete the testimonial block if you really needed to.
The problem here is the issue appears to be within the conrete5 system as this block uses the core ratings functionality. If you really had to bottom this off you could always change the db.xml field type from 'f' to 'C' and give it a size - that would do it. Although this is a little hacky to be honest and I would not recommend it.
I just recreated them and left off the rating. Works fine. Thanks.
Just tested this and could not replicate unfortunately. I could add the block without a rating? Can you offer any more info on this that may help us replicate please?