πŸ‡ΊπŸ‡ΈUnited States @wmfinck

Account created on 7 July 2009, almost 15 years ago
#

Recent comments

πŸ‡ΊπŸ‡ΈUnited States wmfinck

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!

πŸ‡ΊπŸ‡ΈUnited States wmfinck

PS: Thank you for maintaining this theme!

πŸ‡ΊπŸ‡ΈUnited States wmfinck

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!

πŸ“Œ | PHP | Drupal 10 Support
πŸ‡ΊπŸ‡ΈUnited States wmfinck

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}

πŸ“Œ | PHP | Drupal 10 Support
πŸ‡ΊπŸ‡ΈUnited States wmfinck

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.

πŸ‡ΊπŸ‡ΈUnited States wmfinck

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.

πŸ‡ΊπŸ‡ΈUnited States wmfinck

@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!

πŸ“Œ | PHP | Drupal 10 Support
πŸ‡ΊπŸ‡ΈUnited States wmfinck

The dev version still won't install in Drupal 10.x
Subscribing...

πŸ‡ΊπŸ‡ΈUnited States wmfinck

Subscribing... I hope there is a D10 version.

πŸ‡ΊπŸ‡ΈUnited States wmfinck

Using Cloudflare, this problem drove me nuts for days until I realized it was Cloudflare. The Cloudflare rule in #32 πŸ› 400 exceptions result from requests for old asset paths which are missing the "theme" query string, possibly from cached pages Fixed works for me, thank you!

I might experiment with more specific rules once the site goes into production.

πŸ‡ΊπŸ‡ΈUnited States wmfinck

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.

πŸ‡ΊπŸ‡ΈUnited States wmfinck

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!

πŸ‡ΊπŸ‡ΈUnited States wmfinck

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.

πŸ‡ΊπŸ‡ΈUnited States wmfinck

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.

πŸ‡ΊπŸ‡ΈUnited States wmfinck

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!

πŸ‡ΊπŸ‡ΈUnited States wmfinck

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.

πŸ‡ΊπŸ‡ΈUnited States wmfinck

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.

Production build 0.69.0 2024