๐Ÿ‡ฎ๐Ÿ‡ณIndia @ashraf.hussain

Bangalore
Account created on 22 May 2008, almost 17 years ago
  • Backend Developer at Zscalerย  โ€ฆ
#

Recent comments

๐Ÿ‡ฎ๐Ÿ‡ณIndia ashraf.hussain Bangalore

Hi @nginex โ†’ , I changed to public://import/zip, while it imported correctly in Staging, but when I move to Production, it is giving the below error now. Not sure why it is looking for the file in temporary when file is uploaded in Public now.

php-error web-43497 [26-Feb-2025 21:36:23 America/Los_Angeles] Uncaught PHP Exception Drupal\Core\File\Exception\FileNotExistsException: "File 'temporary://import/zip/0ab2a388-6deb-4d89-8b52-16437905c9c3/assets/public/images/blogs/featured/xyz2720.png' could not be copied because it does not exist." at /mnt/www/html/marketing7/docroot/core/lib/Drupal/Core/File/FileSystem.php line 444 request_id="v-c7fa6322-f4cc-11ef-9ff6-df04d90c7bb8"

๐Ÿ‡ฎ๐Ÿ‡ณIndia ashraf.hussain Bangalore

Thanks @nginex โ†’ for your response. I have checked the tmp path are same for dev, stage, uat, prod environment and set according to Acquia Cloud Platform.
Its in the below format:
/mnt/tmp/[sitename]
e.g.
Dev: /mnt/tmp/mysitedev
Staging:/mnt/tmp/mysitestg
Uat: /mnt/tmp/mysitedev
Prod: /mnt/tmp/mysite

https://docs.acquia.com/acquia-cloud-platform/docs/manage-apps/files/tem...

You can replicate the issue in n Acquia Production environment.

๐Ÿ‡ฎ๐Ÿ‡ณIndia ashraf.hussain Bangalore

Not sure why the ticket was closed, I am also facing the same issue as mentioned in above comment ๐Ÿ› Export/Import throwing ZipArchive::open(): Argument #1 ($filename) cannot be empty in ZipArchive->open() Active .
Importing zip file works fine on dev, qa and uat environments but fails on prod environment.

๐Ÿ‡ฎ๐Ÿ‡ณIndia ashraf.hussain Bangalore

My apologies, Patch #25 โœจ Option to stop content from being unpublished Needs review had an error when creating unpublished node, so, updating new patch to fix the issue.

๐Ÿ‡ฎ๐Ÿ‡ณIndia ashraf.hussain Bangalore

Updating the patch in #24 โœจ Option to stop content from being unpublished Needs review to avoid the validation when unpublished node is being published. Validation should only run when published node is being unpublished.

๐Ÿ‡ฎ๐Ÿ‡ณIndia ashraf.hussain Bangalore

Updating patch added in #17 โœจ Option to stop content from being unpublished Needs review to show an user friendly message rathen than a blank screen with error message,

๐Ÿ‡ฎ๐Ÿ‡ณIndia ashraf.hussain Bangalore

Patch added to check for Translation Existence Before Calling getTranslation(): Before attempting to fetch translations , use hasTranslation() to ensure the specified language is available.

And implement a Fallback for Missing Translations: If the translation doesnโ€™t exist, you can fall back to the default language.

๐Ÿ‡ฎ๐Ÿ‡ณIndia ashraf.hussain Bangalore

Adding a patch to fix by checking if the index exists in the array using isset.

๐Ÿ‡ฎ๐Ÿ‡ณIndia ashraf.hussain Bangalore

Modified Patch #15 โ†’ to show taxonomy term edit links also.

๐Ÿ‡ฎ๐Ÿ‡ณIndia ashraf.hussain Bangalore

Adding following functionality to entity_reference_integrity-n3247080-13.patch โ†’

๐Ÿ‡ฎ๐Ÿ‡ณIndia ashraf.hussain Bangalore

I see that updateEngineList function has been deleted but it is still an ajax callback for the "server" select field.

Due to this, when I change the server, the engine list is not updated.

๐Ÿ‡ฎ๐Ÿ‡ณIndia ashraf.hussain Bangalore

Uploading the patch for fixing the error when clicking Index Now.
1. Error: Call to a member function getFields() on null in Drupal\appsearch\Utility\Database::prepareNodeToIndex() (line 60 of /app/docroot/modules/contrib/elastic_enterprise_search/modules/appsearch/src/Utility/Database.php)

The above error happens when the Language Code for the node is 'pt-br' or 'es-mx'.
filter_var($node_id, FILTER_SANITIZE_NUMBER_INT) does not work in those cases to get the node id.

2. Error: Call to a member function getFileUri() on null in Drupal\appsearch\Utility\Database::mapFieldValues() (line 110 of /app/docroot/modules/contrib/elastic_enterprise_search/modules/appsearch/src/Utility/Database.php

The above error happens when the $field->entity is empty.

Both the issue are resolved in this patch.

๐Ÿ‡ฎ๐Ÿ‡ณIndia ashraf.hussain Bangalore

Uploading patch for resolving the above issue.

๐Ÿ‡ฎ๐Ÿ‡ณIndia ashraf.hussain Bangalore

Modified Patch #11 to fix "Call to undefined method "getParentEntity()" error.

๐Ÿ‡ฎ๐Ÿ‡ณIndia ashraf.hussain Bangalore

The above patch(entity_reference_integrity-n3247080-6.patch) works perfectly to stop referenced nodes from being unpublished.
We also need
1. The ability to stop a referenced term from being unpublished.
2. Add a check box in admin setting form to show node edit link instead of node link in error message.
3. If the checkbox in point 2 is selected in admin settings form, when we try to delete or unpublish a particular node then on error message, user should get node edit link instead of node link or a plain text like "Node Title -> Paragraph Name" (e.g. "Winter 2022 > Suggested events").
Uploading the new patch for the same.

๐Ÿ‡ฎ๐Ÿ‡ณIndia ashraf.hussain Bangalore

The above patch(entity_reference_integrity-n3247080-6.patch) works perfectly to stop referenced nodes from being unpublished. We also need 1. The ability to stop a referenced term from being unpublished. Uploading the patch for the same.
2. When we try to delete or unpublish a particular node then on error message, user should get an hyperlink of node where that is referring instead of a plain text like "Node Title -> Paragraph Name" (e.g. "Winter 2022 > Suggested events").

๐Ÿ‡ฎ๐Ÿ‡ณIndia ashraf.hussain Bangalore

The above patch works perfectly to stop referenced nodes from being unpublished. We also need the ability to stop a referenced term from being unpublished. Uploading the patch for the same.

๐Ÿ‡ฎ๐Ÿ‡ณIndia ashraf.hussain Bangalore

I was able to fix by the following steps:

Search for id: node_type in config directory.

Replace node_type with id: 'entity_bundle:node'

Run Drush cim.

๐Ÿ‡ฎ๐Ÿ‡ณIndia ashraf.hussain Bangalore

Contributing the patch for Paragraph Editor Enhancement module.

๐Ÿ‡ฎ๐Ÿ‡ณIndia ashraf.hussain Bangalore

"Actions" is more relevant as compared to "Tasks".
The patch didn't work for Drupal 9.5.4. Contributing a patch here

Production build 0.71.5 2024