I'm upgrading drupal from version 7 to version 9.
I used drupal 9 migration modules for this, which worked well for drupal core and some contribs. All content, users and datas are migrated.
But I have a couple of custom modules in the Drupal 7 project regarding functional requirements, does anyone know how to manage custom things in migration?
Drupal community has written a guide about the best method to migrate data and code form Drupal 7 to Drupal 9 :
https://www.drupal.org/docs/drupal-apis/migrate-api/writing-migrations-for-contributed-and-custom-modules
You can consider that everything that has been written about Drupal 8 is valid for Drupal, especially when the purposed code is using the new Symfony API.
When you rewrite your updated module, you have just to tel that it is complatible with Drupal 8 and Drupal 9 into module.info.yml file. The file will lokk like this and the last line concerns Drupal 8 and 9 compatibility :
name: Module name
type: module
description: Module description
package: Custom modules group name
core: 8.x
core_version_requirement: ^8 || ^9
The last important thing is that the module updated version will have to be ready before starting migration because the data migration classes will be included in it.
Related
Yesterday, I upgraded finally a plone instance from 4.3.8 to 5.0.4. (ref. MigrationError during plone upgrading from 4.3.8 to 5.0.3).
But after a detailed check, compared to a new created instance in plone 5.0.4, I found some strange conditions in the upgraded instance(from 4.3.8) :
1. In the page of ##overview-controlpanel:
(1). There are no icons for caching-controlpanel and dateandtime-controlpanel. But I can access them through the complete url (##caching-controlpanel and ##dateandtime-controlpanel)
(2). There is a group of “Plone Configuration” in the upgraded instance.
(3). Some items belong to different groups for the upgraded instance and new created instance.
There are many difference between the upgraded instance(from 4.3.8) and new created instance
2. In the page of ZMI:manage_main:
(1) Some items exist only in the upgraded instance:
uid_catalog (Catalog of unique content identifiers), reference_catalog (Catalog of content references), portal_tinymce, portal_placeful_workflow, portal_metadata (Controls metadata like keywords, copyrights, etc), portal_factory (Responsible for the creation of content objects), portal_discussion (Controls how discussions are stored), portal_atct (Collection and image scales settings), archetype_tool (Archetypes specific settings), portal_undo (Defines actions and functionality related to undo), portal_interface (Allows to query object interfaces), portal_calendar (Controls how events are shown), portal_actionicons (Associates actions with icons)
(2) In the page of portal_properties, imaging_properties (Image handling properties) only exist in the upgraded instance.
(3) In the page of portal_properties/site_properties, there are more items than the new created instance.
What can I do to deal with these difference in the upgraded plone instance and the new created instance(5.0.4)? Is the upgraded instance ready for production use?
Best Regards.
Hugo
1. In the page of ##overview-controlpanel:
I didn't get what you mean with "Some items belong to different groups" but they seems some minor migration issues.
Please provide a bug request.
2. In the page of ZMI:manage_main:
Keep in mind that an upgrade Plone site from Plone 4 will not remove stuff used on Plone 4 because you where probably using it before.
For example the migrated instance will probably have the optional "Archetypes" support installed by default (and this extension create a lot of the tools you find there).
Plone can't know if you are using an Archetypes based add-on not yet migrated to dexterity.
If you later will find that you are not using Archetypes based content types you can probably uninstall the profile and cleanup things.
I am trying to add PHRETS class to Drupal 8 (https://github.com/troydavisson/PHRETS). I did this in drupal 7 by simply including autoload.php file and calling the class name. But Drupal 8 doesn't allow this. It need to declare the classes in PSR-4 format. PHRETS has so many classes. Is there any other way around to call the class directly like below which I used for Drupal 7:
use PHRETS\Configuration;
require_once("vendor/autoload.php");
The Composer Manager module handle the autoload of Composer managed third party libraries. Usage of the module is covered in its documentation.
Views PHP module give following error in site audit report:
Unfinished and incomplete, Views PHP permits executable code to be stored in the database with no revisioning; a typo introduced in the Views UI can bring down an entire production site with no accountability. See http://api.drupal.org/api/views for details on how to implement your own custom Views functionality.
How can I deal with this issue?
It can be a bug in some of installed modules. Are you maybe using something called "Pantheon"?
https://www.drupal.org/node/2420591
Anyway, try turning off some modules and see will error still appear.
I am unable to understand which folder is the logs for the drupal solr integration module. I am using drupal 7 and the module version is 7.x-1.1
I have the solr attachments module as well.
How do i know what is the request that is made when search results are displayed and how can i customize them ? Pls guide me.
The first place to look for customization of the query that is sent to Solr from Drupal is the api doc (included with the module and available online here). The hook you will want to look at is hook_apachesolr_query_alter(). It allows you to take a query that has been generated by the module and modify it before it is sent to Solr.
There is no log file generated by the Drupal module (other than watchdog messages), but you can enable logging in the Solr admin interface. There are also a few ways to enable logging in Solr (see here and here for examples). Here are some specific instructions from the Solr wiki on logging using the default Jetty container. I guess the logging settings you use depends on what you are looking for.
Hope that helps.
Not sure about the Drupal specifics but for SOLR you should look for a "catalina.txt" log file or something similar.
EDIT: It is "catalina.2013-03-31.log" to be more exact.
You are looking for something like this:
INFO: [catalog] webapp=/solr path=/select params={sort=startdate+asc&q=(((((_lang:en\-gb+AND)))+AND+startdate:[0001-01-01T00:00:00Z+TO+2013-02-18T00:01:17Z])+AND+enddate:[2013-02-18T00:01:17Z+TO+9999-12-31T23:59:59Z])} hits=6 status=0 QTime=0
Feb 18, 2013 12:01:38 AM org.apache.solr.core.SolrCore execute
What you have after the "&q=" will be the SOLR search query.
I am trying to use the Breeze/Knockout Template written by Ward Bell (AKA, BreezeJS MVC Template). I successfully installed the breezetemplate.VSIX extension (by running the downloaded file) into VS 2012.
However, when I inspect the Extensions and Updates (from Tools in VS 2012) the Breeze Knockout Spa Template shows up under Tools not under Templates in the dialog. I am assuming that is why when I create an ASP.NET MVC 4 Web Application, the Breeze Single Page Application does not appear in the next step when you are prompted to select a template to use. It simply does not appear in the list of available templates to use.
I wanted to install this as a sample template to see a fleshed out usage of Breeze using EF and a data-repository on the back end. I am using Hot Towel SPA as a starting point, but it really doesn't have any Breeze code.
I added in a simple Breeze DataContext to the Hot Towel Spa template based on the Breeze.WebApi NuGet packages written by Jay Traband. Using that I was able to modify my project to use EF backed by a SQL database instead of a pseudo-database as used in the Breeze.WebApi example.
However, it looks like the Breeze/Knockout template written by Ward Bell is a more sophisticated example. I need this more sophisticated sample to server as an example for how I want to use Breeze.
So after a long explanation here is what I am asking:
1) How can I get the Breeze/Knockout template to install as a template instead of as a tool in the VS 2012 Extensions and Updates?
2) If there isn't an answer to 1), is there somewhere where I download a VS 2012 project based on the Breeze/Knockout template?
3) If the answer to 2) is no, will Ward Bell please make a simple project based on this template available via GitHub, or other public code repository (NuGet Please!).
4) Is there some other non-trivial example of Breeze using EF and a data repository that is available to use as a reference?
You can install ASP.NET and Web Tools 2012.2 Update to get the templates