Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 04-19-2016, 06:12 PM
greigeh greigeh is offline
 
Join Date: Jan 2015
Posts: 113
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Post Thanks / Like System interfering with Quick Edit

Hello again!


For some random reason, my post thanks/like system is interfering with the quick edit feature on my vBulletin. When a person edits the post and saves it they're simply left on a kind of loading screen. However - the edit does actually save into the database but just doesn't automatically take the user back to the post.

has anyone heard of any incidents this has happened before or such?

Thanks

--------------- Added [DATE]1461098386[/DATE] at [TIME]1461098386[/TIME] ---------------

Update: this appears in the error log? Does anyone have an idea of how to locate this error?

[19-Apr-2016 20:32:47 UTC] PHP Parse error: syntax error, unexpected '=' in /home/wukohi/public_html/showpost.php(258) : eval()'d code on line 199
Reply With Quote
  #2  
Old 04-19-2016, 07:27 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What is on line 258 of your showpost.php file? It should probably be a hook. Your problem is with some plugin that is using that hook location.
Reply With Quote
  #3  
Old 04-19-2016, 07:46 PM
greigeh greigeh is offline
 
Join Date: Jan 2015
Posts: 113
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
What is on line 258 of your showpost.php file? It should probably be a hook. Your problem is with some plugin that is using that hook location.
($hook = vBulletinHook::fetch_hook('showpost_post')) ? eval($hook) : false;

i've had a look at the plugins which has this hook but can't really find any errors with it
Reply With Quote
  #4  
Old 04-19-2016, 08:47 PM
squidsk's Avatar
squidsk squidsk is offline
 
Join Date: Nov 2010
Posts: 969
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Start disabling them one at a time and see which one removes the error. How many of those plugins have 199+ lines and have an equal sign on the 199th line?
Reply With Quote
  #5  
Old 04-19-2016, 09:57 PM
greigeh greigeh is offline
 
Join Date: Jan 2015
Posts: 113
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
What is on line 258 of your showpost.php file? It should probably be a hook. Your problem is with some plugin that is using that hook location.
Quote:
Originally Posted by squidsk View Post
Start disabling them one at a time and see which one removes the error. How many of those plugins have 199+ lines and have an equal sign on the 199th line?
So I disabled all the plugins which used the hook location showpost_post and it's still causing the error even though that's the hook found in the Parse Error. Yet when I disable the entire Post Thanks/Like System the error goes away.

Baffled
Reply With Quote
  #6  
Old 04-19-2016, 11:25 PM
TheLastSuperman's Avatar
TheLastSuperman TheLastSuperman is offline
Senior Member
 
Join Date: Sep 2008
Location: North Carolina
Posts: 5,844
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Which mod is it? Please post a link to the mod in question - without a link we don't know which one and from what I recall there are three thanks mods, two older ones and the DBTech one as well.
Reply With Quote
  #7  
Old 04-20-2016, 03:42 PM
greigeh greigeh is offline
 
Join Date: Jan 2015
Posts: 113
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by TheLastSuperman View Post
Which mod is it? Please post a link to the mod in question - without a link we don't know which one and from what I recall there are three thanks mods, two older ones and the DBTech one as well.
Sorry it is the DragonByte Tech: Advanced Post Thanks / Like
https://vborg.vbsupport.ru/showthrea...hanks+%2F+Like
Reply With Quote
  #8  
Old 04-20-2016, 03:51 PM
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Location: St. Augustine, FL
Posts: 3,853
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by greigeh View Post
Sorry it is the DragonByte Tech: Advanced Post Thanks / Like
https://vborg.vbsupport.ru/showthrea...hanks+%2F+Like
I have found in developing code on my local dev site, that if I have some kind of error in my plugin code hooked at locations beginning with "editpost_update_" then I get exactly the behavior you described in your first post.

I see that DBTech's product has a plugin hooked at "editpost_update_process". Try disabling just that plugin and see if the issue goes away. If so, then I suggest you report this issue in DBTech's thread for that product.
Reply With Quote
  #9  
Old 04-20-2016, 04:37 PM
the one the one is offline
 
Join Date: Nov 2013
Posts: 243
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Funny you should mention the post thanks hack.

I have a problem with this but i do not use DragonByte i use this one https://vborg.vbsupport.ru/showthread.php?t=231666

when i go to a thread and click on the inline mod menu and press select all it only selects the very first post.

When i disable this it works like it should do and selects them all.I am not sure how i would fix this and any help would be greatly appreciated as always.

Malc
Reply With Quote
  #10  
Old 04-20-2016, 04:52 PM
Dr.CustUmz's Avatar
Dr.CustUmz Dr.CustUmz is offline
 
Join Date: Aug 2013
Location: USA
Posts: 647
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by the one View Post
Funny you should mention the post thanks hack.

I have a problem with this but i do not use DragonByte i use this one https://vborg.vbsupport.ru/showthread.php?t=231666

when i go to a thread and click on the inline mod menu and press select all it only selects the very first post.

When i disable this it works like it should do and selects them all.I am not sure how i would fix this and any help would be greatly appreciated as always.

Malc
you should create your own thread or ask for help in the products thread.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:21 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04432 seconds
  • Memory Usage 2,260KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (6)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete