Jump to content

Featured Replies

Posted

My staff are currently running into an issue as I don't have this issue on my account but once I login as them I can replicate it

 

TypeError: array_key_exists(): Argument #2 ($array) must be of type array, null given in /home/customsforge/public_html/system/Member/Member.php:3708
Stack trace:
#0 /home/customsforge/public_html/system/Member/Member.php(3708): array_key_exists('core', NULL)
#1 /home/customsforge/public_html/uploads/template_3_94a9d7649fb9cdbfc784d3516e61a717_global.php(9110): IPS\_Member->hasAcpRestriction('core', 'promotion', 'promote_manage')
#2 /home/customsforge/public_html/system/Theme/SandboxedTemplate.php(61): IPS\Theme\Cache\class_core_front_global->mobileNavigation()
#3 /home/customsforge/public_html/uploads/template_3_94a9d7649fb9cdbfc784d3516e61a717_global.php(6788): IPS\Theme\_SandboxedTemplate->__call('mobileNavigatio...', Array)
#4 /home/customsforge/public_html/system/Theme/SandboxedTemplate.php(61): IPS\Theme\Cache\class_core_front_global->globalTemplate('CustomsForge - ...', '\n\n<div class='i...', Array)
#5 /home/customsforge/public_html/system/Dispatcher/Dispatcher.php(173): IPS\Theme\_SandboxedTemplate->__call('globalTemplate', Array)
#6 /home/customsforge/public_html/system/Dispatcher/Standard.php(113): IPS\_Dispatcher->finish()
#7 /home/customsforge/public_html/system/Dispatcher/Front.php(558): IPS\Dispatcher\_Standard->finish()
#8 /home/customsforge/public_html/system/Dispatcher/Dispatcher.php(155): IPS\Dispatcher\_Front->finish()
#9 /home/customsforge/public_html/index.php(13): IPS\_Dispatcher->run()
#10 {main}

 

#0 /home/customsforge/public_html/system/Theme/SandboxedTemplate.php(71): IPS\_Log::log(Object(TypeError), 'template_error')
#1 /home/customsforge/public_html/uploads/template_3_94a9d7649fb9cdbfc784d3516e61a717_global.php(6788): IPS\Theme\_SandboxedTemplate->__call('mobileNavigatio...', Array)
#2 /home/customsforge/public_html/system/Theme/SandboxedTemplate.php(61): IPS\Theme\Cache\class_core_front_global->globalTemplate('CustomsForge - ...', '\n\n<div class='i...', Array)
#3 /home/customsforge/public_html/system/Dispatcher/Dispatcher.php(173): IPS\Theme\_SandboxedTemplate->__call('globalTemplate', Array)
#4 /home/customsforge/public_html/system/Dispatcher/Standard.php(113): IPS\_Dispatcher->finish()
#5 /home/customsforge/public_html/system/Dispatcher/Front.php(558): IPS\Dispatcher\_Standard->finish()
#6 /home/customsforge/public_html/system/Dispatcher/Dispatcher.php(155): IPS\Dispatcher\_Front->finish()
#7 /home/customsforge/public_html/index.php(13): IPS\_Dispatcher->run()
#8 {main}

Things I've tried

  • Clear redis cache
  • Upload clean IP Board install
  • Create a new default theme
  • Disable all plugins/addons/etc

They still see this:

Could contain: City on the main page

When viewing a thread there are multiple:

TypeError: array_key_exists(): Argument #2 ($array) must be of type array, null given in /home/customsforge/public_html/system/Member/Member.php:3708
Stack trace:
#0 /home/customsforge/public_html/system/Member/Member.php(3708): array_key_exists('core', NULL)
#1 /home/customsforge/public_html/applications/core/extensions/core/AdminNotifications/ConfigurationError.php(284): IPS\_Member->hasAcpRestriction('core', 'members', 'member_delete_a...')
#2 /home/customsforge/public_html/applications/core/sources/AdminNotification/AdminNotification.php(228): IPS\core\extensions\core\AdminNotifications\_ConfigurationError->visibleTo(Object(IPS\Member))
#3 /home/customsforge/public_html/applications/core/sources/AdminNotification/AdminNotification.php(152): IPS\core\_AdminNotification::notificationIdsForMember(Object(IPS\Member))
#4 /home/customsforge/public_html/uploads/template_3_94a9d7649fb9cdbfc784d3516e61a717_global.php(16417): IPS\core\_AdminNotification::notifications(Object(IPS\Member), Array)
#5 /home/customsforge/public_html/system/Theme/SandboxedTemplate.php(61): IPS\Theme\Cache\class_core_front_global->updateWarning()
#6 /home/customsforge/public_html/uploads/template_3_94a9d7649fb9cdbfc784d3516e61a717_global.php(6619): IPS\Theme\_SandboxedTemplate->__call('updateWarning', Array)
#7 /home/customsforge/public_html/system/Theme/SandboxedTemplate.php(61): IPS\Theme\Cache\class_core_front_global->globalTemplate('CustomsForge - ...', '\n\n<div class='i...', Array)
#8 /home/customsforge/public_html/system/Dispatcher/Dispatcher.php(173): IPS\Theme\_SandboxedTemplate->__call('globalTemplate', Array)
#9 /home/customsforge/public_html/system/Dispatcher/Standard.php(113): IPS\_Dispatcher->finish()
#10 /home/customsforge/public_html/system/Dispatcher/Front.php(558): IPS\Dispatcher\_Standard->finish()
#11 /home/customsforge/public_html/system/Dispatcher/Dispatcher.php(155): IPS\Dispatcher\_Front->finish()
#12 /home/customsforge/public_html/index.php(13): IPS\_Dispatcher->run()
#13 {main}
TypeError: array_key_exists(): Argument #2 ($array) must be of type array, null given in /home/customsforge/public_html/system/Member/Member.php:3708
Stack trace:
#0 /home/customsforge/public_html/system/Member/Member.php(3708): array_key_exists('core', NULL)
#1 /home/customsforge/public_html/uploads/template_3_94a9d7649fb9cdbfc784d3516e61a717_global.php(9110): IPS\_Member->hasAcpRestriction('core', 'promotion', 'promote_manage')
#2 /home/customsforge/public_html/system/Theme/SandboxedTemplate.php(61): IPS\Theme\Cache\class_core_front_global->mobileNavigation()
#3 /home/customsforge/public_html/uploads/template_3_94a9d7649fb9cdbfc784d3516e61a717_global.php(6788): IPS\Theme\_SandboxedTemplate->__call('mobileNavigatio...', Array)
#4 /home/customsforge/public_html/system/Theme/SandboxedTemplate.php(61): IPS\Theme\Cache\class_core_front_global->globalTemplate('CustomsForge - ...', '\n\n<div class='i...', Array)
#5 /home/customsforge/public_html/system/Dispatcher/Dispatcher.php(173): IPS\Theme\_SandboxedTemplate->__call('globalTemplate', Array)
#6 /home/customsforge/public_html/system/Dispatcher/Standard.php(113): IPS\_Dispatcher->finish()
#7 /home/customsforge/public_html/system/Dispatcher/Front.php(558): IPS\Dispatcher\_Standard->finish()
#8 /home/customsforge/public_html/system/Dispatcher/Dispatcher.php(155): IPS\Dispatcher\_Front->finish()
#9 /home/customsforge/public_html/index.php(13): IPS\_Dispatcher->run()
#10 {main}
TypeError: array_key_exists(): Argument #2 ($array) must be of type array, null given in /home/customsforge/public_html/system/Member/Member.php:3708
Stack trace:
#0 /home/customsforge/public_html/system/Member/Member.php(3708): array_key_exists('forums', NULL)
#1 /home/customsforge/public_html/applications/forums/sources/Topic/Topic.php(1689): IPS\_Member->hasAcpRestriction('forums', 'forums', 'archive_manage')
#2 /home/customsforge/public_html/system/Theme/Theme.php(885) : eval()'d code(4477): IPS\forums\_Topic->canRemoveArchiveExcludeFlag()
#3 /home/customsforge/public_html/system/Theme/SandboxedTemplate.php(61): IPS\Theme\class_forums_front_topics->topic(Object(IPS\forums\Topic), Array, NULL, Array, true, NULL, Array)
#4 /home/customsforge/public_html/applications/forums/modules/front/forums/topic.php(576): IPS\Theme\_SandboxedTemplate->__call('topic', Array)
#5 /home/customsforge/public_html/system/Dispatcher/Controller.php(118): IPS\forums\modules\front\forums\_topic->manage()
#6 /home/customsforge/public_html/system/Content/Controller.php(50): IPS\Dispatcher\_Controller->execute()
#7 /home/customsforge/public_html/applications/forums/modules/front/forums/topic.php(39): IPS\Content\_Controller->execute()
#8 /home/customsforge/public_html/system/Dispatcher/Dispatcher.php(153): IPS\forums\modules\front\forums\_topic->execute()
#9 /home/customsforge/public_html/index.php(13): IPS\_Dispatcher->run()
#10 {main}
TypeError: array_key_exists(): Argument #2 ($array) must be of type array, null given in /home/customsforge/public_html/system/Member/Member.php:3708
Stack trace:
#0 /home/customsforge/public_html/system/Member/Member.php(3708): array_key_exists('core', NULL)
#1 /home/customsforge/public_html/applications/core/extensions/core/AdminNotifications/ConfigurationError.php(284): IPS\_Member->hasAcpRestriction('core', 'members', 'member_delete_a...')
#2 /home/customsforge/public_html/applications/core/sources/AdminNotification/AdminNotification.php(228): IPS\core\extensions\core\AdminNotifications\_ConfigurationError->visibleTo(Object(IPS\Member))
#3 /home/customsforge/public_html/applications/core/sources/AdminNotification/AdminNotification.php(152): IPS\core\_AdminNotification::notificationIdsForMember(Object(IPS\Member))
#4 /home/customsforge/public_html/uploads/template_3_94a9d7649fb9cdbfc784d3516e61a717_global.php(16417): IPS\core\_AdminNotification::notifications(Object(IPS\Member), Array)
#5 /home/customsforge/public_html/system/Theme/SandboxedTemplate.php(61): IPS\Theme\Cache\class_core_front_global->updateWarning()
#6 /home/customsforge/public_html/uploads/template_3_94a9d7649fb9cdbfc784d3516e61a717_global.php(6619): IPS\Theme\_SandboxedTemplate->__call('updateWarning', Array)
#7 /home/customsforge/public_html/system/Theme/SandboxedTemplate.php(61): IPS\Theme\Cache\class_core_front_global->globalTemplate('CustomsForge - ...', '<span style='ba...', Array)
#8 /home/customsforge/public_html/system/Dispatcher/Dispatcher.php(173): IPS\Theme\_SandboxedTemplate->__call('globalTemplate', Array)
#9 /home/customsforge/public_html/system/Dispatcher/Standard.php(113): IPS\_Dispatcher->finish()
#10 /home/customsforge/public_html/system/Dispatcher/Front.php(558): IPS\Dispatcher\_Standard->finish()
#11 /home/customsforge/public_html/system/Dispatcher/Dispatcher.php(155): IPS\Dispatcher\_Front->finish()
#12 /home/customsforge/public_html/index.php(13): IPS\_Dispatcher->run()
#13 {main}
TypeError: array_key_exists(): Argument #2 ($array) must be of type array, null given in /home/customsforge/public_html/system/Member/Member.php:3708
Stack trace:
#0 /home/customsforge/public_html/system/Member/Member.php(3708): array_key_exists('core', NULL)
#1 /home/customsforge/public_html/uploads/template_3_94a9d7649fb9cdbfc784d3516e61a717_global.php(9110): IPS\_Member->hasAcpRestriction('core', 'promotion', 'promote_manage')
#2 /home/customsforge/public_html/system/Theme/SandboxedTemplate.php(61): IPS\Theme\Cache\class_core_front_global->mobileNavigation()
#3 /home/customsforge/public_html/uploads/template_3_94a9d7649fb9cdbfc784d3516e61a717_global.php(6788): IPS\Theme\_SandboxedTemplate->__call('mobileNavigatio...', Array)
#4 /home/customsforge/public_html/system/Theme/SandboxedTemplate.php(61): IPS\Theme\Cache\class_core_front_global->globalTemplate('CustomsForge - ...', '<span style='ba...', Array)
#5 /home/customsforge/public_html/system/Dispatcher/Dispatcher.php(173): IPS\Theme\_SandboxedTemplate->__call('globalTemplate', Array)
#6 /home/customsforge/public_html/system/Dispatcher/Standard.php(113): IPS\_Dispatcher->finish()
#7 /home/customsforge/public_html/system/Dispatcher/Front.php(558): IPS\Dispatcher\_Standard->finish()
#8 /home/customsforge/public_html/system/Dispatcher/Dispatcher.php(155): IPS\Dispatcher\_Front->finish()
#9 /home/customsforge/public_html/index.php(13): IPS\_Dispatcher->run()
#10 {main}

Currently running PHP 8.1, all checks for ips4 pass.

Unsure what else to do, please advise. Thank you

Solved by Unleashed2k

Go to solution

Before we proceed, have you tested this on a default unaltered theme?

  • Author

 

5 hours ago, Marc Stridgen said:

Before we proceed, have you tested this on a default unaltered theme?

Yeah I created a fresh one and it still occurred on their profiles.

Could you please disable all third party applications/plugins and then clear or disable template cache?

Clearing template cache can be done by going to /uploads/ folder and then deleting all files prefixed with template_ 

If you are unsure what you're doing I would advise taking a backup of your uploads folder or simply just disable template caching in ACP -> System -> Advanced Configuration.

  • Author

Still occurring unfortunately

Could contain: File, Webpage, Text, Page

  • Author

Looking at the errors I have narrowed it down to restrictive ACP access. I'm trying to see if I delete all the restrictions and recreate them that will fix it

Please let us know

  • 2 weeks later...
  • Author
  • Solution

This was the issue, and has been resolved. So if anyone runs into this, redo your restrictive permissions. Not sure what broke it. Maybe an old plugin that had some settings? 

Thank you for coming back to let us know, and very glad to hear you found the issue 🙂 

Recently Browsing 0

  • No registered users viewing this page.