Fixed Template Errors: xengallery_comment number_format() expects parameter 1 to be double, string given

SneakyDave

Well-known member
Got this error in JS when I tried to edit a comment on a video on my site...

PHP <div class="baseHtml"><h4>Template Errors: xengallery_comment</h4><ol>
<li><i>number_format() expects parameter 1 to be double, string given</i> in /library/XenForo/Locale.php, line 720</li>
</ol></div>

Including this as I think it is part of the reported error...
Code:
{"templateHtml":"\n\n\n<li id=\"comment-4\" class=\"primaryContent commentSimple staff \" data-author=\"BJZ\">\n\n\t<a href=\"members\/bjz.1\/\" class=\"avatar Av1s\" data-avatarhtml=\"true\"><span class=\"img s\" style=\"background-image: url('data\/avatars\/s\/0\/1.jpg?1414705746')\"><\/span><\/a>\n\t\n\t<div class=\"commentInfo\">\n\n\t\t\n\n\t\t<div class=\"commentContent\">\n\t\t\t\n\t\t\t\t\n\n\n\n\t<div class=\"rating\">\n\t\t<dl>\n\t\t\t<dt class=\"prompt muted\">Rating:<\/dt>\n\t\t\t<dd>\n\t\t\t\t<span class=\"ratings\" title=\"\">\n\t\t\t\t\t <span class=\"star \"><\/span\n\t\t\t\t\t\t\t ><span class=\"star \"><\/span\n\t\t\t\t\t\t><span class=\"star \"><\/span\n\t\t\t\t\t\t><span class=\"star \"><\/span\n\t\t\t\t\t\t><span class=\"star \"><\/span>\n\t\t\t\t<\/span>\n\n\t\t\t\t<span class=\"RatingValue\"><span class=\"Number\" itemprop=\"average\"><\/span>\/<span itemprop=\"best\">5<\/span>,<\/span>\n\t\t\t\t<span class=\"Hint\"><\/span>\n\t\t\t<\/dd>\n\t\t<\/dl>\n\t<\/div>\n\n\t\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t<a href=\"members\/bjz.1\/\" class=\"username poster\" dir=\"auto\">BJZ<\/a>\n\t\t\t<article>\n\t\t\t\t<blockquote class=\"ugc baseHtml\">\n\t\t\t\t\t\n\t\t\t\t\t\tThis is great. But it looks like the rating bar needs a little adjustment.\n\t\t\t\t\t\n\t\t\t\t<\/blockquote>\n\t\t\t<\/article>\n\t\t<\/div>\n\n\t\t\n\t\t\t<div class=\"commentMeta\">\n\t\t\t\t<div class=\"privateControls\">\n\t\t\t\t\t\n\t\t\t\t\t<span class=\"item muted\">\n\t\t\t\t\t\t<a href=\"media\/comments\/4\/\" title=\"Permalink\" class=\"datePermalink\"><abbr class=\"DateTime\" data-time=\"1416004346\" data-diff=\"25\" data-datestring=\"Nov 14, 2014\" data-timestring=\"4:32 PM\">Nov 14, 2014 at 4:32 PM<\/abbr><\/a>\n\t\t\t\t\t<\/span>\n\t\t\t\t\t\n\n\t\t\t\t\t\n\t\t\t\t\t\t<a href=\"media\/comments\/4\/edit\" class=\"item control edit OverlayTrigger\"\n\t\t\t\t\t\tdata-href=\"media\/comments\/4\/edit-inline\" data-overlayOptions=\"{&quot;fixed&quot;:false}\"\n\t\t\t\t\t\tdata-messageSelector=\"#comment-4\"><span><\/span>Edit<\/a>\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t<a href=\"media\/comments\/4\/delete\" class=\"item control delete OverlayTrigger\"><span><\/span>Delete<\/a>\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t<a href=\"media\/comments\/4\/ip\" class=\"OverlayTrigger item control ip\" data-cacheOverlay=\"false\"><span><\/span>IP<\/a>\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t<a href=\"media\/comments\/4\/report\" class=\"OverlayTrigger item control report\" data-cacheoverlay=\"false\"><span><\/span>Report<\/a>\n\t\t\t\t\t\n\t\t\t\t<\/div>\n\n\t\t\t\t<div class=\"publicControls\">\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"commentLikes\">\n\t\t\t\t\t<div id=\"likes-xengallery-comment-4\"><\/div>\n\t\t\t\t<\/div>\n\t\t\t<\/div>\n\t\t\n\t<\/div>\n<\/li>","commentId":4,"date":1416004371,"_visitor_conversationsUnread":"0","_visitor_alertsUnread":"0"} xenforo.js?_v=adca6337:3c.extend.handleServerError
 
Dave, could you submit a ticket with login details, please, so I can take a look?

Preferably with Admin CP access so I can access templates etc. to work out and debug what's going wrong here?

Someone else reported something similar, recently but they believed it was something they had done wrong and we didn't get far in debugging it.
 
Back
Top Bottom