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

API errors after upgrade to 3.6.3 - why is it looking for composer.json #136

Open
littlepackage opened this issue Jun 1, 2021 · 0 comments

Comments

@littlepackage
Copy link

littlepackage commented Jun 1, 2021

Short problem description

I almost had API working with 3.6.2, but was having trouble authenticating (getting credentials) with an error similar to this one: #57 so I tried upgrading. Admin site works fine and doesn't throw errors; however, trying to access the API is causing errors, see below:

Steps to reproduce

  1. Upgrade to 3.6.3 from 3.6.2
  2. Attempt to use phplist API

Expected behaviour

I'd love to be able to use the API. Authentication is another thing I guess I'll tackle later. It was giving me a really hard time before the upgrade to 3.6.3 from 3.6.2

Actual behaviour

Stack trace:
#0 /home/sierdcqi/public_html/lists/base/vendor/phplist/core/src/Core/ApplicationKernel.php(70): PhpList\Core\Core\ApplicationStructure->getApplicationRoot()
#1 /home/sierdcqi/public_html/lists/base/vendor/phplist/core/src/Core/ApplicationKernel.php(169): PhpList\Core\Core\ApplicationKernel->getApplicationDir()
#2 /home/sierdcqi/public_html/lists/base/vendor/phplist/core/src/Core/ApplicationKernel.php(147): PhpList\Core\Core\ApplicationKernel->readBundleConfiguration()
#3 /home/sierdcqi/public_html/lists/base/vendor/phplist/core/src/Core/ApplicationKernel.php(31): PhpList\Core\Core\ApplicationKernel->bundlesFromConfiguration()
#4 /home/sierdcqi/public_html/lists/base/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php(493): Ph in /home/sierdcqi/public_html/lists/base/vendor/phplist/core/src/Core/ApplicationStructure.php on line 56

$corePackageIsRootPackage is returned false. Exception thrown because "there is no composer.json in the application root."
This package is installed on my server per the installation instructions and as mentioned above, is otherwise working fine except the API.

System configuration

Package version

Phplist version 3.6.3

PHP and Composer version

LiteSpeed Server
PHP version: 7.3.27
PHP post max size: 1 GB
PHP time limit: 1500
PHP max input vars: 2000
cURL version: 7.71.0, OpenSSL/1.1.1d

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant