php 当前无法处理此请求 HTTP ERROR 500

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/41062714/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-26 02:18:44  来源:igfitidea点击:

currently unable to handle this request HTTP ERROR 500

phpserverinterspire-shopping-cart

提问by Javaid Ahmad

I have transferred my shopping cart files from local to live. The shopping cart which i am using is Interspire.

我已将我的购物车文件从本地转移到现场。我使用的购物车是Interspire

When I load the page, it shows me this error

当我加载页面时,它显示了这个错误

currently unable to handle this request.

目前无法处理此请求。

The domain is http://4living.de/

域名是http://4living.de/

I hope to discover why it is showing this error.

我希望发现为什么它会显示此错误。

回答by scottevans93

You site is serving a 500 Internal Server Error. This can be caused by a number of things, such as:

您的站点正在提供500 Internal Server Error. 这可能由多种原因引起,例如:

  • File Permissions
  • Fatal Code Errors
  • Web Server Issues
  • 文件权限
  • 致命代码错误
  • Web 服务器问题

EDIT

编辑

As you have highlighted it is a permission issue. You need to ensure that your files are executable by the web server user

正如您所强调的,这是一个权限问题。您需要确保您的文件可由 Web 服务器用户执行

Please see below article for some guidance on proper file permissions. https://www.digitalocean.com/community/questions/proper-permissions-for-web-server-s-directory

请参阅下面的文章,了解有关正确文件权限的一些指导。 https://www.digitalocean.com/community/questions/proper-permissions-for-web-server-s-directory

回答by Bruno Silva

I was having "(...) unable to handle this request. http error 500" and found out it was from a require_oncethat was working locally, on a windows machine, with backslash (\) as separator for directories but when i uploaded to my server it stopped working. I changed it to forward slash (/) and now is ok.

我有“ (...) 无法处理这个请求。http 错误 500”,并发现它来自在本地工作的require_once,在 Windows 机器上,使用反斜杠 (\) 作为目录的分隔符,但是当我上传时到我的服务器它停止工作。我将其更改为正斜杠 (/),现在可以了。

require_once ( 'cards\cards.php' ); // **http error 500**

require_once ( 'cards/cards.php' ); // OK

回答by Talebian Talebian far

Have you included the statement include ("fileName.php");?

你有没有包括声明include ("fileName.php");

Are you sure that file is in the correct directory?

您确定该文件在正确的目录中吗?

回答by skolind

My take on this for future people watching this:

我对未来观看此内容的人的看法:

This could also happen if you're using: <?instead of <?php.

如果您使用:<?而不是<?php.

回答by Jay Jones

I found this was caused by adding a new scope variable to the login scope

我发现这是由于向登录范围添加新的范围变量引起的