vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Post Thanks / Like System interfering with Quick Edit (https://vborg.vbsupport.ru/showthread.php?t=322422)

greigeh 04-19-2016 06:12 PM

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

Lynne 04-19-2016 07:27 PM

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.

greigeh 04-19-2016 07:46 PM

Quote:

Originally Posted by Lynne (Post 2569271)
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

squidsk 04-19-2016 08:47 PM

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?

greigeh 04-19-2016 09:57 PM

Quote:

Originally Posted by Lynne (Post 2569271)
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 (Post 2569279)
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

TheLastSuperman 04-19-2016 11:25 PM

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.

greigeh 04-20-2016 03:42 PM

Quote:

Originally Posted by TheLastSuperman (Post 2569286)
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

MarkFL 04-20-2016 03:51 PM

Quote:

Originally Posted by greigeh (Post 2569308)
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.

the one 04-20-2016 04:37 PM

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

Dr.CustUmz 04-20-2016 04:52 PM

Quote:

Originally Posted by the one (Post 2569310)
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.

greigeh 04-20-2016 05:27 PM

Quote:

Originally Posted by MarkFL (Post 2569309)
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.

Strangely, this still doesn't erase the issue. I'm thinking i'm going to have to go back to the drawing board and remove the script entirely.

ozzy47 04-20-2016 05:38 PM

Quote:

Originally Posted by greigeh (Post 2569319)
Strangely, this still doesn't erase the issue. I'm thinking i'm going to have to go back to the drawing board and remove the script entirely.

Why not just do the smart thing and ask the developer on their site?

TheLastSuperman 04-20-2016 06:51 PM

Quote:

Originally Posted by greigeh (Post 2569319)
Strangely, this still doesn't erase the issue. I'm thinking i'm going to have to go back to the drawing board and remove the script entirely.

Sometimes you overlook simple info in the install instructions or don't do something right, re-installing should sort it. If you've used this for a long time or recently updated then don't completely uninstall it (you'll lose all past thanks/likes and such) simply re-install and allow overwrite.

Quote:

Originally Posted by ozzy47 (Post 2569320)
Why not just do the smart thing and ask the developer on their site?

Good point made - greigeh have you done this yet?

Quote:

Originally Posted by the one (Post 2569310)
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

Malc please open a new thread as Dr Customz stated (honest mistake but what you did is often referred to as Thread Hijacking) and even more so since your mod is different. Asking for help in the mods thread OR on their site as Ozzy mentioned above to the OP would more than likely yield faster results.

Quote:

Originally Posted by Dr.CustUmz (Post 2569314)
you should create your own thread or ask for help in the products thread.

^^ :cool:

squidsk 04-21-2016 12:45 PM

Quote:

Originally Posted by the one (Post 2569310)
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

I know the solution to this problem, if you start your own thread I'll post the solution there.

the one 04-21-2016 02:35 PM

Sorry greigeh and everyone my mistake it wont happen again.I will do what you suggested squidsk

Many thanks https://vborg.vbsupport.ru/external/2016/04/14.png

greigeh 04-25-2016 11:06 PM

As it turns out, this error was actually caused by the Automatic Thread Tagger plugin. As seen in this thread many users also had these issues:
https://vborg.vbsupport.ru/showthrea...201156&page=17

Not entirely sure why disabling the likes system caused the error to go away, but I can only assume it stopped the conflict between tagger plugin->likes system-> edit feature. Nonetheless, thanks for everyones help.


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

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01155 seconds
  • Memory Usage 1,763KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (13)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (16)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete