Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Say I when I'm setting the dump path I type ',,./demo' when I meant to type '../demo', an error is thrown
The directory ,,./demo does not exist.
. This is fine, but when I type in the correct dump path ("../demo") it throws 2 error message
* The directory ,,./demo does not exist.
* The settings have not been saved because of the errors.
I am not able to set the right dump path until I create a directory call ,,./demo
Comment | File | Size | Author |
---|---|---|---|
#1 | dump_path_form_error_1.png | 42.97 KB | Sivaji_Ganesh_Jojodae |
#1 | 733724_dump_path_form_error_1.patch | 2.08 KB | Sivaji_Ganesh_Jojodae |
Comments
Comment #1
Sivaji_Ganesh_Jojodae CreditAttribution: Sivaji_Ganesh_Jojodae commentedI confirm this bug. I came across this when i am working on #678792: Drush integration for demo module and managed to fix it by running statement
variable_get('demo_dump_path', file_directory_path() . '/demo')
One of the ways to reproduce this
1. Submit the dump setting form in page
admin/build/demo
with empty dump path.2. Now you will see error message like
(For instance see the attached snapshot)
3. Now you can not stop the above error message even if you input the correct path (say 'sites/default/files/demo' or '../writable_dir') neither by clicking the restore the form to default button.
I have attached a patch which fixes this bug for me.
(This bug affects only 6.x)
Comment #2
zeropaper CreditAttribution: zeropaper commentedI did not try the patch, but hard-coding the demo_dump_path variable within my settings.php did the trick.
Comment #3
sunThanks for reporting, reviewing, and testing! Committed the first two patch hunks to D6.
A new development snapshot will be available within the next 12 hours. This improvement will be available in the next official release.