Error Message "Undefined index: moderate_ctr"

Started by Chas Large, January 17, 2020, 06:59:41 PM

Previous topic - Next topic

Chas Large

Hi All, Happy New Year to all.

Suddenly started getting this error:

https://www.fiftyplusforum.co.uk/forum/index.php?action=galleryApply
8: Undefined index: moderate_ctr
/home/fiftyplu/public_html/forum/Sources/Subs.php
Line: 4188


SMF 2.0.17 fully up to date.

Error occurs on all pages for all users, so log file filling up fast.

Only recent changes were to install latest English British language pack but switching to US English or replacing the files back to the originals didn't fix it.

Most likely a Mod, have the following installed:

   Mod Name                                           Version   
1.   Unapproved Posts on Moderate Button   1.1   
2.   Simple Audio Video Embedder   5.0.3   
3.   Ultimate Profile   0.9.1   
4.   Custom Copyright   1.0.3   
5.   SMF 2.0.17 Update   1.0   
6.   SMF 2.0.16 Update   1.0   
7.   Welcome Topic Mod   2.3   
8.   Custom Greeting Mod   2.0   
9.   SimplePortal   2.3.7   
10.   reCAPTCHA for SMF   1.0.0   
11.   Google Member Map   3.0.4   
12.   Join Reason   1.5   
13.   Alt Characters v1.8   1.8   
14.   SMF 2.0.15 Update   1.0   
15.   SMF 2.0.14 Update   1.0   
16.   Bookmarks   2.5   
17.   ThemePermissions   1.0.2   
18.   Add Avatar To Who Is Online Version 1.1   1.0   
19.   Banned on admin memberlist SMF2   1.0   
20.   My Posts SMF2   1.1   
21.   Location on memberlist SMF2   1.6   
22.   SMF Gallery Pro   5.0.3b   
23.   Ignore Topics   2.3   
24.   Separated Birthdays from Events   1.1.7   
25.   URL Popup   1.0.2   
26.   Indent BBCode   1.1   
27.   Apache Error Handler   1.2   
28.   PM_notification   1.0   
29.   Images On Board   2.2   
30.   Signature Dropdown Choices   1.3   
31.   Generic Avatars   1.1   
32.   Improved Attachment Error Handling   1.1.0   
33.   Search Focus Dropdown   1.6.1   
34.   Negative Text BBCode   1.3   
35.   Caps_Lock_Detection_on_Login   1.1.0.2   
36.   Move Right BBCode   1.5   
37.   Next Topic Page   1.2   
38.   Google Analytics Code   1.4   
39.   Remove images from quotes   1.6   
40.   Improved Webmaster Email Settings   1.1   
41.   Advanced News   1.2   
42.   Total Time Logged In   1.0   
43.   Inline Hover Spoiler   1.5   
44.   Highslide 4 SMF   0.8.1   
45.   Board Index Unread Icon Fix   1.0

Any help greatly appreciated.
My Modifications :)  My Forum

Please DO NOT PM me with support requests. Post the problem in the appropriate Support Board so everyone can benefit from the advice given.

Sir Osis of Liver

Hey, Chas, long time.  It's not core code, most likely the gallery mod.  Also looks like you may have a double install of Simple Audio Video Embedder.  Attach your Subs.php.
When in Emor, do as the Snamors.
                              - D. Lister

Chas Large

Quote from: Sir Osis of Liver on January 17, 2020, 09:18:51 PM
Hey, Chas, long time.  It's not core code, most likely the gallery mod.  Also looks like you may have a double install of Simple Audio Video Embedder.  Attach your Subs.php.


Yes been a while, life keeps getting in the way.

Thanks for the reply. I did have an error relating to the Gallery but that was with the English_British translation file, Hacks gave me a new version which fixed that. I had previously reinstalled both those mods but the Gallery mod gave an error which I ignored as it seemed to be working before.

I'll try uninstalling and reinstalling the Gallery later,

Can't see the two installs of the Simple  Audio Video Embedder.

Subs.php attached.

Appreciate the help
My Modifications :)  My Forum

Please DO NOT PM me with support requests. Post the problem in the appropriate Support Board so everyone can benefit from the advice given.

Chas Large

Quote from: Sir Osis of Liver on January 17, 2020, 09:18:51 PM
Hey, Chas, long time.  It's not core code, most likely the gallery mod.  Also looks like you may have a double install of Simple Audio Video Embedder.  Attach your Subs.php.
You were right about the double install of the SVE, fixed that.
Uninstalled Gallery pro, cleared cache on site and browser, error still persists.
Hmmm.  :o
My Modifications :)  My Forum

Please DO NOT PM me with support requests. Post the problem in the appropriate Support Board so everyone can benefit from the advice given.

Chas Large

Definitely not the Gallery mod, had an error upon reinstall which I initially ignored but the Gallery still worked due to the cache.

Uninstalled again, cleared cache and Gallery disappeared. Reinstalled and the install error reoccurred so bought the latest version 8.0.8, installed that (settings now in sub menu under the gallery button), and all is well with that, but the error message above is still appearing.

Will try uninstalling other mods one at a time.
My Modifications :)  My Forum

Please DO NOT PM me with support requests. Post the problem in the appropriate Support Board so everyone can benefit from the advice given.

Shambles

If it's annoying you this much, why not just add the text string to your languages file...


$txt['moderate_ctr'] = 'WTF';

Sir Osis of Liver

^ Was going to suggest something similar.  If nothing's broken, just make the error go away.  moderate_ctr isn't core code, it's from a mod.  Replacing language pack may have removed $txt string the mod added. 
When in Emor, do as the Snamors.
                              - D. Lister

Chas Large

Thanks for both suggestions.

I like to resolve a problem rather than hide it, something you can't easily do in electronics, which is my background.

Now I know it's not part of the core code, I can trace the mod responsible as I've been unable to uninstall all the mods individually.

Odd thing though, not receiving notifications of these replies now. Must check the spam filter :D
My Modifications :)  My Forum

Please DO NOT PM me with support requests. Post the problem in the appropriate Support Board so everyone can benefit from the advice given.

Kindred

Download your site files.
Get notepad++
Run notepad++ and select "search all files in directory, choose php files, for the term moderate_ctr
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Chas Large

Thanks Kindred, done that, no mods have that part in the code, so must be from an old mod previously removed.

Removed the errant code from the subs.php file and the error is gone. All form functions "appear" to be working still so effectively problem solved.

Thanks to everyone for their help with this, a bit baffling as I've not been involved in SMF for a few years other than using the forum.

Happy days to all :D
My Modifications :)  My Forum

Please DO NOT PM me with support requests. Post the problem in the appropriate Support Board so everyone can benefit from the advice given.

Advertisement: