wmfinck β created an issue.
Has this not been implemented? If so, how do I find it? I do not want to apply a patch for something that won't show up in production. But I am sorry for wasting anyone's time if I am missing something...
I have no preload options at /admin/structure/media/manage/audio/display
Not being able to prevent preloading of media in D10 is a deal-breaker for me, I cannot use Drupal media. I create sites with audio library pages using views, and when a page of multiple audio files is displayed, sometimes dozens, I cannot have them all downloading.
For this reason, I am compelled to retain the method I used in Drupal 7, which was to create fields with preconfigured HTML5 code using tokens. Doing that I need a file field and two text fields for every audio file (the easiest way without making a custom module, as I am not a developer).
wmfinck β created an issue.
I was persuaded that this is a related issue, but as I wrote this, it might be an Adaptive Theme issue instead:
In both Book 1.0.0 and in Book 2.0.0-alpha1 I am getting the following error whenever "Printer Friendly Version" is clicked: "The website encountered an unexpected error. Try again later."
The information in the Drupal database log:
Location https://example.com/book/export/html/5
Referrer https://example.com/content/some-book-url
Message Twig\Error\RuntimeError: The "filter" filter expects a sequence/mapping or "Traversable", got "integer". in Twig\Extension\CoreExtension::filter() (line 37 of /var/www/vhosts/example.com/site/web/themes/contrib/adaptivetheme/at_core/templates/layout/book-export-html.html.twig).
But I just found that this is not an issue in Olivero. I will check/make an issue at Adaptive Theme.
Im am still having this problem.
Directory permissions are okay, in a subtheme which is newly generated. PHP max_input_vars = 10000
Brand new Drupal 10 install. Don't know where else to check.
This issue just drove me nuts for two weeks. Everything on two different websites, same server, is identical. Same themes, modules, apache configurations, and everything else, just different content. On the second website, no matter what I did the site would not display images in configured image styles, even using the Image Styles Generator module at https://www.drupal.org/project/image_styles_generator β . I went through every setting on each site, and they were all the same in every section. The content types were the same also (both imported from D7).
So in exasperation I added the $config line in #7 above, $config['image.settings']['allow_insecure_derivatives'] = TRUE;
Doing that, I cleared the cache, and the image styles began appearing on the site instantly. Thanks for that, but this will remain an enigma to me.
This morning I added the lines from the patch in #3, cleared the cache, and it worked on both of the affected websites.
Thank you very much, especially for the quick solution!
wmfinck β created an issue.
PS: Thank you for maintaining this theme!
wmfinck β created an issue.
As I commented in the thread for Drupal 10 Support π Drupal 10 Support Fixed for this module, I have just tested a block containing php code with the latest dev release of this module.
It is a small test, but the php code is complex, retrieving metadata from several different Shoutcast streams and displaying it in a block on the website.
The module is now working very well with Drupal 10.5 and PHP 8.2.17.
Thanks again!
Okay, I am sorry, I could not wait. I just installed the module, on a relatively clean D10 install with an Adaptive subtheme. Then I made a content block, and added my php code, which reads shoutcast data from a server and displays "now playing" information. The code has always worked without issue.
Right now, on the website page the code is working as I would expect it to work, so all is well. But I checked the logs after loading the page and found two entries which were the same. The message is below. I hope this helps. The severity level is "Debug".
Deprecated function: Creation of dynamic property Drupal\at_core\Layout\Layout::$layout_cid is deprecated in Drupal\at_core\Layout\Layout->__construct() (line 28 of /var/www/vhosts/example.com/next/web/themes/contrib/adaptivetheme/at_core/src/Layout/Layout.php)
#0 /var/www/vhosts/example.com/next/web/core/includes/bootstrap.inc(164): _drupal_error_handler_real()
#1 /var/www/vhosts/example.com/next/web/themes/contrib/adaptivetheme/at_core/src/Layout/Layout.php(28): _drupal_error_handler()
#2 /var/www/vhosts/example.com/next/web/themes/contrib/adaptivetheme/at_core/src/Layout/LayoutCompatible.php(73): Drupal\at_core\Layout\Layout->__construct()
#3 /var/www/vhosts/example.com/next/web/themes/contrib/adaptivetheme/at_core/src/Layout/LayoutLoad.php(39): Drupal\at_core\Layout\LayoutCompatible->getCompatibleLayout()
#4 /var/www/vhosts/example.com/next/web/themes/contrib/adaptivetheme/at_core/includes/preprocess.inc(334): Drupal\at_core\Layout\LayoutLoad->__construct()
#5 [internal function]: at_core_preprocess_page()
#6 /var/www/vhosts/example.com/next/web/core/lib/Drupal/Core/Theme/ThemeManager.php(261): call_user_func_array()
#7 /var/www/vhosts/example.com/next/web/core/lib/Drupal/Core/Render/Renderer.php(480): Drupal\Core\Theme\ThemeManager->render()
#8 /var/www/vhosts/example.com/next/web/core/lib/Drupal/Core/Render/Renderer.php(240): Drupal\Core\Render\Renderer->doRender()
#9 /var/www/vhosts/example.com/next/web/core/lib/Drupal/Core/Template/TwigExtension.php(475): Drupal\Core\Render\Renderer->render()
#10 /var/www/vhosts/example.com/next/web/sites/default/files/php/twig/6612f4ef02f3b_html.html.twig_9uCaNv1sqJUiW275-R4GANNTi/pXJpCBI3eHNBnpm4SxaKRihIcgknDOqagyMpv-1CzUs.php(107): Drupal\Core\Template\TwigExtension->escapeFilter()
#11 /var/www/vhosts/example.com/next/vendor/twig/twig/src/Template.php(394): __TwigTemplate_8256acb1f8fa15d82cdbf8ae5d716141->doDisplay()
#12 /var/www/vhosts/example.com/next/vendor/twig/twig/src/Template.php(367): Twig\Template->displayWithErrorHandling()
#13 /var/www/vhosts/example.com/next/vendor/twig/twig/src/Template.php(379): Twig\Template->display()
#14 /var/www/vhosts/example.com/next/vendor/twig/twig/src/TemplateWrapper.php(38): Twig\Template->render()
#15 /var/www/vhosts/example.com/next/web/core/themes/engines/twig/twig.engine(39): Twig\TemplateWrapper->render()
#16 /var/www/vhosts/example.com/next/web/core/lib/Drupal/Core/Theme/ThemeManager.php(348): twig_render_template()
#17 /var/www/vhosts/example.com/next/web/core/lib/Drupal/Core/Render/Renderer.php(480): Drupal\Core\Theme\ThemeManager->render()
#18 /var/www/vhosts/example.com/next/web/core/lib/Drupal/Core/Render/Renderer.php(240): Drupal\Core\Render\Renderer->doRender()
#19 /var/www/vhosts/example.com/next/web/core/lib/Drupal/Core/Render/MainContent/HtmlRenderer.php(158): Drupal\Core\Render\Renderer->render()
#20 /var/www/vhosts/example.com/next/web/core/lib/Drupal/Core/Render/Renderer.php(627): Drupal\Core\Render\MainContent\HtmlRenderer->Drupal\Core\Render\MainContent\{closure}()
#21 /var/www/vhosts/example.com/next/web/core/lib/Drupal/Core/Render/MainContent/HtmlRenderer.php(153): Drupal\Core\Render\Renderer->executeInRenderContext()
#22 /var/www/vhosts/example.com/next/web/core/lib/Drupal/Core/EventSubscriber/MainContentViewSubscriber.php(90): Drupal\Core\Render\MainContent\HtmlRenderer->renderResponse()
#23 [internal function]: Drupal\Core\EventSubscriber\MainContentViewSubscriber->onViewRenderArray()
#24 /var/www/vhosts/example.com/next/web/core/lib/Drupal/Component/EventDispatcher/ContainerAwareEventDispatcher.php(111): call_user_func()
#25 /var/www/vhosts/example.com/next/vendor/symfony/http-kernel/HttpKernel.php(186): Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch()
#26 /var/www/vhosts/example.com/next/vendor/symfony/http-kernel/HttpKernel.php(76): Symfony\Component\HttpKernel\HttpKernel->handleRaw()
#27 /var/www/vhosts/example.com/next/web/core/lib/Drupal/Core/StackMiddleware/Session.php(58): Symfony\Component\HttpKernel\HttpKernel->handle()
#28 /var/www/vhosts/example.com/next/web/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(48): Drupal\Core\StackMiddleware\Session->handle()
#29 /var/www/vhosts/example.com/next/web/core/lib/Drupal/Core/StackMiddleware/ContentLength.php(28): Drupal\Core\StackMiddleware\KernelPreHandle->handle()
#30 /var/www/vhosts/example.com/next/web/core/modules/big_pipe/src/StackMiddleware/ContentLength.php(32): Drupal\Core\StackMiddleware\ContentLength->handle()
#31 /var/www/vhosts/example.com/next/web/core/modules/page_cache/src/StackMiddleware/PageCache.php(106): Drupal\big_pipe\StackMiddleware\ContentLength->handle()
#32 /var/www/vhosts/example.com/next/web/core/modules/page_cache/src/StackMiddleware/PageCache.php(85): Drupal\page_cache\StackMiddleware\PageCache->pass()
#33 /var/www/vhosts/example.com/next/web/core/modules/ban/src/BanMiddleware.php(50): Drupal\page_cache\StackMiddleware\PageCache->handle()
#34 /var/www/vhosts/example.com/next/web/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(48): Drupal\ban\BanMiddleware->handle()
#35 /var/www/vhosts/example.com/next/web/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(51): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle()
#36 /var/www/vhosts/example.com/next/web/core/lib/Drupal/Core/StackMiddleware/AjaxPageState.php(36): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle()
#37 /var/www/vhosts/example.com/next/web/core/lib/Drupal/Core/StackMiddleware/StackedHttpKernel.php(51): Drupal\Core\StackMiddleware\AjaxPageState->handle()
#38 /var/www/vhosts/example.com/next/web/core/lib/Drupal/Core/DrupalKernel.php(704): Drupal\Core\StackMiddleware\StackedHttpKernel->handle()
#39 /var/www/vhosts/example.com/next/web/index.php(19): Drupal\Core\DrupalKernel->handle()
#40 {main}
This is wonderful news, thank you! I just installed the latest dev commit on a site I am preparing and will be checking it out over the next couple of days.
But I would gladly give the module a test run, and report back here, if I could install it on a D10 site. I need to use it to post metadata from my shoutcast server onto pages or blocks.
@GΓ‘bor Hojtsy
I am sorry, while I am still hoping I can use this module in the future, I had postponed all of my website upgrades until recently, because with D9 the migration process still had too many quirks. When I had posted this particular issue, I only had 1 live D9 site at that time, which was a a fresh D9 install.
Now that I have resumed upgrading my 30+ sites away from D7, I am going to D10 and my servers are configured for php 8.2.
Wish I could help, but thank you!
The dev version still won't install in Drupal 10.x
Subscribing...
wmfinck β created an issue.
Subscribing... I hope there is a D10 version.
Using Cloudflare, this problem drove me nuts for days until I realized it was Cloudflare. The Cloudflare rule in #32 π AssetControllerBase.php - "The theme must be passed as a query argument" Active works for me, thank you!
I might experiment with more specific rules once the site goes into production.
For me, this problem is definitely being caused by Cloudflare. As soon as I take the site off Cloudflare and set it on "DNS Only" then it is gone immediately.
I found and solved the problem. Cloudflare. FOr some reason, one site out of three was not effected.
I disabled Cloudflare proxy, the menus appeared immediately. I enabled it, and the menus are still there. For how long, I wonder, but at least I know what the problem is.
Sorry if I bothered anyone, but maybe it will help someone down the road. Thanks!
This is on a perfectly clean install, and my logs are filled with errors. I had not checked the logs, because I would not have expected this on clean installs... these were rather immediate, may have even been at installation time.
Symfony\Component\HttpKernel\Exception\BadRequestHttpException: The theme must be passed as a query argument in Drupal\system\Controller\AssetControllerBase->deliver() (line 132 of /var/www/.../testing/web/core/modules/system/src/Controller/AssetControllerBase.php).
a few of these later... ("testing" is only a subdomain name on the server, I am not a developer)
Deprecated function: Creation of dynamic property Drupal\at_core\Layout\Layout::$layout_path is deprecated in Drupal\at_core\Layout\Layout->__construct() (line 27 of /var/www/.../testing/web/themes/contrib/adaptivetheme/at_core/src/Layout/Layout.php)
I have two pages of these, on a fresh install, and the Symfony errors are much more numerous. The site I installed where the menus are functioning have no such errors. Now maybe I know what to look for. But this is definitely a core install problem.
I am running Composer version 2.7.1.
I hate to be a pest.
I think this problem might have to do with not displaying dropdown or responsive menus. Out of the 3 websites, the one that does not have this shortcut bar problem is only the only one on which Adaptive's responsive menu is properly functioning.
My entire Status report on all three servers is positive, with all issues and recommendations having been satisfied. So I cannot imagine what I might be missing.
Thank you for your reply.
Yes, the Plesk based site has the problem, but last night I installed a site on a Rocky 9 server I configured myself, so that I could try out some themes, and it also has the same problem! Two weeks ago I configured the Alma 8 and Rocky 9 servers side-by side, preparing for Centos 7 EOL so that I can prepare for Drupal 7 EOL.
So I downloaded the configurations from both sites, extracted them into different folders and ran diff against the folders. But I cannot see anything of substance, except that one site has a couple of modules, blocks and themes which are not installed on the other. I will upload that diff file here.
https://www.drupal.org/files/issues/2024-02-21/site_config_diff.txt β
I opened all of the system.menu.*.yml files and compared them visually. The only differences are UUIDs.
Looking for documentation, I did learn that the missing toolbar is called the "Shortcut Bar". But comparing the two sites, I do not see any differences in the menu systems or core modules, or anything else which might give me a clue. I have been at this on and off for days. Now I am going to try to find out which YML files stores the admin bar configuration, if it is not those I have just mentioned.
Thanks!
wmfinck β created an issue.
The issue occurs due to the deprecated Symfony 6 object HEADER_X_FORWARDED_ALL.
I have fixed it by setting the appropriate value in the settings.php on the server.
No, I have this issue on one of three fresh drupal installs I have made the last few days, and the toolbar disappeared before I did much to the website. The line "HEADER_X_FORWARDED_ALL" was never in the settings.php file.
I had this same exact problem, with the same exact error message, until I set the correct permissions on sites/default/files, and it went away by itself after a couple of cron runs.
Because of the way my web server is set up, I needed to set the tmp and sites/default/files directories to 775 rather than 755.
I am only here to type this response as I was here looking for a solution, and when I clicked for the log file to copy the error, the problem was fixed.