Attribute problem - Call to a member function getAttributeKeyID() on null

Permalink Browser Info Environment
Hi there

I have the Staff Directory block installed on a website here:https://thesurreycircle.co.uk/staff_directory...

As you will see the page is throwing up the error Call to a member function getAttributeKeyID() on null

I believe this is due to me attempting to add a new field for a website address via the code, this didn't work so i then removed this. I then tried to add a new via Adding/Editing Staff Directory Department/Type (i believe) then i deleted this attribute as it wasn't working either and this is when the error occurred. Reading your documentation, i can see i should have manually synced the changes so i this this why i'm having this issue.

I can reach the rest of the site just not this page or via the dashboard.

Any help would be much appreciated right now.

Thanks
Laura

Type: Discussion
Status: In Progress
designbylaura89
View Replies:
InformaticsInc replied on at Permalink Reply
InformaticsInc
Hello Laura - we'll take a look and get back to you.
designbylaura89 replied on at Permalink Reply
designbylaura89
Thank you so much. My other idea is to uninstall the block and reinstall and see if that helps!

I'll wait to see if you have any further guidance.

Thanks
Laura
InformaticsInc replied on at Permalink Reply 1 Attachment
InformaticsInc
Hello Laura - it appears that the attribute you've deleted is a mandatory attribute. You will need to make sure there is an attribute present that will handle "directory_category". Please see the attached screenshot.
designbylaura89 replied on at Permalink Reply
designbylaura89
I've added that attribute back in and it works - yay! Thanks so much - not sure how i managed to delete that!! Have a good day, thanks Laura

concrete5 Environment Information

# concrete5 Version
Core Version - 8.5.5
Version Installed - 8.5.5
Database Version - 20201116182100

# Database Information
Version: 5.5.68-MariaDB
SQL Mode:

# concrete5 Packages
Block Designer (1.3.9), C5DK Blog (8.4.3), C5J Stripe Subscription (1.0.1), Community Store (2.3.6), Flip Portal (1.0.1), Hutman Ads (2.0.1), Knibbs (2.0), Login Page Background (0.9.1), Modena Theme (1.1.6), Page List+ (2.0.1.3), Page Redirect (2.0), Page Selector Attribute (2.0), Quick Tabs (1.0), Services Block (2.0), Simple Header Block (1.0.1), Simple Portal (1.0.1), Spacer (0.9.3), Staff Directory (1.1.9), Stripe Checkout Payment Method (1.0.1), Whale Grid Gallery (2.3.3), Whale OWL Carousel (2.5.7.7)

# concrete5 Overrides
blocks/autonav/templates/breadcrumb.php, blocks/autonav/templates/default_nav.php, blocks/autonav/templates/featured_nav.php, blocks/autonav/templates/mega_menu.php, blocks/autonav/templates/mega_menu_with_feature.php, blocks/autonav/templates/main.php, blocks/autonav/templates, blocks/autonav, blocks/image_slider/templates/home_slider/view.php, blocks/image_slider/templates/home_slider, blocks/image_slider/templates/header_slider/view.php, blocks/image_slider/templates/header_slider, blocks/image_slider/templates, blocks/image_slider, blocks/page_list/templates/simple/view.php, blocks/page_list/templates/simple, blocks/page_list/templates/thumbnail_grid/js/dynamic_list.js, blocks/page_list/templates/thumbnail_grid/js, blocks/page_list/templates/thumbnail_grid/view.css, blocks/page_list/templates/thumbnail_grid/view.php, blocks/page_list/templates/thumbnail_grid, blocks/page_list/templates, blocks/page_list, blocks/two_column_content/add.php, blocks/two_column_content/composer.php, blocks/two_column_content/config.json, blocks/two_column_content/controller.php, blocks/two_column_content/db.xml, blocks/two_column_content/edit.php, blocks/two_column_content/form.php, blocks/two_column_content/icon.png, blocks/two_column_content/view.php, blocks/two_column_content/templates/right_sidebar/view.php, blocks/two_column_content/templates/right_sidebar, blocks/two_column_content/templates/background_color/view.php, blocks/two_column_content/templates/background_color, blocks/two_column_content/templates/left_sidebar/view.php, blocks/two_column_content/templates/left_sidebar, blocks/two_column_content/templates, blocks/two_column_content, blocks/parallax/db.xml, blocks/parallax/form.php, blocks/parallax/controller.php, blocks/parallax/add.php, blocks/parallax/composer.php, blocks/parallax/edit.php, blocks/parallax/config.json, blocks/parallax/icon.png, blocks/parallax/view.php, blocks/parallax, blocks/map_multi_location/db.xml, blocks/map_multi_location/controller.php, blocks/map_multi_location/add.php, blocks/map_multi_location/composer.php, blocks/map_multi_location/form_setup_html.php, blocks/map_multi_location/edit.php, blocks/map_multi_location/icon.png, blocks/map_multi_location/LICENSE.TXT, blocks/map_multi_location/view.php, blocks/map_multi_location, blocks/text_image/add.php, blocks/text_image/config.json, blocks/text_image/composer.php, blocks/text_image/controller.php, blocks/text_image/db.xml, blocks/text_image/edit.php, blocks/text_image/form.php, blocks/text_image/icon.png, blocks/text_image/view.js, blocks/text_image/view.php, blocks/text_image, blocks/accordion_extended/db.xml, blocks/accordion_extended/controller.php, blocks/accordion_extended/view.php, blocks/accordion_extended/view.js, blocks/accordion_extended/add.php, blocks/accordion_extended/composer.php, blocks/accordion_extended/edit.php, blocks/accordion_extended/config.json, blocks/accordion_extended/form.php, blocks/accordion_extended/icon.png, blocks/accordion_extended, blocks/content_on_hover/add.php, blocks/content_on_hover/composer.php, blocks/content_on_hover/controller.php, blocks/content_on_hover/config.json, blocks/content_on_hover/db.xml, blocks/content_on_hover/edit.php, blocks/content_on_hover/icon.png, blocks/content_on_hover/form.php, blocks/content_on_hover/view.php, blocks/content_on_hover/templates/background_colour_reverse/view.php, blocks/content_on_hover/templates/background_colour_reverse, blocks/content_on_hover/templates/no_front_content/view.php, blocks/content_on_hover/templates/no_front_content, blocks/content_on_hover/templates, blocks/content_on_hover, blocks/faqs/add.php, blocks/faqs/composer.php, blocks/faqs/controller.php, blocks/faqs/db.xml, blocks/faqs/edit.php, blocks/faqs/form_setup_html.php, blocks/faqs/icon.png, blocks/faqs/view.php, blocks/faqs/LICENSE.TXT, blocks/faqs, blocks/video_text/add.php, blocks/video_text/auto.js, blocks/video_text/composer.php, blocks/video_text/controller.php, blocks/video_text/config.json, blocks/video_text/db.xml, blocks/video_text/edit.php, blocks/video_text/icon.png, blocks/video_text/form.php, blocks/video_text/view.php, blocks/video_text/js_form/select2.sortable.js, blocks/video_text/js_form, blocks/video_text, blocks/home_slider/db.xml, blocks/home_slider/controller.php, blocks/home_slider/add.php, blocks/home_slider/composer.php, blocks/home_slider/form_setup_html.php, blocks/home_slider/icon.png, blocks/home_slider/edit.php, blocks/home_slider/LICENSE.TXT, blocks/home_slider/view.js, blocks/home_slider/view.php, blocks/home_slider, blocks/search/templates/animated_search/view.php, blocks/search/templates/animated_search, blocks/search/templates/simple/view.php, blocks/search/templates/simple, blocks/search/templates, blocks/search

# concrete5 Cache Settings
Block Cache - On
Overrides Cache - On
Full Page Caching - Off
Full Page Cache Lifetime - Every 6 hours (default setting).

# Server Software
Apache

# Server API
fpm-fcgi

# PHP Version
7.3.33

# PHP Extensions
bcmath, bz2, calendar, cgi-fcgi, Core, ctype, curl, date, dba, dom, enchant, exif, fileinfo, filter, ftp, gd, gettext, gmp, hash, iconv, imagick, imap, intl, ionCube Loader, json, ldap, libxml, mbstring, mysqli, mysqlnd, odbc, openssl, pcre, PDO, pdo_mysql, PDO_ODBC, pdo_pgsql, pdo_sqlite, pgsql, Phar, posix, pspell, redis, Reflection, session, SimpleXML, soap, sockets, sodium, SPL, sqlite3, standard, sysvmsg, sysvsem, sysvshm, tidy, tokenizer, xml, xmlreader, xmlrpc, xmlwriter, xsl, Zend OPcache, zip, zlib

# PHP Settings
max_execution_time - 30
log_errors_max_len - 1024
max_file_uploads - 20
max_input_nesting_level - 64
max_input_time - 60
max_input_vars - 1000
memory_limit - 256M
post_max_size - 8M
upload_max_filesize - 2M
ic24.api.max_timeout - 7
ldap.max_links - Unlimited
mbstring.regex_stack_limit - 100000
mysqli.max_links - Unlimited
mysqli.max_persistent - Unlimited
odbc.max_links - Unlimited
odbc.max_persistent - Unlimited
pcre.backtrack_limit - 1000000
pcre.recursion_limit - 100000
pgsql.max_links - Unlimited
pgsql.max_persistent - Unlimited
redis.pconnect.connection_limit - 0
session.cache_limiter - <i>no value</i>
session.gc_maxlifetime - 7200
soap.wsdl_cache_limit - 5
opcache.max_accelerated_files - 10000
opcache.max_file_size - 0
opcache.max_wasted_percentage - 5

Browser User-Agent String

Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.64 Safari/537.36

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You have not specified a license for this support ticket. You must have a valid license assigned to a support ticket to request a refund.