Undefined property: stdClass::$uid in _fivestar_field_helper and module unremovable

Created on 12 February 2017, about 8 years ago
Updated 27 October 2024, 6 months ago

The following error happens:
- - -
Notice: Undefined property: stdClass::$uid in _fivestar_field_helper() (line 144 of /var/www/html/MYSITE/sites/all/modules/fivestar/includes/fivestar.field.inc).
- - -
when trying to remove a fivestar field from a content type.

After that the module can not be removed in admin/modules: "Required by: Drupal (Fields pending deletion)" !

- - -
Steps leading to error on my system:
Install d7.52 + Theme 'gratis' + Modules:
ctools
devel
file_entity
fivestar
libraries
media
multiupload_filefield_widget
multiupload_imagefield_widget
views
votingapi

Create a content type with the following fields:

Label        	Machine name   	Field type        	Widget
-------------------------------------------------------------------------
Title         	title                  	Node module element
Fivestar    	fivestar            	Fivestar Rating 	As stars
Image      	field_image	  	Image                	Image
Company     	field_company	Text                    	Text field
Price $     	field_price       	Decimal             	Text field
Guarantee	field_guarantee	Text                    	Text field
Body        	body                	Long text and summary	Text area with a summary

Add 2 nodes of this type.
Edit and set their 5-star rating.
Delete fivestar field ---> (Error happens)
Try to disable the module.

After that the ENABLED checkbox for Fivestar in admin/modules becomes non-changeable (greyed and permanently selected) and DESCRIPTION says "Required by: Drupal (Fields pending deletion)"

πŸ› Bug report
Status

Closed: outdated

Version

2.0

Component

Code

Created by

πŸ‡¨πŸ‡¦Canada ench0

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024