Thanks again, but - doesn't one have to already own an account (not necessarily an admin-type) to be able to get to the .../admin/people/... page?
Sorry! After a re-boot - - everything works fine now.
I have had this same problem since D9. Anybody bothering to look at it?
Regards
H. Stoellinger
Yes, for the time being you can close it.
Hello,
I suppose I should apologize! I forgot to specify "private file system" for storage of audio files. Sorry, and thank for your help!
Regards
H. StΓΆllinger
Hello,
I should apparently apologize! I forgot to specify "private file system" for the storage location of the audio file. Sorry!
The file is displayed within a "long text-field" of a page like so:
...
<div class="rmaudio">
<audio controls="controls">
<source src="/system/files/2022-02/rainermarschAusgeblendet_0.mp3"
type="audio/mpeg">
</audio>
</div>
...
Getting the file with file:///... means that the file itself can at least be read and processed o.k. outside of Drupal through any browser. It would be great if somebody DID look at the description of the problem in my Forum entry - as given in the Issue. Very frustrating - preventing me from migrating to D10!
The file can be accessed successfully under Drupal9, but NOT on Drupal10
hstoellinger β created an issue.
Hello,
I just successfully accessed the audio file from my LAN-connected client through the browser (Linux - Vivaldi, Firefox), using the specification
file:///mnt/hhs/hs/var/home/rainer-regimentsmuseum-salzburg_at/privFiles/2022-02/rainermarschAusgeblendet_0.mp3
where /mnt/hhs/hs points to the user-home-directory on the server. It seems to me that the access-denied (403) error is caused by some inconsistency within Drupal 10's private file system handling. The specification of the private file system path within both the D9/D10-systems' settings.local.php is
$settings['file_private_path'] = $app_root . '/../../var/home/rainer-regimentsmuseum-salzburg_at/privFiles';
Looking at .../admin/media/file-system, I see that the specification for the private file-system (on the server) is:
/home/hs/w10/web/../../var/home/rainer-regimentsmuseum-salzburg_at/privFiles
Any idea as to how to proceed?
Thanks in advance for bothering to help! I am stuck!
Regards
H. Stoellinger
Hello again,
My latest testing shows the following:
D9 (where everything works just fine:
uri private://2022-02/rainermarschAusgeblendet_0.mp3
scheme private 1
file 1
D10 (where I get Access Denied for the audio-file):
uri private://2022-02/rainermarschAusgeblendet_0.mp3
scheme private 1
file 1
I wonder what's wrong
Hello,
Having worked ONLY on Linux systems I am well aware that file names are case-sensitive in UNIX-derived systems. The file under consideration does exist, and it is specified using the right capitalization. The file is located in directory
~/var/home/rainer-regimentsmuseum-salzburg_at/privFiles/2022-02
-rw-r--r-- 1 hs hs 1192416 Feb 10 2022 rainermarschAusgeblendet_0.mp3
The file is found o.k. (as per Drush ws) but I get this "access denied" error. As far as access permissions bits are concerned, being the SAME (only) file, these are the same for both the D9- and D10-versions. It's just that they work o.k. under D9 but NOT under D10. There is the following .htaccess file in (only!) the top directory of the system-files specification:
# Deny all requests from Apache 2.4+.
<IfModule mod_authz_core.c>
Require all denied
</IfModule>
# Deny all requests from Apache 2.0-2.2.
<IfModule !mod_authz_core.c>
Deny from all
</IfModule>
# Turn off all options we don't need.
Options -Indexes -ExecCGI -Includes -MultiViews
# Set the catch-all handler to prevent scripts from being executed.
SetHandler Drupal_Security_Do_Not_Remove_See_SA_2006_006
<Files *>
# Override the handler again if we're run later in the evaluation list.
SetHandler Drupal_Security_Do_Not_Remove_See_SA_2013_003
</Files>
# If we know how to do it safely, disable the PHP engine entirely.
<IfModule mod_php5.c>
php_flag engine off
</IfModule>
<IfModule mod_php7.c>
php_flag engine off
</IfModule>
The private file system definition is the following:
Pfad des privaten Dateisystems
/home/hs/w10/web/../../var/home/rainer-regimentsmuseum-salzburg_at/privFiles
I am aware that I am most likely overlooking some silly definition error, but I am at the end of my "tether". Thanks for any further consideration/ideas!
Merry Xmas from Salzburg
Thanks a lot for bothering to try to help. I installed your rawdebug functions. Trying to include the private audio file now, I get the following rawdebug answer in log.log:
uri private://rainermarschAusgeblendet_0.mp3
scheme private 1
file [NULL]
I have an inkling that "file [NULL]" might mean there is some issue with the file specification?
Again, super that you are helping solve this issue for me.
Regards - H. Stoellinger
I get the Access-Denied error when trying to include the following audio-file:
<div class="rmaudio">
<audio controls="controls"><source src="/system/files/2022-02/rainermarschAusgeblendet_0.mp3" type="audio/mpeg"></audio>
</div>
Again: the definitions are EXACTLY the same between the D9-System (www) and the D10-System (w10).
The .htaccess file is positioned in the directory that /system/files/ points to. It is the SAME .htaccess for D9 and D10.
This is very frustrating - even though I know by many years of experience that the error is probably my own doing.
Thanks for the prompt attention and - greetings from Salzburg
hstoellinger β created an issue.
Hello,
I just realized that this was MY fault: There is a custom css-definition (such as #block_systemname) with various layout tags which didn't get used under D10. This is because the name given to the language-switcher block under D10 was not correct.
Sorry!
Regards from cold, snowy Austria
Thanks for the quick answer. It did the trick. Except - in your last paragraph you suggest to select "Full HTML" as the text format. This does NOT work with me. I have to specivy "Raw HTML" - which does the trick.
Regards from (cold, wet) Austria
H. Stoellinger
Hello,
As per
https://www.drupal.org/project/bartikΒ β
one can install Bartik as a contributed theme through the composer command
composer require 'drupal/bartik:^1.0'.
Whether it will fulfill my expectations will still have to be proved.
Regards
H. Stoellinger
Hello,
In the process of upgrading to D10 I get the same error, preventing the upgrade:
ArgumentCountError: Too few arguments to function Drupal\image\Plugin\Field\FieldFormatter\ImageFormatter::__construct(), 9 passed in /home/hs/w10/web/modules/contrib/panolens/src/Plugin/Field/FieldFormatter/ImagePanoramaFormatter.php on line 38 and exactly 10 expected in Drupal\image\Plugin\Field\FieldFormatter\ImageFormatter->__construct() (line 75 of /home/hs/w10/web/core/modules/image/src/Plugin/Field/FieldFormatter/ImageFormatter.php).
Any patch by now? Thanks for your help