我的解决办法:
将宝塔网站的伪静态规则做如下修改:
if (!-e $request_filename) { rewrite ^/core/authorize.php/core/authorize.php(.*) https://www.hry.net.cn/core/authorize.php?$1 permanent; # rewrite ^/(.*)$ /update.php?q=$1 last; rewrite ^/(.*)$ /index.php?q=$1 last; }
上述代码为正常运行代码。更新的时候将第三行的#,移动到第四行。更新完成后再改回原样。
解决方法:
#On a Drupal 9.1.5 using PHP7.4, Nginx and PostGreSQL I got the same error. Got it fixed by using the configuration : location ~ ^/update.php { fastcgi_pass unix:/run/php/php7.4-fpm.sock; fastcgi_split_path_info ^(.+\.php)(/.+)$; fastcgi_index update.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; }
临时解决办法
EDIT: if (!-e $request_filename) { rewrite ^/(.*)$ /index.php?q=$1 last; } TO: if (!-e $request_filename) { rewrite ^/(.*)$ /update.php?q=$1 last; } Then visit /update.php/selection Upgrade the database Remember to modify the previous configuration after the upgrade!
还解决不了,可以看看下面页面:
https://www.drupal.org/project/drupal/issues/2606180
没有评论,留下你的印记,证明你来过。
◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。