Thanks.
I've got it.
Attempt 1.
Changing statistics.php
at line 23 from
chdir('../../..');
TO
chdir('../..');
It solves all problems. It works, but I don't recommend Attempt 1.
Attempt 2.
Move all drupal contrib modules from /modules/modulename to /modules/contrib/modulename
Change the composer.json line from
"module/{$name}": ["type:drupal-module"],
TO
"modules/contrib/{$name}": ["type:drupal-module"],
Add "$settings['rebuild_access'] = TRUE"; to settings.php
@mainly done by
https://www.drupal.org/forum/support/post-installation/2022-04-01/solved... →
- with-composer#comment-14466564
Go to mysite.com/core/rebuild.php
Restart PHP 8.3
Go to mysite.com/update.php
Remove "$settings['rebuild_access'] = TRUE"; from settings.php
And it works.
*Restart PHP 8.3 might be too much but I did it anyway.
I've made a rollback and updated with composer again.
My autoload.php is in /www/wwwroot/idbip.com/vendor/autoload.php
My website runs as index.php is in /www/wwwroot/idbip.com/web
I have multiple websites running like this ok. I manage my websites with composer, mainly.
My folder structure looks like this :
https://prnt.sc/ULVcerDR_R8G
https://prnt.sc/QVWWz91mHNLO
I also use
https://www.drupal.org/project/statistics_counter →
which works fine.
https://prnt.sc/xLcIaWjDoDHT
after a refresh
https://prnt.sc/5aR3WmEDWTw_
See that statistics don't work and /statistics_counter works.
My Drupal Version 10.3.5. My status report looks fine (no statistics warnings)
but I still get
2024/09/18 21:26:37 [error] 315051#0: *1168 FastCGI sent in stderr: "PHP message: PHP Warning: require_once(autoload.php): Failed to open stream: No such file or directory in /www/wwwroot/idbip.com/web/modules/statistics/statistics.php on line 25; PHP message: PHP Fatal error: Uncaught Error: Failed opening required 'autoload.php' (include_path='.:') in /www/wwwroot/idbip.com/web/modules/statistics/statistics.php:25
Stack trace:
#0 {main}
thrown in /www/wwwroot/idbip.com/web/modules/statistics/statistics.php on line 25" while reading response header from upstream, client: 143.244.56.51, server: idbip.com, request: "POST /modules/statistics/statistics.php HTTP/1.1", upstream: "fastcgi://unix:/tmp/php-cgi-83.sock:", host: "www.idbip.com", referrer: "https://www.idbip.com/peugeot/peugeot-2008-review-design-features-performance-and-price"
2024/09/18 21:26:43 [error] 315051#0: *1240 FastCGI sent in stderr: "PHP message: PHP Warning: require_once(autoload.php): Failed to open stream: No such file or directory in /www/wwwroot/idbip.com/web/modules/statistics/statistics.php on line 25; PHP message: PHP Fatal error: Uncaught Error: Failed opening required 'autoload.php' (include_path='.:') in /www/wwwroot/idbip.com/web/modules/statistics/statistics.php:25
Stack trace:
#0 {main}
thrown in /www/wwwroot/idbip.com/web/modules/statistics/statistics.php on line 25" while reading response header from upstream, client: 143.244.56.51, server: idbip.com, request: "POST /modules/statistics/statistics.php HTTP/1.1", upstream: "fastcgi://unix:/tmp/php-cgi-83.sock:", host: "www.idbip.com", referrer: "https://www.idbip.com/peugeot/peugeot-2008-review-design-features-performance-and-price"
on Drupal core 10.3.5 and a regular node refresh.
I get
2024/09/16 20:44:02 [error] 105309#0: *144624 FastCGI sent in stderr: "PHP message: PHP Warning: require_once(autoload.php): Failed to open stream: No such file or directory in /www/wwwroot/idbip.com/web/modules/statistics/statistics.php on line 25; PHP message: PHP Fatal error: Uncaught Error: Failed opening required 'autoload.php' (include_path='.:') in /www/wwwroot/idbip.com/web/modules/statistics/statistics.php:25
Stack trace:
#0 {main}
thrown in /www/wwwroot/idbip.com/web/modules/statistics/statistics.php on line 25" while reading response header from upstream, client: 84.17.46.53, server: idbip.com, request: "POST /modules/statistics/statistics.php HTTP/1.1", upstream: "fastcgi://unix:/tmp/php-cgi-83.sock:", host: "www.idbip.com", referrer: "https://www.idbip.com/peugeot/peugeot-2008-review-design-features-performance-and-price"
If I access https://www.idbip.com/web/modules/statistics/statistics.php I get 404 Not Found,
After I change the config with
# Protect files and directories from prying eyes.
location ~* \.(engine|inc|install|make|module|profile|po|sh|.*sql|theme|twig|tpl(\.php)?|xtmpl|yml)(~|\.sw[op]|\.bak|\.orig|\.save)?$|composer\.(lock|json)$|web\.config$|^(\.(?!well-known).*|Entries.*|Repository|Root|Tag|Template|/modules/statistics/statistics.php)$|^#.*#$|\.php(~|\.sw[op]|\.bak|\.orig|\.save)$ {
deny all;
return 404;
}
the 404 Not Found is gone, the error log is still there
2024/09/16 20:53:59 [error] 107395#0: *15 FastCGI sent in stderr: "PHP message: PHP Warning: require_once(autoload.php): Failed to open stream: No such file or directory in /www/wwwroot/idbip.com/web/modules/statistics/statistics.php on line 25; PHP message: PHP Fatal error: Uncaught Error: Failed opening required 'autoload.php' (include_path='.:') in /www/wwwroot/idbip.com/web/modules/statistics/statistics.php:25
Stack trace:
#0 {main}
thrown in /www/wwwroot/idbip.com/web/modules/statistics/statistics.php on line 25" while reading response header from upstream, client: 84.17.46.53, server: idbip.com, request: "POST /modules/statistics/statistics.php HTTP/1.1", upstream: "fastcgi://unix:/tmp/php-cgi-83.sock:", host: "www.idbip.com", referrer: "https://www.idbip.com/peugeot/peugeot-2008-review-design-features-performance-and-price"
2024/09/16 20:54:01 [error] 107395#0: *15 FastCGI sent in stderr: "PHP message: PHP Warning: require_once(autoload.php): Failed to open stream: No such file or directory in /www/wwwroot/idbip.com/web/modules/statistics/statistics.php on line 25; PHP message: PHP Fatal error: Uncaught Error: Failed opening required 'autoload.php' (include_path='.:') in /www/wwwroot/idbip.com/web/modules/statistics/statistics.php:25
Stack trace:
#0 {main}
thrown in /www/wwwroot/idbip.com/web/modules/statistics/statistics.php on line 25" while reading response header from upstream, client: 84.17.46.53, server: idbip.com, request: "POST /modules/statistics/statistics.php HTTP/1.1", upstream: "fastcgi://unix:/tmp/php-cgi-83.sock:", host: "www.idbip.com", referrer: "https://www.idbip.com/peugeot/peugeot-2008-review-design-features-performance-and-price"
and the day counter is the same.
Thanks, you pointed me in the right direction. label|render|striptags|trim escapes apostrophes, but I found out that
{{ label|render|striptags|trim|raw }}
solves this.
@fgm
Unfortunately, my developer knowledge it's not so advanced.
I can clone a small module like
https://www.drupal.org/project/node_title_validation/issues/3191677
✨
Create a sister module Node Body Validator
Active
,
I can apply/read a patch and some other things but to take over maintainership it's a little too much for me.
Last time when I needed to use the statistics_counter d.8 version I think, I searched and asked until a great guy forwarded me a compatible d.8 zip file.
@fgm
My websites depend heavily on statistics and statistics_counter (
https://www.drupal.org/project/statistics_counter →
).
So, Until statistics_counter doesn't get updated I can't test it.
Anyway, thank you for your time.
idflorin → created an issue.
idflorin → created an issue.
idflorin → created an issue.
Drupal 10.2.7 is okay, but this problem reappeared after updating to 10.3.
Entity view display 'node.story.default': Component 'comment' was disabled because its settings depend on removed dependencies.
I used the patch for Advanced ban 8.x-1.5
Work great. I was having some issues with more than 4500 IPs. (Chrome almost crashes, but Firefox worked.)
I used this patch and
these two links:
https://gorannikolovski.com/blog/how-to-apply-a-patch-in-drupal
and
https://groups.drupal.org/node/518975.
Now at /admin/config/people/advban/settings
you have a new setting "Listing table rows".
It's great and thank you.
Btw, If you have APCU activated, you need to restart the PHP 8.x.
@demon326 Worked for me. Thank you.
Some clarification
First: Install drush using composer composer require --dev drush/drush
@via https://drupalize.me/tutorial/install-drush-using-composer
In my case, it was also "node.full" and I need to run
./vendor/bin/drush config:delete core.entity_view_mode.node.full
Step 6) was unnecessary in my case.
@
Drupal core 10.1.7 and CDN 4.0.2 fixed the double slash
Before
<link rel="stylesheet" media="all" href="https://cdn.spare-wheel.com//sites/default/files/css/css_0rV
After
<link rel="stylesheet" media="all" href="https://cdn.spare-wheel.com/sites/default/files/css/css_eA3WM7REU
For me, on several websites:
Updating to Drupal 10.2 and CDN 4.0.2 fixed this issue.
Before:
<link rel="stylesheet" media="all" href="https://cdn.panorica.com//sites/default/files/css/css_LrMQzGJhPNST
After update:
<link rel="stylesheet" media="all" href="https://cdn.panorica.com/sites/default/files/css/css_ty1ciNPjQlGzCA
@dineshkumarbollu
#5 works for me. Thanks
idflorin → created an issue.
I patched the module, and it worked fine for me in the latest Drupal core 10.1.5
@Wim Leers
Yes. It seems to me like something related to changes in Drupal 10 core.
I updated a drupal 9 installation to drupal 10 and the issue occurred again.
In the updating process I updated only the drupal core and this happened:
Head in Drupal 9
<head>
<meta charset="utf-8" />
<noscript><style>form.antibot * :not(.antibot-message) { display: none !important; }</style>
</noscript><noscript><meta http-equiv="Refresh" content="0; URL=/big_pipe/no-js?destination=/node" />
</noscript><meta name="Generator" content="Drupal 9 (https://www.drupal.org)" />
<meta name="MobileOptimized" content="width" />
<meta name="HandheldFriendly" content="true" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="icon" href="https://cdn.nodeid.org/favicon.ico" type="image/vnd.microsoft.icon" />
<link rel="alternate" type="application/rss+xml" title="" href="https://www.nodeid.org/rss.xml" />
<title>Home | Nodeid</title>
<link rel="stylesheet" media="all" href="https://cdn.nodeid.org/sites/default/files/css/css_S-iAefsPpcMOPEdrzsWMAda5mxmTFJkH0HlYDHs6nXk.css" />
<link rel="stylesheet" media="screen" href="https://cdn.nodeid.org/sites/default/files/css/css_u4V41heglsayYslETOtLFTnSh16kC9YPM15eokMNuN0.css" />
<link rel="stylesheet" media="all" href="https://cdn.nodeid.org/sites/default/files/css/css_r0VHZ1sXlVr21ChFtJ0fx_RywacV9w086LLvrL8t5mc.css" />
<link rel="stylesheet" media="all" href="https://cdn.nodeid.org/sites/default/files/css/css_s9lDtI9R2QyQbhRHBjuFpbOU2jsOI98_LBWrjCjMDew.css" />
<link rel="stylesheet" media="all" href="//maxcdn.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" />
<link rel="stylesheet" media="all" href="https://cdn.nodeid.org/sites/default/files/css/css_hysBny5mLBcvGKsF50a4lcPT6eYGW1VKR1uDbMtJU7I.css" />
<link rel="stylesheet" media="all" href="https://cdn.nodeid.org/themes/businessplus_lite/css/components/messages.css?s2l0nd" />
<link rel="stylesheet" media="all" href="https://cdn.nodeid.org/sites/default/files/css/css_-6B26-lQ6j22DnsJbD_69teu9I9guP8umb5miNpMNvw.css" />
<link rel="stylesheet" media="all" href="//use.fontawesome.com/releases/v5.1.0/css/all.css" />
<link rel="stylesheet" media="print" href="https://cdn.nodeid.org/sites/default/files/css/css_dw-KdAXsVspyVbyzWtO7GXqJzvqCWVpJ0NRRV3g_wKQ.css" />
<link rel="stylesheet" media="all" href="//fonts.googleapis.com/css?family=Barlow:300,300i,400,400i,500,500i,600,600i,700,700i&amp;subset=latin-ext" />
<link rel="stylesheet" media="all" href="//fonts.googleapis.com/css?family=Source+Code+Pro&subset=latin,latin-ext" />
<link rel="stylesheet" media="all" href="//fonts.googleapis.com/css?family=PT+Serif:400,700,400italic,700italic&subset=latin,latin-ext" />
<link rel="stylesheet" media="all" href="https://cdn.nodeid.org/themes/businessplus_lite/css/theme/color-khaki.css?s2l0nd" />
<link rel="stylesheet" media="all" href="https://cdn.nodeid.org/sites/default/files/css/css_1sIOChGcNEBHLA_UkvGGsb3t5J3Tx3aW6JcIBF1Zn6Q.css" />
<script src="https://cdn.nodeid.org/core/misc/touchevents-test.js?v=9.5.11"></script>
<script src="https://cdn.nodeid.org/core/assets/vendor/modernizr/modernizr.min.js?v=3.11.7"></script>
<script src="https://cdn.nodeid.org/core/misc/modernizr-additional-tests.js?v=3.11.7"></script>
</head>
The same Head in Drupal 10
<head>
<meta charset="utf-8" />
<noscript><style>form.antibot * :not(.antibot-message) { display: none !important; }</style>
</noscript><noscript><meta http-equiv="Refresh" content="0; URL=/big_pipe/no-js?destination=/node" />
</noscript><meta name="description" content="Get your free backlinks from the Node id website!" />
<meta name="keywords" content="node id, free backlinks, dofollow backlinks, backlinks, seo links" />
<link rel="shortlink" href="https://www.nodeid.org/" />
<link rel="canonical" href="https://www.nodeid.org/" />
<meta name="Generator" content="Drupal 10 (https://www.drupal.org)" />
<meta name="MobileOptimized" content="width" />
<meta name="HandheldFriendly" content="true" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="icon" href="https://cdn.nodeid.org/favicon.ico" type="image/vnd.microsoft.icon" />
<link rel="alternate" type="application/rss+xml" title="" href="https://www.nodeid.org/rss.xml" />
<title>Nodeid</title>
<link rel="stylesheet" media="all" href="https://cdn.nodeid.org//sites/default/files/css/css_XJcGBW3Pu2L40OPaSa1XTSHcLrLRyS7v371bIC45tBg.css?delta=0&language=en&theme=businessplus_lite&include=eJx9lMFyozAMhl8Iw2UvPfZJMsYooI2xvJKcNn36FQykoWN6wbI_SZb1awjE0A1cso9tZhoZRJpASeFTi487-j5xEdNNGnmIwtz1XqAJ0Ys8DvZsafwISyrLn4hnH_ELmr4IJmM5FrlEVOjGSL1lFX1Y4rHicEz1918BfrSUQi2ZEkXFXCGRwnYLyASgUvG52iP9BwjN4IJsF24N8EHxDuvjG2vEsu5o2zZ3hA_p1m8701BircJsT-HKeaIBnGfFUA1b8N7b1ZaSga8oU4cJ9WX7tC4T3YHRdEt1LqZJlMAAqc5LziSoSKccWEovNVoVxynlQ1cHNO5NykW43nO3rU0R4N1psVu0CdwUWZ7EyYAJmSfgwaLLElr4OUbPk8N16vve6OzTqsKvY75X4ocZ02XbravsVa5FNTIRayi659j3x8hnjFq_f0Htq2o_HUCCz_C-BNdGi7I134WhBnsiFWWfT_jL7FdooEjsbpO_4UmsOBzcn7dTKqZFgGCja3-ZU6-szsTGa9PjeMmYre7N-A9-sNkS" />
<link rel="stylesheet" media="all" href="https://cdn.nodeid.org//sites/default/files/css/css__nRK0t40CA-G7AiXcCx_bbGF3pk9Wv3gx6ldg2bZzQg.css?delta=1&language=en&theme=businessplus_lite&include=eJx9lMFyozAMhl8Iw2UvPfZJMsYooI2xvJKcNn36FQykoWN6wbI_SZb1awjE0A1cso9tZhoZRJpASeFTi487-j5xEdNNGnmIwtz1XqAJ0Ys8DvZsafwISyrLn4hnH_ELmr4IJmM5FrlEVOjGSL1lFX1Y4rHicEz1918BfrSUQi2ZEkXFXCGRwnYLyASgUvG52iP9BwjN4IJsF24N8EHxDuvjG2vEsu5o2zZ3hA_p1m8701BircJsT-HKeaIBnGfFUA1b8N7b1ZaSga8oU4cJ9WX7tC4T3YHRdEt1LqZJlMAAqc5LziSoSKccWEovNVoVxynlQ1cHNO5NykW43nO3rU0R4N1psVu0CdwUWZ7EyYAJmSfgwaLLElr4OUbPk8N16vve6OzTqsKvY75X4ocZ02XbravsVa5FNTIRayi659j3x8hnjFq_f0Htq2o_HUCCz_C-BNdGi7I134WhBnsiFWWfT_jL7FdooEjsbpO_4UmsOBzcn7dTKqZFgGCja3-ZU6-szsTGa9PjeMmYre7N-A9-sNkS" />
<link rel="stylesheet" media="all" href="//maxcdn.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" />
<link rel="stylesheet" media="all" href="https://cdn.nodeid.org//sites/default/files/css/css_QRx2OI87KCjfVTCtcf84ZCXLZJyN3UfyuCrCq1DGHfQ.css?delta=3&language=en&theme=businessplus_lite&include=eJx9lMFyozAMhl8Iw2UvPfZJMsYooI2xvJKcNn36FQykoWN6wbI_SZb1awjE0A1cso9tZhoZRJpASeFTi487-j5xEdNNGnmIwtz1XqAJ0Ys8DvZsafwISyrLn4hnH_ELmr4IJmM5FrlEVOjGSL1lFX1Y4rHicEz1918BfrSUQi2ZEkXFXCGRwnYLyASgUvG52iP9BwjN4IJsF24N8EHxDuvjG2vEsu5o2zZ3hA_p1m8701BircJsT-HKeaIBnGfFUA1b8N7b1ZaSga8oU4cJ9WX7tC4T3YHRdEt1LqZJlMAAqc5LziSoSKccWEovNVoVxynlQ1cHNO5NykW43nO3rU0R4N1psVu0CdwUWZ7EyYAJmSfgwaLLElr4OUbPk8N16vve6OzTqsKvY75X4ocZ02XbravsVa5FNTIRayi659j3x8hnjFq_f0Htq2o_HUCCz_C-BNdGi7I134WhBnsiFWWfT_jL7FdooEjsbpO_4UmsOBzcn7dTKqZFgGCja3-ZU6-szsTGa9PjeMmYre7N-A9-sNkS" />
<link rel="stylesheet" media="all" href="https://cdn.nodeid.org/themes/businessplus_lite/css/components/messages.css?s2l0wf" />
<link rel="stylesheet" media="all" href="https://cdn.nodeid.org//sites/default/files/css/css_ZBLnZ5RoDPHIbfzzFOoxTBAcarhowslEjPyzcHjLUtA.css?delta=5&language=en&theme=businessplus_lite&include=eJx9lMFyozAMhl8Iw2UvPfZJMsYooI2xvJKcNn36FQykoWN6wbI_SZb1awjE0A1cso9tZhoZRJpASeFTi487-j5xEdNNGnmIwtz1XqAJ0Ys8DvZsafwISyrLn4hnH_ELmr4IJmM5FrlEVOjGSL1lFX1Y4rHicEz1918BfrSUQi2ZEkXFXCGRwnYLyASgUvG52iP9BwjN4IJsF24N8EHxDuvjG2vEsu5o2zZ3hA_p1m8701BircJsT-HKeaIBnGfFUA1b8N7b1ZaSga8oU4cJ9WX7tC4T3YHRdEt1LqZJlMAAqc5LziSoSKccWEovNVoVxynlQ1cHNO5NykW43nO3rU0R4N1psVu0CdwUWZ7EyYAJmSfgwaLLElr4OUbPk8N16vve6OzTqsKvY75X4ocZ02XbravsVa5FNTIRayi659j3x8hnjFq_f0Htq2o_HUCCz_C-BNdGi7I134WhBnsiFWWfT_jL7FdooEjsbpO_4UmsOBzcn7dTKqZFgGCja3-ZU6-szsTGa9PjeMmYre7N-A9-sNkS" />
<link rel="stylesheet" media="all" href="//use.fontawesome.com/releases/v5.1.0/css/all.css" />
<link rel="stylesheet" media="print" href="https://cdn.nodeid.org//sites/default/files/css/css_vpLs-TEuy_xLiIKVnsHm_-nn9xMuOBrw60VAf0VgeMY.css?delta=7&language=en&theme=businessplus_lite&include=eJx9lMFyozAMhl8Iw2UvPfZJMsYooI2xvJKcNn36FQykoWN6wbI_SZb1awjE0A1cso9tZhoZRJpASeFTi487-j5xEdNNGnmIwtz1XqAJ0Ys8DvZsafwISyrLn4hnH_ELmr4IJmM5FrlEVOjGSL1lFX1Y4rHicEz1918BfrSUQi2ZEkXFXCGRwnYLyASgUvG52iP9BwjN4IJsF24N8EHxDuvjG2vEsu5o2zZ3hA_p1m8701BircJsT-HKeaIBnGfFUA1b8N7b1ZaSga8oU4cJ9WX7tC4T3YHRdEt1LqZJlMAAqc5LziSoSKccWEovNVoVxynlQ1cHNO5NykW43nO3rU0R4N1psVu0CdwUWZ7EyYAJmSfgwaLLElr4OUbPk8N16vve6OzTqsKvY75X4ocZ02XbravsVa5FNTIRayi659j3x8hnjFq_f0Htq2o_HUCCz_C-BNdGi7I134WhBnsiFWWfT_jL7FdooEjsbpO_4UmsOBzcn7dTKqZFgGCja3-ZU6-szsTGa9PjeMmYre7N-A9-sNkS" />
<link rel="stylesheet" media="all" href="//fonts.googleapis.com/css?family=Barlow:300,300i,400,400i,500,500i,600,600i,700,700i&amp;subset=latin-ext" />
<link rel="stylesheet" media="all" href="//fonts.googleapis.com/css?family=Source+Code+Pro&subset=latin,latin-ext" />
<link rel="stylesheet" media="all" href="//fonts.googleapis.com/css?family=PT+Serif:400,700,400italic,700italic&subset=latin,latin-ext" />
<link rel="stylesheet" media="all" href="https://cdn.nodeid.org/themes/businessplus_lite/css/theme/color-khaki.css?s2l0wf" />
<link rel="stylesheet" media="all" href="https://cdn.nodeid.org//sites/default/files/css/css_tBGd48turajVB6uDHzhjABVcCnAZNV10ctMwcSpJ3PI.css?delta=12&language=en&theme=businessplus_lite&include=eJx9lMFyozAMhl8Iw2UvPfZJMsYooI2xvJKcNn36FQykoWN6wbI_SZb1awjE0A1cso9tZhoZRJpASeFTi487-j5xEdNNGnmIwtz1XqAJ0Ys8DvZsafwISyrLn4hnH_ELmr4IJmM5FrlEVOjGSL1lFX1Y4rHicEz1918BfrSUQi2ZEkXFXCGRwnYLyASgUvG52iP9BwjN4IJsF24N8EHxDuvjG2vEsu5o2zZ3hA_p1m8701BircJsT-HKeaIBnGfFUA1b8N7b1ZaSga8oU4cJ9WX7tC4T3YHRdEt1LqZJlMAAqc5LziSoSKccWEovNVoVxynlQ1cHNO5NykW43nO3rU0R4N1psVu0CdwUWZ7EyYAJmSfgwaLLElr4OUbPk8N16vve6OzTqsKvY75X4ocZ02XbravsVa5FNTIRayi659j3x8hnjFq_f0Htq2o_HUCCz_C-BNdGi7I134WhBnsiFWWfT_jL7FdooEjsbpO_4UmsOBzcn7dTKqZFgGCja3-ZU6-szsTGa9PjeMmYre7N-A9-sNkS" />
<script src="https://cdn.nodeid.org//sites/default/files/js/js_aaf5tEEXs1Jg45uyXRZm0ZkcWaW4U7Ao6vFYfSTnSf4.js?scope=header&delta=0&language=en&theme=businessplus_lite&include=eJx9lMFyozAMhl8Iw2UvPfZJMsYooI2xvJKcNn36FQykoWN6wbI_SZb1awjE0A1cso9tZhoZRJpASeFTi487-j5xEdNNGnmIwtz1XqAJ0Ys8DvZsafwISyrLn4hnH_ELmr4IJmM5FrlEVOjGSL1lFX1Y4rHicEz1918BfrSUQi2ZEkXFXCGRwnYLyASgUvG52iP9BwjN4IJsF24N8EHxDuvjG2vEsu5o2zZ3hA_p1m8701BircJsT-HKeaIBnGfFUA1b8N7b1ZaSga8oU4cJ9WX7tC4T3YHRdEt1LqZJlMAAqc5LziSoSKccWEovNVoVxynlQ1cHNO5NykW43nO3rU0R4N1psVu0CdwUWZ7EyYAJmSfgwaLLElr4OUbPk8N16vve6OzTqsKvY75X4ocZ02XbravsVa5FNTIRayi659j3x8hnjFq_f0Htq2o_HUCCz_C-BNdGi7I134WhBnsiFWWfT_jL7FdooEjsbpO_4UmsOBzcn7dTKqZFgGCja3-ZU6-szsTGa9PjeMmYre7N-A9-sNkS"></script>
</head>
As you can see the double slash is again.
href="https://cdn.nodeid.org//sites/default/files/css/css_XJcGBW3Pu2
idflorin → created an issue.
@catch
before
add_header X-Frame-Options "SAMEORIGIN";
add_header X-XSS-Protection "1; mode=block";
add_header X-Content-Type-Options "nosniff";
add_header X-Permitted-Cross-Domain-Policies "none";
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains; preload";
# Allow "Well-Known URIs" as per RFC 5785
location ~* ^/.well-known/ {
allow all;
}
#remove # for ssl renew
if ($host = carthermostats.com) {return 301 https://www.carthermostats.com$request_uri;}
#https://www.nginx.com/resources/wiki/start/topics/recipes/drupal/
location = /12e3o302=op302cache/ {allow all;log_not_found off;access_log off;}
location = /ads.txt {allow all; log_not_found off; access_log off;}
location = /robots.txt {allow all; log_not_found off; access_log off;}
location = /favicon.ico {allow all; expires max; log_not_found off; access_log off;}
# Very rarely should these ever be accessed outside of your lan
location ~* \.(txt|log)$ { allow 192.168.0.0/16; deny all; }
location ~ \..*/.*\.php$ {
return 403;
}
location ~ ^/sites/.*/private/ {
return 403;
}
# Block access to scripts in site files directory
location ~ ^/sites/[^/]+/files/.*\.php$ {
deny all;
}
# Allow "Well-Known URIs" as per RFC 5785
location ~* ^/.well-known/ {
allow all;
}
# Block access to "hidden" files and directories whose names begin with a
# period. This includes directories used by version control systems such
# as Subversion or Git to store control files.
location ~ (^|/)\. {
return 403;
}
location / {
# try_files $uri @rewrite; # For Drupal <= 6
try_files $uri /index.php?$query_string; # For Drupal >= 7
}
location @rewrite {
rewrite ^/(.*)$ /index.php?q=$1;
}
# Don't allow direct access to PHP files in the vendor directory.
location ~ /vendor/.*\.php$ {
deny all;
return 404;
}
# Protect files and directories from prying eyes.
location ~* \.(engine|inc|install|make|module|profile|po|sh|.*sql|theme|twig|tpl(\.php)?|xtmpl|yml)(~|\.sw[op]|\.bak|\.orig|\.save)?$|composer\.(lock|json)$|web\.config$|^(\.(?!well-known).*|Entries.*|Repository|Root|Tag|Template)$|^#.*#$|\.php(~|\.sw[op]|\.bak|\.orig|\.save)$ {
deny all;
return 404;
}
# In Drupal 8, we must also match new paths where the '.php' appears in
# the middle, such as update.php/selection. The rule we use is strict,
# and only allows this pattern with the update.php front controller.
# This allows legacy path aliases in the form of
# blog/index.php/legacy-path to continue to route to Drupal nodes. If
# you do not have any paths like that, then you might prefer to use a
# laxer rule, such as:
# location ~ \.php(/|$) {
# The laxer rule will continue to work if Drupal uses this new URL
# pattern with front controllers other than update.php in a future
# release.
location ~ '\.php$|^/update.php' {
fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
# Ensure the php file exists. Mitigates CVE-2019-11043
try_files $fastcgi_script_name =404;
# Security note: If you're running a version of PHP older than the
# latest 5.3, you should have "cgi.fix_pathinfo = 0;" in php.ini.
# See http://serverfault.com/q/627903/94922 for details.
include fastcgi_params;
# Block httpoxy attacks. See https://httpoxy.org/.
fastcgi_param HTTP_PROXY "";
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param QUERY_STRING $query_string;
fastcgi_intercept_errors on;
# PHP 5 socket location.
#fastcgi_pass unix:/var/run/php5-fpm.sock;
# PHP 7 socket location.
#fastcgi_pass unix:/var/run/php/php7.4-fpm.sock;
fastcgi_pass unix:/var/run/php/php8.1-fpm.sock;
}
location ~* \.(js|css|webp|png|jpg|jpeg|gif|ico|svg|eot|ttf|woff|woff2)$ {
try_files $uri @rewrite;
etag on;
expires 365d;
add_header Pragma "public";
add_header Cache-Control "public, max-age=31536000, immutable";
#log_not_found off;
}
#location ~ ^/sites/.*/files/(css|js)/optimized { add_header Cache-Control 'public, max-age=31536000, immutable'; }
# Fighting with Styles? This little gem is amazing.
location ~ ^/sites/.*/files/styles/ {
try_files $uri @rewrite;
}
# Handle private files through Drupal. Private file's path can come
# with a language prefix.
location ~ ^(/[a-z\-]+)?/system/files/ { # For Drupal >= 7
try_files $uri /index.php?$query_string;
}
# Enforce clean URLs
# Removes index.php from urls like www.example.com/index.php/my-page --> www.example.com/my-page
# Could be done with 301 (was 307) for permanent or other redirect codes.
if ($request_uri ~* "^(.*/)index\.php(.*)") {
return 301 $1$2;
}
after
add_header X-Frame-Options "SAMEORIGIN";
add_header X-XSS-Protection "1; mode=block";
add_header X-Content-Type-Options "nosniff";
add_header X-Permitted-Cross-Domain-Policies "none";
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains; preload";
# Allow "Well-Known URIs" as per RFC 5785
location ~* ^/.well-known/ {
allow all;
}
#remove # for ssl renew
if ($host = carthermostats.com) {return 301 https://www.carthermostats.com$request_uri;}
#https://www.nginx.com/resources/wiki/start/topics/recipes/drupal/
location = /12e3o302=op302cache/ {allow all;log_not_found off;access_log off;}
location = /ads.txt {allow all; log_not_found off; access_log off;}
location = /robots.txt {allow all; log_not_found off; access_log off;}
location = /favicon.ico {allow all; expires max; log_not_found off; access_log off;}
# Very rarely should these ever be accessed outside of your lan
location ~* \.(txt|log)$ { allow 192.168.0.0/16; deny all; }
location ~ \..*/.*\.php$ {
return 403;
}
location ~ ^/sites/.*/private/ {
return 403;
}
# Block access to scripts in site files directory
location ~ ^/sites/[^/]+/files/.*\.php$ {
deny all;
}
# Allow "Well-Known URIs" as per RFC 5785
location ~* ^/.well-known/ {
allow all;
}
# Block access to "hidden" files and directories whose names begin with a
# period. This includes directories used by version control systems such
# as Subversion or Git to store control files.
location ~ (^|/)\. {
return 403;
}
location / {
try_files $uri $uri/ /index.php?$query_string; # For Drupal >= 7
}
location @rewrite {
# For D7 and above:
# Clean URLs are handled in drupal_environment_initialize().
rewrite ^ /index.php;
}
# Don't allow direct access to PHP files in the vendor directory.
location ~ /vendor/.*\.php$ {
deny all;
return 404;
}
# Protect files and directories from prying eyes.
location ~* \.(engine|inc|install|make|module|profile|po|sh|.*sql|theme|twig|tpl(\.php)?|xtmpl|yml)(~|\.sw[op]|\.bak|\.orig|\.save)?$|composer\.(lock|json)$|web\.config$|^(\.(?!well-known).*|Entries.*|Repository|Root|Tag|Template)$|^#.*#$|\.php(~|\.sw[op]|\.bak|\.orig|\.save)$ {
deny all;
return 404;
}
# In Drupal 8, we must also match new paths where the '.php' appears in
# the middle, such as update.php/selection. The rule we use is strict,
# and only allows this pattern with the update.php front controller.
# This allows legacy path aliases in the form of
# blog/index.php/legacy-path to continue to route to Drupal nodes. If
# you do not have any paths like that, then you might prefer to use a
# laxer rule, such as:
# location ~ \.php(/|$) {
# The laxer rule will continue to work if Drupal uses this new URL
# pattern with front controllers other than update.php in a future
# release.
location ~ '\.php$|^/update.php' {
fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
# Ensure the php file exists. Mitigates CVE-2019-11043
try_files $fastcgi_script_name =404;
# Security note: If you're running a version of PHP older than the
# latest 5.3, you should have "cgi.fix_pathinfo = 0;" in php.ini.
# See http://serverfault.com/q/627903/94922 for details.
include fastcgi_params;
# Block httpoxy attacks. See https://httpoxy.org/.
fastcgi_param HTTP_PROXY "";
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param QUERY_STRING $query_string;
fastcgi_intercept_errors on;
# PHP 5 socket location.
#fastcgi_pass unix:/var/run/php5-fpm.sock;
# PHP 7 socket location.
#fastcgi_pass unix:/var/run/php/php7.4-fpm.sock;
fastcgi_pass unix:/var/run/php/php8.1-fpm.sock;
}
location ~* \.(js|css|webp|png|jpg|jpeg|gif|ico|svg|eot|ttf|woff|woff2)$ {
try_files $uri @rewrite;
etag on;
expires 365d;
add_header Pragma "public";
add_header Cache-Control "public, max-age=31536000, immutable";
#log_not_found off;
}
#location ~ ^/sites/.*/files/(css|js)/optimized { add_header Cache-Control 'public, max-age=31536000, immutable'; }
# Fighting with Styles? This little gem is amazing.
location ~ ^/sites/.*/files/styles/ {
try_files $uri @rewrite;
}
# Handle private files through Drupal. Private file's path can come
# with a language prefix.
location ~ ^(/[a-z\-]+)?/system/files/ { # For Drupal >= 7
try_files $uri /index.php?$query_string;
}
# Enforce clean URLs
# Removes index.php from urls like www.example.com/index.php/my-page --> www.example.com/my-page
# Could be done with 301 (was 307) for permanent or other redirect codes.
if ($request_uri ~* "^(.*/)index\.php(.*)") {
return 301 $1$2;
}
it's a bit messy but it works
This also happened to me and I changed in the https://www.nginx.com/resources/wiki/start/topics/recipes/drupal/
to
location / {
try_files $uri $uri/ /index.php?$query_string; # For Drupal >= 7
}
location @rewrite {
# For D7 and above:
# Clean URLs are handled in drupal_environment_initialize().
rewrite ^ /index.php;
}
and now it works with Nginx 1.24.0.
I don't use advagg.
My fix/workaround:
1. Export your rules one by one
At /admin/config/development/configuration/single/export
select Configuration type
Field validation rule set
and your
Configuration name
Save your configurations.
2. Edit your configurations and change with search and replace "blacklist" with "blocklist"
3. Uninstall the Field validation module.
4. Install the latest version of the Field validation module
5. Import the edited configurations.
!! Important: Clear the cache after each step.
For anonymous users the sidebar is sticky but for me as admin logged-in the sidebar is not sticky. What could it be?
"Recreate the view" works only if the new URL for the homepage is not "node." It's an old install and could be some old setting.
The main thing it's: the theme works as-it-is
Thank you.
It was from APCu.
Solution:
I found out that if you clear cache, disable APC and restart PHP.
Uninstall Custom Publishing Options
Install Custom Publishing Options
Recreate your Options
And all is fine
Now you can enable APC
idflorin → created an issue.
What is this bul..?
I don't think it's related to this module.
I just got the same message for a different module. I guess it's my Drupal installation somehow. Any idea how should I check my Drupal install?
idflorin → created an issue.
Drupal 10 + latest 8 dev + this patch drupal-10-compatibility-fixes_3350929_4.patch
Working fine.
I also dabbled in Drupal 9, and it's working fine.
Drupal 10 + latest 8 dev + this patch and
I get this error
TypeError: Drupal\statistics_counter\EventSubscriber\StatisticsCounterSubscriber::updateStatistics(): Argument #1 ($event) must be of type Drupal\Component\EventDispatcher\Event, Symfony\Component\HttpKernel\Event\TerminateEvent given in Drupal\statistics_counter\EventSubscriber\StatisticsCounterSubscriber::updateStatistics() (line 30 of /www/wwwroot/evmirrors.com/web/modules/statistics_counter/src/EventSubscriber/StatisticsCounterSubscriber.php)
#0 [internal function]: Drupal\statistics_counter\EventSubscriber\StatisticsCounterSubscriber::updateStatistics()
#1 /www/wwwroot/evmirrors.com/web/core/lib/Drupal/Component/EventDispatcher/ContainerAwareEventDispatcher.php(111): call_user_func()
#2 /www/wwwroot/evmirrors.com/vendor/symfony/http-kernel/HttpKernel.php(97): Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch()
#3 /www/wwwroot/evmirrors.com/web/core/lib/Drupal/Core/StackMiddleware/StackedHttpKernel.php(63): Symfony\Component\HttpKernel\HttpKernel->terminate()
#4 /www/wwwroot/evmirrors.com/web/core/lib/Drupal/Core/DrupalKernel.php(670): Drupal\Core\StackMiddleware\StackedHttpKernel->terminate()
#5 /www/wwwroot/evmirrors.com/web/index.php(22): Drupal\Core\DrupalKernel->terminate()
#6 {main}
.
@abhijityadav works for me.
btw, this is the last module to need a Drupal 10 version for my projects. I'll like to thank the developers who update this module to Drupal 10 in advance. Thank you!
idflorin → created an issue.
quick and dirty:
at
/web/modules/admin_content_notification/src/AdminContentNotificationService.php
change
$to = empty($admin_email) ? \Drupal::config('system.site')->get('mail') : 'noreply@noreply.com';
with
$to = $admin_email;
I tried this:
https://drupal.stackexchange.com/a/287057
but it didn't work.
My case is
Site1:dosula.com (database:dosula_com)
Site2:idbip.com (database:idbip_com)
and the Advanced ban module that uses the advban_ip table.
I want the Advanced ban module from idbip.com to use the advban_ip table from dosula.com's database.
I added to the idbip.com setting.php:
$databases['default']['default'] = array (
'database' => 'idbip_com',
'username' => 'idbip_com',
'password' => 'idbip_compassword',
'prefix' => ['advban_ip' => 'dosula_com.',],
'host' => 'localhost',
'port' => '3306',
'namespace' => 'Drupal\\Core\\Database\\Driver\\mysql',
'driver' => 'mysql',
);
$databases['default']['dosula_com'] = array (
'database' => 'dosula_com',
'username' => 'dosula_com',
'password' => 'dosula_compassword',
'prefix' => '',
'host' => 'localhost',
'port' => '3306',
'namespace' => 'Drupal\\Core\\Database\\Driver\\mysql',
'driver' => 'mysql',
);
but it didn't work, and the site crashed.
from idbip.com log:
Drupal\Core\Database\DatabaseExceptionWrapper: SQLSTATE[42000]: Syntax error or access violation: 1142 SELECT command denied to user 'idbip_com'@'localhost' for table 'advban_ip': SELECT iid, expiry_date FROM "dosula_com"."advban_ip" WHERE ip = :ip; Array ( [:ip] => 109.00.00.123 ) in Drupal\advban\AdvbanIpManager->isBanned() (line 77 of /www/wwwroot/idbip.com/web/modules/advban/src/AdvbanIpManager.php)
Any ideas?
I can't reproduce.
<?php echo "hello", "world"; ?>
It works fine for me on drupal core 9.5.2 + PHP 8.1