Bug "Thanks" clicks not working after vB Upgrade (3.8.11) and PHP upgrade (to 7.1)

Status
Not open for further replies.

janklerks

Customer
"Thanks" clicks not working after vB Upgrade (3.8.11) and PHP upgrade (to 7.1)

Upgraded PHP to 5.6 on the forums, and the forum software to vB 3.8.11 (beta). I also went ahead and upgraded the "Thanks" addon to 3.6.3. The upgrade itself crashed due to a modification of the dbtech_thanks_entrycache table (which is about 11GB on our forum), but after manually modifying the column, the update completed.

Somehow, somewhere, however click on the "like" button (we have a single button to "like" a post) now produces no actual "like". Also the "likes" under a user's name disappear when it is clicked (the button briefly disappears and reappears too)

BEFORE CLICKING:
DYhiPr8.png


AFTER CLICKING:
(red circle is where it should say "X liked this post"
lSt5xt8.png



I receive no PHP errors or warnings when the button is clicked, either. (Unless warnings are disabled in the addon, I haven't dug into the code too much).


The same thing happens in all locations on the forum where the thanks addon is enabled (visitor messages, social groups, etc)


Thanks in advance for any help you can provide.
 
Have you checked your PHP error log? Have you tried using the Compact style to see if that works for you?
 
Sorry, should have been more clear.

I receive no errors or warnings in the php error log when the button is clicked.

The same thing happens with "compact" style.
 
Update: The integration through Tapatalk does work. I was able to successfully "like" a post using it.

I wonder if this is some javascript issue with vB 3.8.11...
 
Can you please double-check you've not customised any APTL templates and if you have, can you please revert them?

The mod has been tested on 3.8.11 so that shouldn't be an issue :)
 
Could you please create and PM me with a temporary FTP and AdminCP account?

For security reasons, we recommend you create a new FTP account only for DBTech support, then disable or delete it after we have both confirmed the issue has been solved and there are no further issues.

The same applies to AdminCP accounts; they should ideally be temporary accounts created for us only. If we have created an account on your site already, you can optionally boost that account to Administrator and then de-admin this account once the issue has been solved.

If you use a .htaccess password protection for your AdminCP directory, it is recommended that you create a new authorised user for DBTech and remove this user once the issue has been solved.

Please test any temporary accounts you create to ensure that the FTP account has access to the forum files, and that the AdminCP account can access the administrative controls for the product we are assisting you with.

Ensuring this is all in order before submitting the information will significantly speed up the process of assisting you. We will alert you via PM if there's any issues with the login information you have provided.

When sending the PM, for your security you should also un-tick the "Save a copy in my Sent Items folder" checkbox. When the access details have been received, we will delete the PM from our inbox. Ensuring you have not kept a copy of the PM reduces the risk of security breaches.

Thank you for helping us debug our products and allowing us to assist you, we appreciate it :D
 
We found the issue. or, at least a work-around.

From one of our moderators:

Tiago Costa said:
I've found the problem. There is a missing tag "data-contenttype" in the <a> tag of the like button. An example of the tag of the post I'm quoting:

Code:
<a href="javascript://" name="dbtech_thanks_button" data-postid="139346714" data-button="likes"><img src="dbtech/thanks/images/likes.png" alt="Likes" title="Likes" border="0"></a>

The "data-" attributes are:
  • data-postid
  • data-button

So if I use Chrome Developer Tools or Firebug and edit this tag to have one more attribute:

Code:
<a href="javascript://" name="dbtech_thanks_button" data-postid="139346714" data-button="likes" [B]data-contenttype="post"[/B]><img src="dbtech/thanks/images/likes.png" alt="Likes" title="Likes" border="0"></a>

I edited the dbtech_thanks_postbit_entries_actionbit to this:

Code:
<span class="dbtech-thanks-button-control"<if condition="!$show['_cannotseeclicks']"> data-contenttype="$contenttype" data-button="$button[varname]" data-postid="$post[postid]"</if>>
	<a href="javascript://"<if condition="$button['canclick']"> name="dbtech_thanks_button" data-postid="{$post[postid]}" data-button="{$button[varname]}" data-contenttype="$contenttype"<else /> style="cursor:default;"</if>><img src="$button[buttonimage]" alt="{$button[title]}" title="{$button[title]}" border="0" /><if condition="!$vboptions['dbtech_thanks_notext']"> {$phrase}</if></a>
	<if condition="$vboptions['dbtech_thanks_cloud_displaystyle'] == 2">
		<span class="dbtech-thanks-bubble-flyout">
			<!--<i></i>
			<u></u>-->
			<span class="dbtech-thanks-bubble-content clickcount"<if condition="!$show['_cannotseeclicks']"> data-button="$button[varname]" data-postid="$post[postid]"</if>>$button[clickcount]</span>
		</span>
	</if>
</span>
 
I've hotfixed v3.6.3 with the code in question, if you re-import the XML file and then revert that template it should work :)
 
Thanks.

TBH I wasn't really looking forward to trying to explain how our code edited and pushed out to all 12 servers, since we don't use FTP :)
 
Hello janklerks,

This ticket has now been closed with the status Fixed.

We hope your issue or question has been addressed to your satisfaction. If not, please feel free to re-open it by clicking this link.

If you have any further issues or questions, please feel free to start a new support ticket via the button at the top of every page.

Thank you!
 
Status
Not open for further replies.

Legacy Advanced Post Thanks / Like

vBulletin 3.8.x vBulletin 4.x.x
Seller
DragonByte Technologies
Release date
Last update
Total downloads
4,044
Customer rating
5.00 star(s) 1 ratings
Back
Top