I've simplified the patch by removing absolute file paths, making it easier to apply regardless of project setup.
a_z_official β created an issue.
Anyone has done D7 to D7 paragraphs migration successfully?
Thank you for responding. The module you suggested is for Drupal 9. Now, migration is totally different after the Drupal 7 in my opinion, in later versions people just write few lines of YML and they are good to go, but with Drupal 7. we need to make PHP classes.
Hi Jay,
Thank you for your help. I'm struggling with migrating Paragraphs using the migrate_d2d module.
For nodes, users, and terms, I've successfully extended the existing classes (Node, User, Term) provided in the module, using the available examples and documentation.
However, I couldn't find a similar class for Paragraphs in migrate_d2d. The Paragraphs module itself has two classes, but they appear to be destination-related, and I'm unsure if they can assist me.
Without a Paragraph class, I'll need to write a custom SQL query to fetch data from the source. Here are my setup details:
Paragraph Bundles:
- content
- text
- video
Fields:
content bundle:
- field_title (Text field)
- field_content (Entity Reference field to Nodes)
text bundle:
- field_description (Long Text field)
video bundle:
- field_video_link (Text field, storing URL)
All bundles and fields are identical on both source and destination sites.
Content Type: News (on both sites)
Field: field_news_body (Paragraph field on both sites)
I only want to migrate the latest content, excluding revisions.
Can you please guide me?
Hi VM,
Thank you so much for your support. I've moved it to 'Post Installations'.
Regarding the second question you asked, I'm confused. Let me explain what I'm trying to achieve. We have an old Drupal 7 site, probably 10 years old, with countless problems. We've created a new version from scratch, skipping outdated features.
We've manually set up the structure, then migrated nodes, terms, and users. Now, the only thing left is migrating paragraphs.
Specifically, we have a content type "News" with a field "field_news_body" that's a paragraph field. This field, along with paragraph bundles and their fields, has been recreated on the new site.
I just need to migrate the paragraph content now. I hope I've explained it clearly enough for you to understand.
@justinlevi
@khiminrm
Hello folks,
I'm looking for the same. Can anyone here share experience migrating paragraphs between two Drupal 7 sites? I have the same structure on the destination site.
In my previous comment, I shared that I was facing the same problem when trying to upload SVG files:
βThe specified file 'default.svg' could not be uploaded. The image file is invalid or the image type is not allowed.β
I also ran into an issue when setting an SVG as the default image:
β'default.svg' could not be uploaded. Only files with the following extensions are allowed: jpg, jpeg, gif, png, etc.β
After digging into the issue, I decided to create a custom Drupal 7 module to fix it. This module, SVG Upload Fix, tweaks the image upload process to skip the validation for SVG files, allowing you to upload SVGs and set them as default images without any errors.
You can check out the module on GitHub: SVG Upload Fix. I hope this helps others who might be dealing with the same issue!
I'm experiencing the same issue. How can I resolve it?
When attempting to upload an SVG file through the node creation form, I receive:
"The specified file 'default.svg' could not be uploaded. The image file is invalid or the image type is not allowed."
Additionally, when trying to set an SVG as the default image, I get:
"'default.svg' could not be uploaded. Only files with the following extensions are allowed: jpg, jpeg, gif, png, txt, doc, xls, pdf, ppt, pps, odt, ods, odp."
Can someone please assist me in resolving this issue?