Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error with location.php [Class "config" does not exist] #14

Closed
maximuml opened this issue May 5, 2021 · 18 comments
Closed

error with location.php [Class "config" does not exist] #14

maximuml opened this issue May 5, 2021 · 18 comments
Labels
help wanted Extra attention is needed

Comments

@maximuml
Copy link

maximuml commented May 5, 2021

2021/05/05 16:05:48 [error] 1042#0: *2551 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Uncaught ReflectionException: Class "config" does not exist in /home/wwwroot/local.domain/vendor/laravel/framework/src/Illuminate/Container/Container.php:833
Stack trace:
#0 /home/wwwroot/local.domain/vendor/laravel/framework/src/Illuminate/Container/Container.php(833): ReflectionClass->__construct()
#1 /home/wwwroot/local.domain/vendor/laravel/framework/src/Illuminate/Container/Container.php(714): Illuminate\Container\Container->build()
#2 /home/wwwroot/local.domain/vendor/laravel/framework/src/Illuminate/Container/Container.php(652): Illuminate\Container\Container->resolve()
#3 /home/wwwroot/local.domain/vendor/laravel/framework/src/Illuminate/Foundation/helpers.php(119): Illuminate\Container\Container->make()
#4 /home/wwwroot/local.domain/vendor/laravel/framework/src/Illuminate/Foundation/helpers.php(275): app()
#5 /home/wwwroot/local.domain/public/location.php(9): config()
#6 {main}

Next Illuminate\Contracts\Container\BindingResolutionException: Target class [config] does not" while reading response header from upstream, client: 37.146.144.208, server: local.domain, request: "GET /location.php HTTP/1.1", upstream: "fastcgi://unix:/tmp/php-cgi.sock:", host: "local.domain", referrer: "http://local.domain/staffpanel.php"
@xiaomlove
Copy link
Owner

do you run the upgrade program successfully?

@xiaomlove xiaomlove added the help wanted Extra attention is needed label May 5, 2021
@maximuml
Copy link
Author

maximuml commented May 5, 2021

I run composer install and composer update
Any more commands I need to run?

@xiaomlove
Copy link
Owner

Sorry about the doc no English version now。
1, copy new code over write the olds
2, run composer install
3, copy nexus/Install/update/update.php to public/update/update.php,than open yourdonain/update/update.php,complete the upgrade steps.

@xiaomlove
Copy link
Owner

Also,checkout the documentation, add some configuration for the management system

@maximuml
Copy link
Author

maximuml commented May 6, 2021

Just made reinstall and everythink allright! thanks

@maximuml maximuml closed this as completed May 6, 2021
@maximuml
Copy link
Author

maximuml commented May 6, 2021

but still got the same error with location.php

@maximuml maximuml reopened this May 6, 2021
@maximuml
Copy link
Author

maximuml commented May 6, 2021

2021/05/06 21:24:18 [error] 24795#0: *224 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Uncaught ReflectionException: Class "config" does not exist in /home/wwwroot/***/vendor/laravel/framework/src/Illuminate/Container/Container.php:833
Stack trace:
#0 /home/wwwroot/***/vendor/laravel/framework/src/Illuminate/Container/Container.php(833): ReflectionClass->__construct()
#1 /home/wwwroot/***/vendor/laravel/framework/src/Illuminate/Container/Container.php(714): Illuminate\Container\Container->build()
#2 /home/wwwroot/***/vendor/laravel/framework/src/Illuminate/Container/Container.php(652): Illuminate\Container\Container->resolve()
#3 /home/wwwroot/***/vendor/laravel/framework/src/Illuminate/Foundation/helpers.php(119): Illuminate\Container\Container->make()
#4 /home/wwwroot/***/vendor/laravel/framework/src/Illuminate/Foundation/helpers.php(275): app()
#5 /home/wwwroot/***/public/location.php(9): config()
#6 {main}

Next Illuminate\Contracts\Container\BindingResolutionException: Target class [config] does not" while reading response header from upstream, client: 37.146.144.208, server: ***, request: "GET /location.php HTTP/1.1", upstream: "fastcgi://unix:/tmp/php-cgi.sock:", host: "***", referrer: "http://***/staffpanel.php"

@xiaomlove
Copy link
Owner

you can fixed it like this temporary.

@maximuml
Copy link
Author

maximuml commented May 6, 2021

Thanks it's work! is it any way to detect user ip location through geoip2 db? thanks

@maximuml
Copy link
Author

maximuml commented May 6, 2021

and seems like next error with attachment in news

2021/05/06 21:56:49 [error] 24795#0: *273 FastCGI sent in stderr: "Unable to open primary script: /home/wwwroot/***/public/attachments/202105/shoutbox.php (No such file or directory)" while reading response header from upstream, client: 37.146.144.208, server: ***, request: "GET /attachments/202105/shoutbox.php?type=shoutbox HTTP/1.1", upstream: "fastcgi://unix:/tmp/php-cgi.sock:", host: "***", referrer: "http://***/attachments/202105/20210507025105564c9707adba28c8806bb6fba5daf588.jpg.thumb.jpg"

@xiaomlove
Copy link
Owner

request /attachments/202105/shoutbox.php?type=shoutbox ? where does it happen ?

@maximuml
Copy link
Author

maximuml commented May 7, 2021

Then i go to /attachments/202105/shoutbox.php?type=shoutbox i just got blank page - No input file specified

@xiaomlove
Copy link
Owner

Where will do that request?

@maximuml
Copy link
Author

maximuml commented May 7, 2021

I just add news on index page with attached image

@maximuml
Copy link
Author

maximuml commented May 7, 2021

Screenshot_20210507-164425__01

@xiaomlove
Copy link
Owner

xiaomlove commented May 8, 2021

try this:

ln -s <YOUR_CODE_ROOT_PATH>/attachments <YOUR_CODE_ROOT_PATH>/public

Under normal circumstances, the installer will complete this setup

@maximuml
Copy link
Author

maximuml commented May 8, 2021

Yes. I already did it!!

@maximuml
Copy link
Author

maximuml commented May 8, 2021

Thanks.

@maximuml maximuml closed this as completed May 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants