Closed (duplicate)
Project:
Profile 2
Version:
7.x-1.4
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
2 May 2018 at 00:24 UTC
Updated:
15 May 2018 at 20:45 UTC
Jump to comment: Most recent
After upgrade profile2 to the latest version my fields are now missing on the registration page. Any assistance would be welcome as to how to restore this issue or resolve it. We are running Drupal 7.52 core.
Comments
Comment #2
rickj commentedI think this may be a duplicate of #2961481.
Please apply the suggestion there in comment #2, and let me know the result. I hope to create a 1.5 release soon, once I've resolved these anomalies. Thanks.
Comment #3
brandonlv commentedCould you please link me to the latest dev build?
I assume this patch file? (https://www.drupal.org/files/issues/2018-03-29/profile2-dedupe_pre_rende...)
As a new user I'd be grateful for a guide on how to apply the patch in a Ubuntu LAMP environment.
Comment #4
rickj commentedYou can always find the latest dev version of a module (and any other versions) at the bottom of the main project page (https://www.drupal.org/project/profile2 in this case). You'll see a link "Development version: 7.x-1.x-dev updated ...", it will take you to a page with download buttons for the tar or zip file.
There isn't a way in the admin UI to update a module to a dev build. Do you have shell (command line) access to your server, and/or FTP or WebDAV access? The simplest way to update the module is simply to unpack the download into the existing module directory, overwriting the existing files (the directory is /sites/all/modules/profile2). To apply a patch, copy the patch file into the module directory and run the command: "patch -p1
You can either do this on the server, or locally then copy the files over, which one is easier depends on your configuration.
After updating the files it's usually best to clear the caches (in admin->performance).
There are other ways, but require other tools, such as drush (very useful, but something else to learn!).
Comment #5
brandonlv commentedWould that work for downgrading the module as well? I only have a production server at the moment and am in the process of creating a dev environment where I could test the dev module. Reverting to the backup created before the update wold be counter productive as too much time has passed.
Comment #6
rickj commentedYes, you can downgrade this way, it will also work to upgrade instead of going through the admin UI. When Drupal lists the installed modules and versions, it is reading the .info files directly out of the module directories. it's not overly complicated.
The main rules are to clear the cache after any changes, and run update.php after an upgrade. This will perform any database updates that may be required by a new version, though if you know there are none you can skip this.
Comment #7
jdleonardhttps://www.drupal.org/project/profile2/issues/1209640#comment-12549643 applied to the latest dev release fixed this for me.
Comment #8
rickj commented