PDA

View Full Version : Post Thanks / Like System interfering with Quick Edit


greigeh
04-19-2016, 06:12 PM
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 1461098386 at 1461098386 ---------------

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
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
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.

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
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/showthread.php?t=243511&highlight=DragonByte+Tech%3A+Advanced+Post+Thanks+ %2F+Like

MarkFL
04-20-2016, 03:51 PM
Sorry it is the DragonByte Tech: Advanced Post Thanks / Like
https://vborg.vbsupport.ru/showthread.php?t=243511&highlight=DragonByte+Tech%3A+Advanced+Post+Thanks+ %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
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
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
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
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.

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

Good point made - greigeh have you done this yet?

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.

you should create your own thread or ask for help in the products thread.

^^ :cool:

squidsk
04-21-2016, 12:45 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.

MalcI 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/showthread.php?t=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.