Closed (fixed)
Project:
Profile 2
Version:
7.x-1.x-dev
Component:
Code
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
8 Jul 2012 at 15:42 UTC
Updated:
12 May 2016 at 11:51 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
the_g_bomb commentedI have noticed this in my syslogs after a cron run. Further investigation will happen at some point.
Comment #2
sadashiv commentedI faced the same problem. I found a solution when I checked profile_type table.
Steps to replicate this issue are:
1) Create a profile type (with profile2 page module disabled).
2) Enable profile2 page module.
This will throw that error.
The reason behind this is that data value in profile_type table is not updated to save use_page value.
Temporary fix for this would be to edit the profile_type and click on save again so the value gets updated in the database.
Permanent fix for this issue would be profile2 page adds a .install file with following code
Can be replicated in 7.x-1.3 release too.
Hth,
Sadashiv.
Comment #3
sadashiv commentedComment #4
spleshkaTried on latest dev, but could not reproduce an issue. Please, tell me how to reproduce issue on a clean installation.
This issue has a minor prio, because it has no influence on module functionality.
Comment #5
andyg5000I came across this when a profile type didn't have a value for $entity->data['use_page']. This profile type was created via features, so maybe that value is missing from a features export. Either way, it doesn't cause any problems and adding a !empty($type->data['use_page']) check to the update function solves this problem.
Comment #6
Sneakyvv commentedandyg5000's patch works, but like he said, the actual problem is that the use_page value is not exported via features. BUT this is only not being exported if the value is not in the database. If you save the profile type with the "use_page"-checkbox ticked, and then save it again with the checkbox unticked, a zero value will be in the database, and the value will also be in a features export.
Comment #7
guypaddock commentedIt seems like this happens if you export a profile type with Features without "Profile2 Pages" being enabled, and then later enable "Profile2 Pages". That being the case, it really does seem like #5 is the correct approach.
Comment #9
spleshkaI agree with @GuyPaddock and @Sneakyvy that the real issue is not in the module but in the correct site building process. Although I don't see any harm in commiting @andyg5000's patch to prevent php notices. Thanks everybody, the issue is resolved now.
Comment #11
hamrant commentedI get this error in profile2 7.x-1.3, patch #5 helped me.
I wonder when will be the next stable release of the module?