Customize plugin and NodeBB 1.13.2


  • When we had 1.12.2 , it was working fine; after upgrading to 1.13.2 Customize plugin gives this error:

    Screen Shot 2020-04-17 at 6.51.42 PM.png

    All of the uploaded images are very very big, but regular profil pics are very very small; so nothing is at the correct size. We know it is nodebb-plugin-customize because when we disable this plugin and rebuild the forum, everything goes to normal...

    Here are the template customizations we have:

    1. this one fixes how forum stats look...
    --- widgets/forumstats.tpl
    +++ custom widgets/forumstats.tpl
    @@ -1,26 +1,25 @@
    -<div class="row forum-stats">
    -	<div class="row">
    -		<div class="col-md-6">
    -			<div class="stats-card {statsClass}">
    -				<h2><span class="stats" title="{online}">{online}</span><br /><small>[[global:online]]</small></h2>
    -			</div>
    -		</div>
    -		<div class="col-md-6">
    -			<div class="stats-card {statsClass}">
    -				<h2><span class="stats" title="{users}">{users}</span><br /><small>[[global:users]]</small></h2>
    -			</div>
    -		</div>
    -	</div>
    -	<div class="row">
    -		<div class="col-md-6">
    -			<div class="stats-card {statsClass}">
    -				<h2><span class="stats" title="{topics}">{topics}</span><br /><small>[[global:topics]]</small></h2>
    -			</div>
    -		</div>
    -		<div class="col-md-6">
    -			<div class="stats-card {statsClass}">
    -				<h2><span class="stats" title="{posts}">{posts}</span><br /><small>[[global:posts]]</small></h2>
    -			</div>
    -		</div>
    -	</div>
    -</div>
    +<div class="row forum-stats">
    +    <div class="row">
    +        <div class="col-md-3 col-xs-3">
    +            <div class="stats-card {statsClass}">
    +                <h2><span class="stats" title="{online}">{online}</span><br /><small>[[global:online]]</small></h2>
    +            </div>
    +        </div>
    +        <div class="col-md-3 col-xs-3">
    +            <div class="stats-card {statsClass}">
    +                <h2><span class="stats" title="{users}">{users}</span><br /><small>[[global:users]]</small></h2>
    +            </div>
    +        </div>
    + 
    +        <div class="col-md-3 col-xs-3">
    +            <div class="stats-card {statsClass}">
    +                <h2><span class="stats" title="{topics}">{topics}</span><br /><small>[[global:topics]]</small></h2>
    +            </div>
    +        </div>
    +        <div class="col-md-3 col-xs-3">
    +            <div class="stats-card {statsClass}">
    +                <h2><span class="stats" title="{posts}">{posts}</span><br /><small>[[global:posts]]</small></h2>
    +            </div>
    +        </div>
    +    </div>
    +</div>
    \ No newline at end of file
    
    
    1. this one adds a pagination box at the top of the pages in topics (somehow plugins does not let me go beyond line 456 even I try to edit the plugin - this might be a related or unrelated bug)
    --- topic.tpl
    +++ custom topic.tpl
    @@ -1,37 +1,82 @@
     <!-- IF breadcrumbs.length -->
    -<ol class="breadcrumb" itemscope="itemscope" itemprop="breadcrumb" itemtype="http://schema.org/BreadcrumbList">
    -	{{{each breadcrumbs}}}
    -	<li<!-- IF @last --> component="breadcrumb/current"<!-- ENDIF @last --> itemscope="itemscope" itemprop="itemListElement" itemtype="http://schema.org/ListItem" <!-- IF @last -->class="active"<!-- ENDIF @last -->>
    -		<meta itemprop="position" content="@index" />
    -		<!-- IF !@last --><a href="{breadcrumbs.url}" itemprop="item"><!-- ENDIF !@last -->
    -			<span itemprop="name">
    +<ol class="breadcrumb">
    +	<!-- BEGIN breadcrumbs -->
    +	<li<!-- IF @last --> component="breadcrumb/current"<!-- ENDIF @last --> itemscope="itemscope" itemtype="http://data-vocabulary.org/Breadcrumb" <!-- IF @last -->class="active"<!-- ENDIF @last -->>
    +		<!-- IF !@last --><a href="{breadcrumbs.url}" itemprop="url"><!-- ENDIF !@last -->
    +			<span itemprop="title">
     				{breadcrumbs.text}
     				<!-- IF @last -->
     				<!-- IF !feeds:disableRSS -->
    -				<!-- IF rssFeedUrl --><a target="_blank" href="{rssFeedUrl}" itemprop="item"><i class="fa fa-rss-square"></i></a><!-- ENDIF rssFeedUrl --><!-- ENDIF !feeds:disableRSS -->
    +				<!-- IF rssFeedUrl --><a target="_blank" href="{rssFeedUrl}"><i class="fa fa-rss-square"></i></a><!-- ENDIF rssFeedUrl --><!-- ENDIF !feeds:disableRSS -->
     				<!-- ENDIF @last -->
     			</span>
     		<!-- IF !@last --></a><!-- ENDIF !@last -->
     	</li>
    -	{{{end}}}
    +	<!-- END breadcrumbs -->
     </ol>
     <!-- ENDIF breadcrumbs.length -->
    -
    -<div data-widget-area="header">
    -	{{{each widgets.header}}}
    +<div widget-area="header">
    +	<!-- BEGIN widgets.header -->
     	{{widgets.header.html}}
    -	{{{end}}}
    +	<!-- END widgets.header -->
     </div>
    +		<!-- IF config.usePagination -->
    +		<div component="pagination" class="text-center pagination-container<!-- IF !pagination.pages.length --> hidden<!-- ENDIF !pagination.pages.length -->">
    +	<ul class="pagination hidden-xs">
    +		<li class="previous pull-left<!-- IF !pagination.prev.active --> disabled<!-- ENDIF !pagination.prev.active -->">
    +			<a href="?{pagination.prev.qs}" data-page="{pagination.prev.page}"><i class="fa fa-chevron-left"></i> </a>
    +		</li>
    +
    +		<!-- BEGIN pagination.pages -->
    +			<!-- IF pagination.pages.separator -->
    +			<li component="pagination/select-page" class="page select-page">
    +				<a href="#"><i class="fa fa-ellipsis-h"></i></a>
    +			</li>
    +			<!-- ELSE -->
    +			<li class="page<!-- IF pagination.pages.active --> active<!-- ENDIF pagination.pages.active -->" >
    +				<a href="?{pagination.pages.qs}" data-page="{pagination.pages.page}">{pagination.pages.page}</a>
    +			</li>
    +			<!-- ENDIF pagination.pages.separator -->
    +		<!-- END pagination.pages -->
    +
    +		<li class="next pull-right<!-- IF !pagination.next.active --> disabled<!-- ENDIF !pagination.next.active -->">
    +			<a href="?{pagination.next.qs}" data-page="{pagination.next.page}"> <i class="fa fa-chevron-right"></i></a>
    +		</li>
    +	</ul>
    +
    +	<ul class="pagination hidden-sm hidden-md hidden-lg">
    +		<li class="first<!-- IF !pagination.prev.active --> disabled<!-- ENDIF !pagination.prev.active -->">
    +			<a href="?{pagination.first.qs}" data-page="1"><i class="fa fa-fast-backward"></i> </a>
    +		</li>
    +
    +		<li class="previous<!-- IF !pagination.prev.active --> disabled<!-- ENDIF !pagination.prev.active -->">
    +			<a href="?{pagination.prev.qs}" data-page="{pagination.prev.page}"><i class="fa fa-chevron-left"></i> </a>
    +		</li>
    +
    +		<li component="pagination/select-page" class="page select-page">
    +			<a href="#">{pagination.currentPage} / {pagination.pageCount}</a>
    +		</li>
    +
    +		<li class="next<!-- IF !pagination.next.active --> disabled<!-- ENDIF !pagination.next.active -->">
    +			<a href="?{pagination.next.qs}" data-page="{pagination.next.page}"> <i class="fa fa-chevron-right"></i></a>
    +		</li>
    +
    +		<li class="last<!-- IF !pagination.next.active --> disabled<!-- ENDIF !pagination.next.active -->">
    +			<a href="?{pagination.last.qs}" data-page="{pagination.pageCount}"><i class="fa fa-fast-forward"></i> </a>
    +		</li>
    +	</ul>
    +</div>
    +		<!-- ENDIF config.usePagination -->
     <div class="row">
     	<div class="topic <!-- IF widgets.sidebar.length -->col-lg-9 col-sm-12<!-- ELSE -->col-lg-12<!-- ENDIF widgets.sidebar.length -->">
     
     		<h1 component="post/header" class="hidden-xs" itemprop="name">
     
     			<i class="pull-left fa fa-thumb-tack <!-- IF !pinned -->hidden<!-- ENDIF !pinned -->" title="[[topic:pinned]]"></i>
     			<i class="pull-left fa fa-lock <!-- IF !locked -->hidden<!-- ENDIF !locked -->" title="[[topic:locked]]"></i>
     			<i class="pull-left fa fa-arrow-circle-right <!-- IF !oldCid -->hidden<!-- ENDIF !oldCid -->" title="[[topic:moved]]"></i>
    -			{{{each icons}}}@value{{{end}}}
    +			<!-- BEGIN icons -->@value<!-- END icons -->
     
     			<span class="topic-title" component="topic/title">{title}</span>
     		</h1>
     
    @@ -61,9 +106,9 @@
     
     		<hr class="visible-xs" />
     
     		<ul component="topic" class="posts" data-tid="{tid}" data-cid="{cid}">
    -			{{{each posts}}}
    +			<!-- BEGIN posts -->
     				<li component="post" class="<!-- IF posts.deleted -->deleted<!-- ENDIF posts.deleted -->" data-index="{posts.index}" data-pid="{posts.pid}" data-uid="{posts.uid}" data-timestamp="{posts.timestamp}" data-username="{posts.user.username}" data-userslug="{posts.user.userslug}" itemscope itemtype="http://schema.org/Comment">
     					<a component="post/anchor" data-index="{posts.index}" id="{posts.index}"></a>
     
     					<meta itemprop="datePublished" content="{posts.timestampISO}">
    @@ -71,23 +116,28 @@
     
     					<div class="clearfix post-header">
     	<div class="icon pull-left">
     		<a href="<!-- IF posts.user.userslug -->{config.relative_path}/user/{posts.user.userslug}<!-- ELSE -->#<!-- ENDIF posts.user.userslug -->">
    -			{buildAvatar(posts.user, "sm2x", true, "", "user/picture")}
    +			<!-- IF posts.user.picture -->
    +			<img component="user/picture" data-uid="{posts.user.uid}" src="{posts.user.picture}" align="left" itemprop="image" />
    +			<!-- ELSE -->
    +			<div component="user/picture" data-uid="{posts.user.uid}" class="user-icon" style="background-color: {posts.user.icon:bgColor};">{posts.user.icon:text}</div>
    +			<!-- ENDIF posts.user.picture -->
     			<i component="user/status" class="fa fa-circle status {posts.user.status}" title="[[global:{posts.user.status}]]"></i>
    +
     		</a>
     	</div>
     
     	<small class="pull-left">
     		<strong>
     			<a href="<!-- IF posts.user.userslug -->{config.relative_path}/user/{posts.user.userslug}<!-- ELSE -->#<!-- ENDIF posts.user.userslug -->" itemprop="author" data-username="{posts.user.username}" data-uid="{posts.user.uid}">{posts.user.username}</a>
     		</strong>
     
    -		{{{each posts.user.selectedGroups}}}
    +		<!-- BEGIN posts.user.selectedGroups -->
     <!-- IF posts.user.selectedGroups.slug -->
     <a href="{config.relative_path}/groups/{posts.user.selectedGroups.slug}"><small class="label group-label inline-block" style="color:{posts.user.selectedGroups.textColor};background-color: {posts.user.selectedGroups.labelColor};"><!-- IF posts.user.selectedGroups.icon --><i class="fa {posts.user.selectedGroups.icon}"></i> <!-- ENDIF posts.user.selectedGroups.icon -->{posts.user.selectedGroups.userTitle}</small></a>
     <!-- ENDIF posts.user.selectedGroups.slug -->
    -{{{end}}}
    +<!-- END posts.user.selectedGroups -->
     
     		<!-- IF posts.user.banned -->
     		<span class="label label-danger">[[user:banned]]</span>
     		<!-- ENDIF posts.user.banned -->
    @@ -105,11 +155,11 @@
     
     			<span>
     				<!-- IF posts.user.custom_profile_info.length -->
     				&#124;
    -				{{{each posts.user.custom_profile_info}}}
    +				<!-- BEGIN posts.user.custom_profile_info -->
     				{posts.user.custom_profile_info.content}
    -				{{{end}}}
    +				<!-- END posts.user.custom_profile_info -->
     				<!-- ENDIF posts.user.custom_profile_info.length -->
     			</span>
     		</span>
     		<span class="bookmarked"><i class="fa fa-bookmark-o"></i></span>
    @@ -159,11 +209,15 @@
     
     	<!-- IF !hideReplies -->
     	<a component="post/reply-count" href="#" class="threaded-replies no-select <!-- IF !posts.replies.count -->hidden<!-- ENDIF !posts.replies.count -->">
     		<span component="post/reply-count/avatars" class="avatars <!-- IF posts.replies.hasMore -->hasMore<!-- ENDIF posts.replies.hasMore -->">
    -			{{{each posts.replies.users}}}
    -			{buildAvatar(posts.replies.users, "xs", true, "")}
    -			{{{end}}}
    +			<!-- BEGIN posts.replies.users -->
    +			<!-- IF posts.replies.users.picture -->
    +			<span><img component="user/picture" data-uid="{posts.replies.users.uid}" title="{posts.replies.users.username}" class="avatar" src="{posts.replies.users.picture}"  itemprop="image" /></span>
    +			<!-- ELSE -->
    +			<div component="user/picture" data-uid="{posts.replies.users.uid}" title="{posts.replies.users.username}" class="user-icon" style="background-color: {posts.replies.users.icon:bgColor};">{posts.replies.users.icon:text}</div>
    +			<!-- ENDIF posts.replies.users.picture -->
    +			<!-- END posts.replies.users -->
     		</span>
     
     		<span class="replies-count" component="post/reply-count/text" data-replies="{posts.replies.count}">{posts.replies.text}</span>
     		<span class="replies-last hidden-xs">[[topic:last_reply_time]] <span class="timeago" title="{posts.replies.timestampISO}"></span></span>
    @@ -180,17 +234,21 @@
     					<!-- IF !posts.index -->
     					<div class="post-bar-placeholder"></div>
     					<!-- ENDIF !posts.index -->
     				</li>
    -			{{{end}}}
    +			<!-- END posts -->
     		</ul>
     
     		<!-- IF config.enableQuickReply -->
     		<!-- IF privileges.topics:reply -->
     <div class="clearfix quick-reply">
     	<div class="icon pull-left hidden-xs">
     		<a href="<!-- IF posts.user.userslug -->{config.relative_path}/user/{posts.user.userslug}<!-- ELSE -->#<!-- ENDIF posts.user.userslug -->">
    -			{buildAvatar(loggedInUser, "46", true, "", "user/picture")}
    +			<!-- IF loggedInUser.picture -->
    +			<img component="user/picture" data-uid="{loggedInUser.uid}" src="{loggedInUser.picture}" align="left" itemprop="image" />
    +			<!-- ELSE -->
    +			<div component="user/picture" data-uid="{loggedInUser.uid}" class="user-icon" style="background-color: {loggedInUser.icon:bgColor};">{loggedInUser.icon:text}</div>
    +			<!-- ENDIF loggedInUser.picture -->
     			<!-- IF loggedInUser.status -->
     			<i component="user/status" class="fa fa-circle status {loggedInUser.status}" title="[[global:{loggedInUser.status}]]"></i>
     			<!-- ENDIF loggedInUser.status -->
     		</a>
    @@ -210,17 +268,17 @@
     
     		<div class="post-bar">
     			<div class="clearfix">
     	<div class="tags pull-left">
    -		{{{each tags}}}
    +		<!-- BEGIN tags -->
     		<a href="{config.relative_path}/tags/{tags.value}">
     		<span class="tag-item" data-tag="{tags.value}" style="<!-- IF tags.color -->color: {tags.color};<!-- ENDIF tags.color --><!-- IF tags.bgColor -->background-color: {tags.bgColor};<!-- ENDIF tags.bgColor -->">{tags.valueEscaped}</span>
     		<span class="tag-topic-count human-readable-number" title="{tags.score}">{tags.score}</span></a>
    -		{{{end}}}
    +		<!-- END tags -->
     	</div>
     
     	<div component="topic/browsing-users">
    -	{{{each browsingUsers}}}
    +	<!-- BEGIN browsingUsers -->
     	<div class="pull-left">
     		<a href="<!-- IF browsingUsers.userslug -->{config.relative_path}/user/{browsingUsers.userslug}<!-- ELSE -->#<!-- ENDIF browsingUsers.userslug -->">
     			<!-- IF browsingUsers.picture -->
     			<img class="avatar avatar-sm avatar-rounded" component="user/picture" data-uid="{browsingUsers.uid}" src="{browsingUsers.picture}" align="left" itemprop="image" title="{browsingUsers.username}"/>
    @@ -228,9 +286,9 @@
     			<div class="avatar avatar-sm avatar-rounded" component="user/picture" data-uid="{browsingUsers.uid}" title="{browsingUsers.username}" style="background-color: {browsingUsers.icon:bgColor};">{browsingUsers.icon:text}</div>
     			<!-- ENDIF browsingUsers.picture -->
     		</a>
     	</div>
    -	{{{end}}}
    +	<!-- END browsingUsers -->
     </div>
     
     	<div class="topic-main-buttons pull-right">
     		<span class="loading-indicator btn pull-left hidden" done="0">
    @@ -334,9 +392,9 @@
     		<li class="previous pull-left<!-- IF !pagination.prev.active --> disabled<!-- ENDIF !pagination.prev.active -->">
     			<a href="?{pagination.prev.qs}" data-page="{pagination.prev.page}"><i class="fa fa-chevron-left"></i> </a>
     		</li>
     
    -		{{{each pagination.pages}}}
    +		<!-- BEGIN pagination.pages -->
     			<!-- IF pagination.pages.separator -->
     			<li component="pagination/select-page" class="page select-page">
     				<a href="#"><i class="fa fa-ellipsis-h"></i></a>
     			</li>
    @@ -344,9 +402,9 @@
     			<li class="page<!-- IF pagination.pages.active --> active<!-- ENDIF pagination.pages.active -->" >
     				<a href="?{pagination.pages.qs}" data-page="{pagination.pages.page}">{pagination.pages.page}</a>
     			</li>
     			<!-- ENDIF pagination.pages.separator -->
    -		{{{end}}}
    +		<!-- END pagination.pages -->
     
     		<li class="next pull-right<!-- IF !pagination.next.active --> disabled<!-- ENDIF !pagination.next.active -->">
     			<a href="?{pagination.next.qs}" data-page="{pagination.next.page}"> <i class="fa fa-chevron-right"></i></a>
     		</li>
    @@ -390,19 +448,18 @@
     				<i class="fa fa-2x fa-angle-double-down pointer fa-fw pagebottom"></i>
     			</div>
     		</div>
     	</div>
    -	<div data-widget-area="sidebar" class="col-lg-3 col-sm-12 <!-- IF !widgets.sidebar.length -->hidden<!-- ENDIF !widgets.sidebar.length -->">
    -		{{{each widgets.sidebar}}}
    +	<div widget-area="sidebar" class="col-lg-3 col-sm-12 <!-- IF !widgets.sidebar.length -->hidden<!-- ENDIF !widgets.sidebar.length -->">
    +		<!-- BEGIN widgets.sidebar -->
     		{{widgets.sidebar.html}}
    -		{{{end}}}
    +		<!-- END widgets.sidebar -->
     	</div>
     </div>
    -
    -<div data-widget-area="footer">
    -	{{{each widgets.footer}}}
    +<div widget-area="footer">
    +	<!-- BEGIN widgets.footer -->
     	{{widgets.footer.html}}
    -	{{{end}}}
    +	<!-- END widgets.footer -->
     </div>
     
     <!-- IF !config.usePagination -->
     <noscript>
    @@ -411,9 +468,9 @@
     		<li class="previous pull-left<!-- IF !pagination.prev.active --> disabled<!-- ENDIF !pagination.prev.active -->">
     			<a href="?{pagination.prev.qs}" data-page="{pagination.prev.page}"><i class="fa fa-chevron-left"></i> </a>
     		</li>
     
    -		{{{each pagination.pages}}}
    +		<!-- BEGIN pagination.pages -->
     			<!-- IF pagination.pages.separator -->
     			<li component="pagination/select-page" class="page select-page">
     				<a href="#"><i class="fa fa-ellipsis-h"></i></a>
     			</li>
    @@ -421,9 +478,9 @@
     			<li class="page<!-- IF pagination.pages.active --> active<!-- ENDIF pagination.pages.active -->" >
     				<a href="?{pagination.pages.qs}" data-page="{pagination.pages.page}">{pagination.pages.page}</a>
     			</li>
     			<!-- ENDIF pagination.pages.separator -->
    -		{{{end}}}
    +		<!-- END pagination.pages -->
     
     		<li class="next pull-right<!-- IF !pagination.next.active --> disabled<!-- ENDIF !pagination.next.active -->">
     			<a href="?{pagination.next.qs}" data-page="{pagination.next.page}"> <i class="fa fa-chevron-right"></i></a>
     		</li>
    
    1. this one adds a topic name to the last posts seen on category view...
    --- partials/categories/lastpost.tpl
    +++ custom partials/categories/lastpost.tpl
    @@ -1,25 +1,28 @@
    -<div class="card" style="border-color: {../bgColor}">
    -	{{{each ./posts}}}
    -	<!-- IF @first -->
    -	<div component="category/posts">
    -		<p>
    -			<a href="{config.relative_path}/user/{../user.userslug}">{buildAvatar(posts.user, "sm", true)}</a>
    -			<a class="permalink" href="{config.relative_path}/topic/{../topic.slug}<!-- IF ../index -->/{../index}<!-- ENDIF ../index -->">
    -				<small class="timeago" title="{../timestampISO}"></small>
    -			</a>
    -		</p>
    -		<div class="post-content">
    -			{../content}
    -		</div>
    -	</div>
    -	<!-- ENDIF @first -->
    -	{{{end}}}
    -
    -	<!-- IF !../posts.length -->
    -	<div component="category/posts">
    -		<div class="post-content">
    -			[[category:no_new_posts]]
    -		</div>
    -	</div>
    -	<!-- ENDIF !../posts.length -->
    -</div>
    +<div class="card" style="border-color: {../bgColor}">
    +	{{{each ./posts}}}
    +	<!-- IF @first -->
    +	<div component="category/posts">
    +		<p>
    +			<a href="{config.relative_path}/user/{../user.userslug}">{buildAvatar(posts.user, "sm", true)}</a>
    +			<a class="permalink" href="{config.relative_path}/topic/{../topic.slug}<!-- IF ../index -->/{../index}<!-- ENDIF ../index -->">
    +				<small class="timeago" title="{../timestampISO}"></small>
    +			</a>
    +		</p>
    +		<div class="post-content">
    +			<div class="title">
    +			    <a href="{config.relative_path}/topic/{../topic.slug}<!-- IF ../index -->/{../index}<!-- ENDIF ../index -->">{../topic.title}</a>
    +			</div>
    +			{../content}
    +		</div>
    +	</div>
    +	<!-- ENDIF @first -->
    +	{{{end}}}
    +
    +	<!-- IF !../posts.length -->
    +	<div component="category/posts">
    +		<div class="post-content">
    +			[[category:no_new_posts]]
    +		</div>
    +	</div>
    +	<!-- ENDIF !../posts.length -->
    +</div>
    \ No newline at end of file
    
    

  • I forgot to add logs:

    [32m  started
    (node:12412) DeprecationWarning: The option `autoReconnect` is incompatible with the unified topology, please read more by visiting http://bit.ly/2D8WfT6
    (node:12412) DeprecationWarning: The option `reconnectTries` is incompatible with the unified topology, please read more by visiting http://bit.ly/2D8WfT6
    (node:12412) DeprecationWarning: The option `reconnectInterval` is incompatible with the unified topology, please read more by visiting http://bit.ly/2D8WfT6
    2020-04-17T23:13:02.263Z [9000/12412] - info: [build] Building in series mode
    2020-04-17T23:13:02.265Z [9000/12412] - info: [build]         plugin static dirs  build started
    2020-04-17T23:13:02.300Z [9000/12412] - info: [build]         plugin static dirs  build completed in 0.035sec
    2020-04-17T23:13:02.300Z [9000/12412] - info: [build]          requirejs modules  build started
    2020-04-17T23:13:09.120Z [9000/12412] - info: [build]          requirejs modules  build completed in 6.82sec
    2020-04-17T23:13:09.121Z [9000/12412] - info: [build]           client js bundle  build started
    2020-04-17T23:13:13.242Z [9000/12412] - info: [build]           client js bundle  build completed in 4.121sec
    2020-04-17T23:13:13.243Z [9000/12412] - info: [build]            admin js bundle  build started
    2020-04-17T23:13:16.676Z [9000/12412] - info: [build]            admin js bundle  build completed in 3.433sec
    2020-04-17T23:13:16.677Z [9000/12412] - info: [build]         client side styles  build started
    2020-04-17T23:13:26.477Z [9000/12412] - info: [build]         client side styles  build completed in 9.8sec
    2020-04-17T23:13:26.477Z [9000/12412] - info: [build] admin control panel styles  build started
    2020-04-17T23:13:32.191Z [9000/12412] - info: [build] admin control panel styles  build completed in 5.714sec
    2020-04-17T23:13:32.191Z [9000/12412] - info: [build]                  templates  build started
    2020-04-17T23:13:44.872Z [9000/12412] - info: [build]                  templates  build completed in 12.681sec
    2020-04-17T23:13:44.872Z [9000/12412] - info: [build]                  languages  build started
    2020-04-17T23:14:04.196Z [9000/12412] - info: [build]                  languages  build completed in 19.324sec
    2020-04-17T23:14:04.197Z [9000/12412] - info: [build]                     sounds  build started
    2020-04-17T23:14:04.200Z [9000/12412] - info: [build]                     sounds  build completed in 0.003sec
    2020-04-17T23:14:04.201Z [9000/12412] - info: [build] Asset compilation successful. Completed in 61.936sec.
    2020-04-17T23:14:04.217Z [9000/12412] - info: [app] Shutdown (SIGTERM/SIGINT) Initialised.
    2020-04-17T23:14:04.219Z [9000/12412] - info: [app] Web server closed to connections.
    2020-04-17T23:14:04.220Z [9000/12412] - info: [app] Live analytics saved.
    2020-04-17T23:14:04.234Z [9000/12412] - info: [app] Database connection closed.
    2020-04-17T23:14:04.239Z [9000/12412] - info: [app] Shutdown complete.
    2020-04-17T23:14:04.863Z [9000/13047] - info: Initializing NodeBB v1.13.2 http://XXXXX
    (node:13047) DeprecationWarning: The option `autoReconnect` is incompatible with the unified topology, please read more by visiting http://bit.ly/2D8WfT6
    (node:13047) DeprecationWarning: The option `reconnectTries` is incompatible with the unified topology, please read more by visiting http://bit.ly/2D8WfT6
    (node:13047) DeprecationWarning: The option `reconnectInterval` is incompatible with the unified topology, please read more by visiting http://bit.ly/2D8WfT6
    2020-04-17T23:14:07.833Z [9000/13047] - info: [socket.io] Restricting access to origin: http://XXXX
    2020-04-17T23:14:08.778Z [9000/13047] - warn: [deprecated] requiring core modules with `module.parent.require('./database')` is deprecated. Please use `require.main.require("./src/<module_name>")` instead.
        at Object.<anonymous> (/home/nodebb/forum/nodebb/node_modules/nodebb-plugin-audio-embed/library.js:11:24)
    2020-04-17T23:14:08.806Z [9000/13047] - warn: [deprecated] requiring core modules with `module.parent.require('./database')` is deprecated. Please use `require.main.require("./src/<module_name>")` instead.
        at Object.<anonymous> (/home/nodebb/forum/nodebb/node_modules/nodebb-plugin-topic-ratings/library.js:5:21)
    2020-04-17T23:14:08.807Z [9000/13047] - warn: [deprecated] requiring core modules with `module.parent.require('./socket.io/topics')` is deprecated. Please use `require.main.require("./src/<module_name>")` instead.
        at Object.<anonymous> (/home/nodebb/forum/nodebb/node_modules/nodebb-plugin-topic-ratings/library.js:7:31)
    2020-04-17T23:14:08.989Z [9000/13047] - info: [plugins/spam-be-gone] Settings loaded
    2020-04-17T23:14:12.557Z [9000/13047] - info: Routes added
    2020-04-17T23:14:12.566Z [9000/13047] - info: NodeBB Ready
    2020-04-17T23:14:12.570Z [9000/13047] - info: Enabling 'trust proxy'
    2020-04-17T23:14:12.573Z [9000/13047] - info: NodeBB is now listening on: 0.0.0.0:9000
    
  • Global Moderator

    I'd guess one of those templates changed and the customization is no longer correct.

    Have you rebuilt within customize? If that doesn't work, I'd suggest recording the changes and deketing them, then trying again. Also, make sure customize is updated and nodebb has the latest version of graceful-fs installed.


  • @PitaJ said in Customize plugin and NodeBB 1.13.2:

    I'd guess one of those templates changed and the customization is no longer correct.

    Have you rebuilt within customize? If that doesn't work, I'd suggest recording the changes and deketing them, then trying again. Also, make sure customize is updated and nodebb has the latest version of graceful-fs installed.

    Yes, you are right. For future reference:

    I have deleted everything and re-wrote the changes... topic.tpl was still giving problems (not saving the changes), then I realized there are small changes in current topic.tpl file... So, I have re-added pagination at the top of the posts in the current topic.tpl file, saved, re-built the forum... it solved the problem...


  • @PitaJ Hi Pitaj, sorry we are still having some problems with Customize plugin...

    Since, we had to upgrade unplanned (I mentioned it here) and were having some slowness in the forum... we freshly installed 1.13.2 two days ago and transferred our database, and re-build the forum... We deleted all plugins, and re-installed them again...

    However, customize plugin still does not function... It has translations and template modifications in it... this time, no changes are made... We have latest version of graceful-fs...

    Any idea why this is happening? I put the customize at the top of the list, then to the bottom of the list... still no changes on the forum is made...


  • I deleted all templates, and re-made the changes... however still no change...

    I deleted templates and kept the translations, however still no change...

    So, we could not make it work... We have installed all plugins beside default one new...

        nodebb-theme-persona
        nodebb-plugin-composer-default
        nodebb-plugin-markdown
        nodebb-widget-essentials
        nodebb-rewards-essentials
        nodebb-plugin-dbsearch
        nodebb-plugin-calendar
        nodebb-plugin-osm-map
        nodebb-plugin-dwnvtr
        nodebb-plugin-browsing-users
        nodebb-plugin-sso-facebook
        nodebb-plugin-sso-twitter
        nodebb-plugin-sso-google
        nodebb-plugin-google-analytics
        nodebb-plugin-spam-be-gone
        nodebb-plugin-tenor-gif
        nodebb-plugin-canned-responses
        nodebb-plugin-extended-markdown
        nodebb-plugin-mentions
        nodebb-plugin-soundpack-default
        nodebb-plugin-audio-embed
        nodebb-plugin-emoji
        nodebb-plugin-emoji-one
        nodebb-plugin-mega-colors
        nodebb-plugin-poll
        nodebb-plugin-recent-cards
        nodebb-plugin-btn-spoilers-yesilkart
        nodebb-plugin-night-mode
        nodebb-plugin-iframely
        nodebb-plugin-twitter
        nodebb-plugin-customize
    

    in case it will help; this is our current plugin list with exact order...

  • Global Moderator

    Are there any errors when you build from the customize plugin page?


  • @PitaJ said in Customize plugin and NodeBB 1.13.2:

    Are there any errors when you build from the customize plugin page?

    none I can tell... here is the log:

    [32m  started
    (node:17359) DeprecationWarning: The option `autoReconnect` is incompatible with the unified topology, please read more by visiting http://bit.ly/2D8WfT6
    (node:17359) DeprecationWarning: The option `reconnectTries` is incompatible with the unified topology, please read more by visiting http://bit.ly/2D8WfT6
    (node:17359) DeprecationWarning: The option `reconnectInterval` is incompatible with the unified topology, please read more by visiting http://bit.ly/2D8WfT6
    2020-04-21T21:04:09.788Z [4569/17359] - info: [build] Building in series mode
    2020-04-21T21:04:09.789Z [4569/17359] - info: [build]         plugin static dirs  build started
    2020-04-21T21:04:09.814Z [4569/17359] - info: [build]         plugin static dirs  build completed in 0.025sec
    2020-04-21T21:04:09.815Z [4569/17359] - info: [build]          requirejs modules  build started
    2020-04-21T21:04:15.289Z [4569/17359] - info: [build]          requirejs modules  build completed in 5.474sec
    2020-04-21T21:04:15.289Z [4569/17359] - info: [build]           client js bundle  build started
    2020-04-21T21:04:18.207Z [4569/17359] - info: [build]           client js bundle  build completed in 2.918sec
    2020-04-21T21:04:18.207Z [4569/17359] - info: [build]            admin js bundle  build started
    2020-04-21T21:04:20.499Z [4569/17359] - info: [build]            admin js bundle  build completed in 2.292sec
    2020-04-21T21:04:20.499Z [4569/17359] - info: [build]         client side styles  build started
    2020-04-21T21:04:27.553Z [4569/17359] - info: [build]         client side styles  build completed in 7.054sec
    2020-04-21T21:04:27.554Z [4569/17359] - info: [build] admin control panel styles  build started
    2020-04-21T21:04:33.498Z [4569/17359] - info: [build] admin control panel styles  build completed in 5.944sec
    2020-04-21T21:04:33.498Z [4569/17359] - info: [build]                  templates  build started
    2020-04-21T21:04:42.161Z [4569/17359] - info: [build]                  templates  build completed in 8.663sec
    2020-04-21T21:04:42.161Z [4569/17359] - info: [build]                  languages  build started
    2020-04-21T21:04:50.602Z [4569/17359] - info: [build]                  languages  build completed in 8.441sec
    2020-04-21T21:04:50.602Z [4569/17359] - info: [build]                     sounds  build started
    2020-04-21T21:04:50.609Z [4569/17359] - info: [build]                     sounds  build completed in 0.007sec
    2020-04-21T21:04:50.612Z [4569/17359] - info: [build] Asset compilation successful. Completed in 40.821sec.
    [cluster] Restarting...
    2020-04-21T21:04:50.623Z [4567/17356] - info: [app] Shutdown (SIGTERM/SIGINT) Initialised.
    2020-04-21T21:04:50.626Z [4569/17359] - info: [app] Shutdown (SIGTERM/SIGINT) Initialised.
    Clustering enabled: Spinning up 3 process(es).
    
    2020-04-21T21:04:50.628Z [4568/17357] - info: [app] Shutdown (SIGTERM/SIGINT) Initialised.
    2020-04-21T21:04:50.648Z [4567/17356] - info: [app] Web server closed to connections.
    2020-04-21T21:04:50.648Z [4567/17356] - info: [app] Live analytics saved.
    2020-04-21T21:04:50.671Z [4567/17356] - info: [app] Database connection closed.
    2020-04-21T21:04:50.671Z [4567/17356] - info: [app] Shutdown complete.
    2020-04-21T21:04:50.679Z [4569/17359] - info: [app] Web server closed to connections.
    2020-04-21T21:04:50.689Z [4569/17359] - info: [app] Live analytics saved.
    2020-04-21T21:04:50.711Z [4568/17357] - info: [app] Web server closed to connections.
    2020-04-21T21:04:50.713Z [4569/17359] - info: [app] Database connection closed.
    2020-04-21T21:04:50.713Z [4569/17359] - info: [app] Shutdown complete.
    2020-04-21T21:04:50.721Z [4568/17357] - info: [app] Live analytics saved.
    [cluster] Child Process (17356) has exited (code: 0, signal: null)
    2020-04-21T21:04:50.745Z [4568/17357] - info: [app] Database connection closed.
    2020-04-21T21:04:50.745Z [4568/17357] - info: [app] Shutdown complete.
    [cluster] Child Process (17357) has exited (code: 0, signal: null)
    [cluster] Child Process (17359) has exited (code: 0, signal: null)
    2020-04-21T21:04:51.219Z [4567/17535] - info: Initializing NodeBB v1.13.2 https://XXXXX
    (node:17535) DeprecationWarning: The option `autoReconnect` is incompatible with the unified topology, please read more by visiting http://bit.ly/2D8WfT6
    (node:17535) DeprecationWarning: The option `reconnectTries` is incompatible with the unified topology, please read more by visiting http://bit.ly/2D8WfT6
    (node:17535) DeprecationWarning: The option `reconnectInterval` is incompatible with the unified topology, please read more by visiting http://bit.ly/2D8WfT6
    (node:17542) DeprecationWarning: The option `autoReconnect` is incompatible with the unified topology, please read more by visiting http://bit.ly/2D8WfT6
    (node:17542) DeprecationWarning: The option `reconnectTries` is incompatible with the unified topology, please read more by visiting http://bit.ly/2D8WfT6
    (node:17542) DeprecationWarning: The option `reconnectInterval` is incompatible with the unified topology, please read more by visiting http://bit.ly/2D8WfT6
    (node:17536) DeprecationWarning: The option `autoReconnect` is incompatible with the unified topology, please read more by visiting http://bit.ly/2D8WfT6
    (node:17536) DeprecationWarning: The option `reconnectTries` is incompatible with the unified topology, please read more by visiting http://bit.ly/2D8WfT6
    (node:17536) DeprecationWarning: The option `reconnectInterval` is incompatible with the unified topology, please read more by visiting http://bit.ly/2D8WfT6
    2020-04-21T21:04:53.889Z [4569/17542] - info: [socket.io] Restricting access to origin: https://XXXXX:*
    2020-04-21T21:04:54.082Z [4568/17536] - info: [socket.io] Restricting access to origin: https://XXXXX:*
    2020-04-21T21:04:54.140Z [4567/17535] - info: [socket.io] Restricting access to origin: https://XXXXX:*
    2020-04-21T21:04:54.620Z [4569/17542] - warn: [deprecated] requiring core modules with `module.parent.require('./database'
    Require stack:
    - /home/nodebb/forum/nodebb/src/plugins/index.js
    - /home/nodebb/forum/nodebb/src/groups/index.js
    - /home/nodebb/forum/nodebb/src/user/index.js
    - /home/nodebb/forum/nodebb/src/events.js
    - /home/nodebb/forum/nodebb/src/meta/themes.js
    - /home/nodebb/forum/nodebb/src/meta/index.js
    - /home/nodebb/forum/nodebb/src/start.js
    - /home/nodebb/forum/nodebb/require-main.js
    - /home/nodebb/forum/nodebb/app.js)` is deprecated. Please use `require.main.require("./src/<module_name>")` instead.
        at Object.<anonymous> (/home/nodebb/forum/nodebb/node_modules/nodebb-plugin-audio-embed/library.js:11:24)
    2020-04-21T21:04:54.705Z [4568/17536] - warn: [deprecated] requiring core modules with `module.parent.require('./database'
    Require stack:
    - /home/nodebb/forum/nodebb/src/plugins/index.js
    - /home/nodebb/forum/nodebb/src/groups/index.js
    - /home/nodebb/forum/nodebb/src/user/index.js
    - /home/nodebb/forum/nodebb/src/events.js
    - /home/nodebb/forum/nodebb/src/meta/themes.js
    - /home/nodebb/forum/nodebb/src/meta/index.js
    - /home/nodebb/forum/nodebb/src/start.js
    - /home/nodebb/forum/nodebb/require-main.js
    - /home/nodebb/forum/nodebb/app.js)` is deprecated. Please use `require.main.require("./src/<module_name>")` instead.
        at Object.<anonymous> (/home/nodebb/forum/nodebb/node_modules/nodebb-plugin-audio-embed/library.js:11:24)
    2020-04-21T21:04:54.900Z [4569/17542] - info: [plugins/spam-be-gone] Settings loaded
    2020-04-21T21:04:54.926Z [4569/17542] - info: Routes added
    2020-04-21T21:04:54.932Z [4569/17542] - info: NodeBB Ready
    2020-04-21T21:04:54.934Z [4569/17542] - info: Enabling 'trust proxy'
    2020-04-21T21:04:54.936Z [4569/17542] - info: NodeBB is now listening on: 0.0.0.0:4569
    2020-04-21T21:04:54.995Z [4567/17535] - warn: [deprecated] requiring core modules with `module.parent.require('./database'
    Require stack:
    - /home/nodebb/forum/nodebb/src/plugins/index.js
    - /home/nodebb/forum/nodebb/src/groups/index.js
    - /home/nodebb/forum/nodebb/src/user/index.js
    - /home/nodebb/forum/nodebb/src/events.js
    - /home/nodebb/forum/nodebb/src/meta/themes.js
    - /home/nodebb/forum/nodebb/src/meta/index.js
    - /home/nodebb/forum/nodebb/src/start.js
    - /home/nodebb/forum/nodebb/require-main.js
    - /home/nodebb/forum/nodebb/app.js)` is deprecated. Please use `require.main.require("./src/<module_name>")` instead.
        at Object.<anonymous> (/home/nodebb/forum/nodebb/node_modules/nodebb-plugin-audio-embed/library.js:11:24)
    2020-04-21T21:04:55.057Z [4568/17536] - info: [plugins/spam-be-gone] Settings loaded
    2020-04-21T21:04:55.082Z [4568/17536] - info: Routes added
    2020-04-21T21:04:55.086Z [4568/17536] - info: NodeBB Ready
    2020-04-21T21:04:55.089Z [4568/17536] - info: Enabling 'trust proxy'
    2020-04-21T21:04:55.091Z [4568/17536] - info: NodeBB is now listening on: 0.0.0.0:4568
    2020-04-21T21:04:55.197Z [4567/17535] - info: [plugins/spam-be-gone] Settings loaded
    2020-04-21T21:04:58.343Z [4567/17535] - info: Routes added
    2020-04-21T21:04:58.347Z [4567/17535] - info: NodeBB Ready
    2020-04-21T21:04:58.349Z [4567/17535] - info: Enabling 'trust proxy'
    2020-04-21T21:04:58.351Z [4567/17535] - info: NodeBB is now listening on: 0.0.0.0:4567
    

  • @PitaJ I mentioned at the top, we had some problems in one of the template modifications previously (since there was change in topic.tpl between 1.12 and 1.13), that is why we wanted to uninstall and install the plugins... however it looks like, nodebb saves the configurations in the plugins...

    Is there any code to specifically delete the customize plugin (or any other plugin) with its configurations, We would like to have a fresh start with this plugin... maybe it solves the problem (we could not see any other apparent reason why the plugin does not work)


  • @PitaJ said in Customize plugin and NodeBB 1.13.2:

    I'd guess one of those templates changed and the customization is no longer correct.

    Have you rebuilt within customize? If that doesn't work, I'd suggest recording the changes and deketing them, then trying again. Also, make sure customize is updated and nodebb has the latest version of graceful-fs installed.

    is there any other item we should check besides graceful-fs ?


  • we have solved the problem by upgrading from Debian 9 to Debian 10... Somehow this solved all the problem, we did not change anything, everything else stayed the same version (node/npm/NodeBB)... FYI...

Log in to reply
 

Suggested Topics

| |