Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hooks error when Module trying to add Menu item - Custom Menu in-use? #4

Open
madmanwilber opened this issue Aug 31, 2024 · 4 comments
Labels
question Further information is requested

Comments

@madmanwilber
Copy link

madmanwilber commented Aug 31, 2024

Hooks file has errors when logging into users accounts

Error: Call to a member function addChild() on null in ~/public_html/modules/addons/unblockip/hooks.php:180

1

@lsthompson
Copy link
Member

Do you have any customisations to your Client Area menu?

ie. Is the parent entry "Support" called something else?

@abkrim
Copy link

abkrim commented Sep 7, 2024

Hi yes for me. I use ThemeMetro.

Apreciate your help, before continue.

Firewall Unblocker


Oops!
Something went wrong and we couldn't process your request.
Please go back to the previous page and try again.

Error: Call to a member function addChild() on null in /home/intranet/web/intranet.domain.tld/public_html/modules/addons/unblockip/hooks.php:180
Stack trace:
#0 [internal function]: WHMCS\Utility\SafeInclude::{closure}()
#1 /home/intranet/web/intranet.domain.tld/public_html/vendor/whmcs/whmcs-foundation/lib/Hook/Manager.php(0): call_user_func()
#2 /home/intranet/web/intranet.domain.tld/public_html/vendor/illuminate/support/Facades/Facade.php(261): WHMCS\Hook\Manager->run()
#3 /home/intranet/web/intranet.domain.tld/public_html/includes/functions.php(0): Illuminate\Support\Facades\Facade::__callStatic()
#4 /home/intranet/web/intranet.domain.tld/public_html/vendor/whmcs/whmcs-foundation/lib/ClientArea.php(0): run_hook()
#5 /home/intranet/web/intranet.domain.tld/public_html/vendor/whmcs/whmcs-foundation/lib/ClientArea.php(0): WHMCS\ClientArea->outputWithoutExit()
#6 /home/intranet/web/intranet.domain.tld/public_html/vendor/whmcs/whmcs-foundation/lib/Http/Message/AbstractViewableResponse.php(0): WHMCS\ClientArea->getOutputContent()
#7 /home/intranet/web/intranet.domain.tld/public_html/vendor/middlewares/utils/src/CallableHandler.php(39): WHMCS\Http\Message\AbstractViewableResponse->getBody()
#8 /home/intranet/web/intranet.domain.tld/public_html/vendor/middlewares/fast-route/src/FastRoute.php(96): Middlewares\Utils\CallableHandler::execute()
#9 /home/intranet/web/intranet.domain.tld/public_html/vendor/whmcs/whmcs-foundation/lib/Route/Middleware/HandleProcessor.php(0): Middlewares\FastRoute->process()
#10 /home/intranet/web/intranet.domain.tld/public_html/vendor/whmcs/whmcs-foundation/lib/Route/Middleware/Strategy/AssumingMiddlewareTrait.php(0): WHMCS\Route\Middleware\HandleProcessor->_process()
#11 /home/intranet/web/intranet.domain.tld/public_html/vendor/middlewares/utils/src/Dispatcher.php(76): WHMCS\Route\Middleware\HandleProcessor->process()
#12 [internal function]: Middlewares\Utils\Dispatcher->Middlewares\Utils\{closure}()
#13 /home/intranet/web/intranet.domain.tld/public_html/vendor/middlewares/utils/src/Delegate.php(31): call_user_func()
#14 /home/intranet/web/intranet.domain.tld/public_html/vendor/whmcs/whmcs-foundation/lib/Route/Middleware/AbstractProxyMiddleware.php(0): Middlewares\Utils\Delegate->process()
#15 /home/intranet/web/intranet.domain.tld/public_html/vendor/whmcs/whmcs-foundation/lib/Route/Middleware/Strategy/AssumingMiddlewareTrait.php(0): WHMCS\Route\Middleware\AbstractProxyMiddleware->_process()
#16 /home/intranet/web/intranet.domain.tld/public_html/vendor/middlewares/utils/src/Dispatcher.php(76): WHMCS\Route\Middleware\AbstractProxyMiddleware->process()
#17 [internal function]: Middlewares\Utils\Dispatcher->Middlewares\Utils\{closure}()
#18 /home/intranet/web/intranet.domain.tld/public_html/vendor/middlewares/utils/src/Delegate.php(31): call_user_func()
#19 /home/intranet/web/intranet.domain.tld/public_html/vendor/whmcs/whmcs-foundation/lib/Route/Middleware/AbstractProxyMiddleware.php(0): Middlewares\Utils\Delegate->process()
#20 /home/intranet/web/intranet.domain.tld/public_html/vendor/whmcs/whmcs-foundation/lib/Route/Middleware/Strategy/AssumingMiddlewareTrait.php(0): WHMCS\Route\Middleware\AbstractProxyMiddleware->_process()
#21 /home/intranet/web/intranet.domain.tld/public_html/vendor/middlewares/utils/src/Dispatcher.php(76): WHMCS\Route\Middleware\AbstractProxyMiddleware->process()
#22 [internal function]: Middlewares\Utils\Dispatcher->Middlewares\Utils\{closure}()
#23 /home/intranet/web/intranet.domain.tld/public_html/vendor/middlewares/utils/src/Delegate.php(31): call_user_func()
#24 /home/intranet/web/intranet.domain.tld/public_html/vendor/whmcs/whmcs-foundation/lib/Route/Middleware/BackendPsr7Response.php(0): Middlewares\Utils\Delegate->process()
#25 /home/intranet/web/intranet.domain.tld/public_html/vendor/whmcs/whmcs-foundation/lib/Route/Middleware/BackendPsr7Response.php(0): WHMCS\Route\Middleware\BackendPsr7Response->_process()
#26 /home/intranet/web/intranet.domain.tld/public_html/vendor/middlewares/utils/src/Dispatcher.php(76): WHMCS\Route\Middleware\BackendPsr7Response->process()
#27 [internal function]: Middlewares\Utils\Dispatcher->Middlewares\Utils\{closure}()
#28 /home/intranet/web/intranet.domain.tld/public_html/vendor/middlewares/utils/src/Delegate.php(31): call_user_func()
#29 /home/intranet/web/intranet.domain.tld/public_html/vendor/middlewares/utils/src/Dispatcher.php(56): Middlewares\Utils\Delegate->process()
#30 /home/intranet/web/intranet.domain.tld/public_html/vendor/whmcs/whmcs-foundation/lib/Route/Middleware/BackendDispatch.php(0): Middlewares\Utils\Dispatcher->dispatch()
#31 /home/intranet/web/intranet.domain.tld/public_html/vendor/whmcs/whmcs-foundation/lib/Route/Middleware/Strategy/AssumingMiddlewareTrait.php(0): WHMCS\Route\Middleware\BackendDispatch->_process()
#32 /home/intranet/web/intranet.domain.tld/public_html/vendor/middlewares/utils/src/Dispatcher.php(76): WHMCS\Route\Middleware\BackendDispatch->process()
#33 [internal function]: Middlewares\Utils\Dispatcher->Middlewares\Utils\{closure}()
#34 /home/intranet/web/intranet.domain.tld/public_html/vendor/middlewares/utils/src/Delegate.php(31): call_user_func()
#35 /home/intranet/web/intranet.domain.tld/public_html/vendor/whmcs/whmcs-foundation/lib/Route/Middleware/RoutePathMatch.php(0): Middlewares\Utils\Delegate->process()
#36 /home/intranet/web/intranet.domain.tld/public_html/vendor/whmcs/whmcs-foundation/lib/Route/Middleware/Strategy/AssumingMiddlewareTrait.php(0): WHMCS\Route\Middleware\RoutePathMatch->_process()
#37 /home/intranet/web/intranet.domain.tld/public_html/vendor/middlewares/utils/src/Dispatcher.php(76): WHMCS\Route\Middleware\RoutePathMatch->process()
#38 [internal function]: Middlewares\Utils\Dispatcher->Middlewares\Utils\{closure}()
#39 /home/intranet/web/intranet.domain.tld/public_html/vendor/middlewares/utils/src/Delegate.php(31): call_user_func()
#40 /home/intranet/web/intranet.domain.tld/public_html/vendor/whmcs/whmcs-foundation/lib/Route/Middleware/WhitelistFilter.php(0): Middlewares\Utils\Delegate->process()
#41 /home/intranet/web/intranet.domain.tld/public_html/vendor/whmcs/whmcs-foundation/lib/Route/Middleware/Strategy/DelegatingMiddlewareTrait.php(0): WHMCS\Route\Middleware\WhitelistFilter->_process()
#42 /home/intranet/web/intranet.domain.tld/public_html/vendor/middlewares/utils/src/Dispatcher.php(76): WHMCS\Route\Middleware\WhitelistFilter->process()
#43 [internal function]: Middlewares\Utils\Dispatcher->Middlewares\Utils\{closure}()
#44 /home/intranet/web/intranet.domain.tld/public_html/vendor/middlewares/utils/src/Delegate.php(31): call_user_func()
#45 /home/intranet/web/intranet.domain.tld/public_html/vendor/whmcs/whmcs-foundation/lib/Route/Middleware/RoutableClientModuleRequest.php(0): Middlewares\Utils\Delegate->process()
#46 /home/intranet/web/intranet.domain.tld/public_html/vendor/whmcs/whmcs-foundation/lib/Route/Middleware/Strategy/AssumingMiddlewareTrait.php(0): WHMCS\Route\Middleware\RoutableClientModuleRequest->_process()
#47 /home/intranet/web/intranet.domain.tld/public_html/vendor/middlewares/utils/src/Dispatcher.php(76): WHMCS\Route\Middleware\RoutableClientModuleRequest->process()
#48 [internal function]: Middlewares\Utils\Dispatcher->Middlewares\Utils\{closure}()
#49 /home/intranet/web/intranet.domain.tld/public_html/vendor/middlewares/utils/src/Delegate.php(31): call_user_func()
#50 /home/intranet/web/intranet.domain.tld/public_html/vendor/whmcs/whmcs-foundation/lib/Route/Middleware/RoutableAdminRequestUri.php(0): Middlewares\Utils\Delegate->process()
#51 /home/intranet/web/intranet.domain.tld/public_html/vendor/whmcs/whmcs-foundation/lib/Route/Middleware/Strategy/AssumingMiddlewareTrait.php(0): WHMCS\Route\Middleware\RoutableAdminRequestUri->_process()
#52 /home/intranet/web/intranet.domain.tld/public_html/vendor/middlewares/utils/src/Dispatcher.php(76): WHMCS\Route\Middleware\RoutableAdminRequestUri->process()
#53 [internal function]: Middlewares\Utils\Dispatcher->Middlewares\Utils\{closure}()
#54 /home/intranet/web/intranet.domain.tld/public_html/vendor/middlewares/utils/src/Delegate.php(31): call_user_func()
#55 /home/intranet/web/intranet.domain.tld/public_html/vendor/whmcs/whmcs-foundation/lib/Route/Middleware/RoutableRequestUri.php(0): Middlewares\Utils\Delegate->process()
#56 /home/intranet/web/intranet.domain.tld/public_html/vendor/whmcs/whmcs-foundation/lib/Route/Middleware/Strategy/AssumingMiddlewareTrait.php(0): WHMCS\Route\Middleware\RoutableRequestUri->_process()
#57 /home/intranet/web/intranet.domain.tld/public_html/vendor/middlewares/utils/src/Dispatcher.php(76): WHMCS\Route\Middleware\RoutableRequestUri->process()
#58 [internal function]: Middlewares\Utils\Dispatcher->Middlewares\Utils\{closure}()
#59 /home/intranet/web/intranet.domain.tld/public_html/vendor/middlewares/utils/src/Delegate.php(31): call_user_func()
#60 /home/intranet/web/intranet.domain.tld/public_html/vendor/whmcs/whmcs-foundation/lib/Route/Middleware/RoutableRequestQueryUri.php(0): Middlewares\Utils\Delegate->process()
#61 /home/intranet/web/intranet.domain.tld/public_html/vendor/whmcs/whmcs-foundation/lib/Route/Middleware/Strategy/AssumingMiddlewareTrait.php(0): WHMCS\Route\Middleware\RoutableRequestQueryUri->_process()
#62 /home/intranet/web/intranet.domain.tld/public_html/vendor/middlewares/utils/src/Dispatcher.php(76): WHMCS\Route\Middleware\RoutableRequestQueryUri->process()
#63 [internal function]: Middlewares\Utils\Dispatcher->Middlewares\Utils\{closure}()
#64 /home/intranet/web/intranet.domain.tld/public_html/vendor/middlewares/utils/src/Delegate.php(31): call_user_func()
#65 /home/intranet/web/intranet.domain.tld/public_html/vendor/middlewares/utils/src/Dispatcher.php(56): Middlewares\Utils\Delegate->process()
#66 /home/intranet/web/intranet.domain.tld/public_html/index.php(0): Middlewares\Utils\Dispatcher->dispatch()

@lsthompson
Copy link
Member

Please send a screenshot of your Client Area menu for Support?

@quietvw
Copy link

quietvw commented Sep 9, 2024

This plugin doesn't work.

I am using the root account in cPanel. The API this plugin uses is out of date it seems. The debug log just shows the WHM login page.

@lsthompson lsthompson changed the title Hooks creating error Hooks error when Module trying to add Menu item - Custom Menu in-use? Sep 9, 2024
@lsthompson lsthompson added the question Further information is requested label Sep 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

5 participants
@abkrim @lsthompson @quietvw @madmanwilber and others