I successfully installed Next Cloud, and have been able to use it from within my local network. However, when I currently try to access it from outside my local network (using either external IP or mydomain.com) I get an HTTP Error 500 ( mydomain.com is currently unable to handle this request.).
I noticed that under the logging, I see the same 4 errors pop up every time I try to access my server externally.
Here is error #1:
[PHP] Error: TypeError: Return value of OC\AppFramework\Http\Request::getServerHost() must be of the type string, null returned at /snap/nextcloud/13453/htdocs/lib/private/AppFramework/Http/Request.php#907
GET /
from 192.168.254.254 at 2019-06-08T20:56:28+00:00
Here is error #2:
[PHP] Error: Undefined offset: 0 at /snap/nextcloud/13453/htdocs/lib/private/AppFramework/Http/Request.php#907
GET /
from 192.168.254.254 at 2019-06-08T20:56:28+00:00
Error #3:
[index] Error: TypeError: Return value of OC\AppFramework\Http\Request::getServerHost() must be of the type string, null returned at <>
- /snap/nextcloud/13453/htdocs/lib/private/URLGenerator.php line 266
getServerHost() - /snap/nextcloud/13453/htdocs/lib/private/Template/JSCombiner.php line 72
getBaseUrl() - /snap/nextcloud/13453/htdocs/lib/private/Server.php line 992
__construct(OC\Files\AppData\AppData {}, OC\URLGenerator {}, OC\Memcache\Factory {}, OC\SystemConfig {}, OC\Log {}) - /snap/nextcloud/13453/htdocs/3rdparty/pimple/pimple/src/Pimple/Container.php line 118
OC{closure}("*** sensitive parameters replaced ***") - /snap/nextcloud/13453/htdocs/lib/private/AppFramework/Utility/SimpleContainer.php line 117
offsetGet(āOC\Template\JSCombinerā) - /snap/nextcloud/13453/htdocs/lib/private/ServerContainer.php line 132
query(āOC\Template\JSCombinerā) - /snap/nextcloud/13453/htdocs/lib/private/TemplateLayout.php line 326
query(āOC\Template\JSCombinerā) - /snap/nextcloud/13453/htdocs/lib/private/TemplateLayout.php line 160
findJavascriptFiles([āvendor/coreā," ā¦ "]) - /snap/nextcloud/13453/htdocs/lib/private/legacy/template.php line 211
__construct(āguestā, ācoreā) - /snap/nextcloud/13453/htdocs/lib/private/Template/Base.php line 132
fetchPage() - /snap/nextcloud/13453/htdocs/lib/base.php line 797
printPage() - /snap/nextcloud/13453/htdocs/lib/base.php line 1068
init() - /snap/nextcloud/13453/htdocs/index.php line 40
require_once("/snap/nextcloud ā¦ p")
GET /
from 192.168.254.254 at 2019-06-08T20:56:28+00:100:
And finally, error #4:
[PHP] Error: Undefined offset: 0 at /snap/nextcloud/13453/htdocs/lib/private/AppFramework/Http/Request.php#907
GET /
from 192.168.254.254 at 2019-06-08T20:56:28+00:00
I also noticed that under the setup and security warnings, it says I am missing a recommended PHP module, imagick
. Iām not sure if this is related.
I am using the snap package, on Ubuntu 18.04. Both port 80 and 443 are forwarded, and not blocked by my ISP or firewall. Iām familiar with the linux terminal, but not with PHP or Apache.
Thanks in advance!