News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Disabled hooks, forum down

Started by Sir Osis of Liver, March 07, 2025, 09:58:34 PM

Previous topic - Next topic

Sir Osis of Liver

2.1.4 uninstalled all mods, that was fine, then disabled hooks with repair_settings.  Can get into ACP, everything else is 'Sorry, this section isn't available at this time.'  Two pages of hooks in forum maintenance are shown as not found.


sirosis
69.121.76.217
d4fcc0b9f1b2e799b328276f93786b8d
https://ducatimonsterforum.org/index.php?
Backtrace information

Type of error: General
Error message Select
The callable ! could not be called.


Seems that only board index is affected, I can get into topics via search.

  >:(

When in Emor, do as the Snamors.
                              - D. Lister

shawnb61

Yeah, open bug with that function...
https://github.com/SimpleMachines/tools/issues/64

However, in 2.1.4, there were improvements to the hook maintenance screen in the ACP.

If you can get there, you can delete them manually in the ACP.

If not, you'll need to do it in phpmyadmin.

A question worth asking is born in experience & driven by necessity. - Fripp

Sir Osis of Liver

Not sure that's what caused the problem.  After disabling hooks with repair_settings board index would not load with above error.  Everything else seemed to work.  Maintenance displayed two pages of hooks, all not found.  Only option was to delete them.  Does core code require hooks?  Restored a database backup, so can't play with it.

When in Emor, do as the Snamors.
                              - D. Lister

shawnb61

If you have un-installed all mods, then delete all hooks.

There are no hooks needed in core code.  Hooks exist for mods.

In 2.1, you can do all that in the ACP.
A question worth asking is born in experience & driven by necessity. - Fripp

Sir Osis of Liver

That's what I did, uninstalled all mods and disabled hooks with repair_settings.  Result was board index would not load.  There may be a problem in the database, but I don't have access.  We've been unable to install a portal.  The 1.1.21 install was running SimplePortal when upgrade was run, it may have left something behind.
When in Emor, do as the Snamors.
                              - D. Lister

shawnb61

Please read prior posts.

Repair_settings.php has a bug. 

In 2.1, you must delete using the ACP...

...unless/until the bug in repair_settings.php is fixed.
A question worth asking is born in experience & driven by necessity. - Fripp

Sir Osis of Liver

Oh, ok, misunderstood your post.  The screenshot on github is what I saw after disabling hooks.  That's kind of a major bug, I'm surprised it got into a released version of repair_settings.  How does it break board index?

When in Emor, do as the Snamors.
                              - D. Lister

shawnb61

I believe this issue is many, many years old.  It mainly affects 2.0.  In 2.1, you can fix hooks in ACP, so the function is unnecessary.

I think it's very low priority, mainly since nobody else has ever noticed or reported the bug...  Up until today, AFAICT, only me. 
A question worth asking is born in experience & driven by necessity. - Fripp

Sir Osis of Liver

You're talking about a different problem than what we experienced.  Disabling avatars with repair_settings prevented board index from loading, it rendered the forum useless, had to restore a database backup to fix it.  That's not a minor issue with ACP.

When in Emor, do as the Snamors.
                              - D. Lister

Advertisement: