ictinnovations / ictcore

ICTCore: Unified Communications Framework for web developers. Communications APIs for voice calls, SMS messaging, Fax communications and Emails
http://ictcore.org/
Mozilla Public License 2.0
21 stars 16 forks source link

API calls return 500 server error - no autoload.php file #7

Closed whosgonna closed 5 years ago

whosgonna commented 5 years ago

The current git master appears to be broken. Trying to make any API calls returns a 500 server error. The problem seems to trace to this line in /core/lib/init.php:

$loader = require dirname($path_core) . DIRECTORY_SEPARATOR . 'vendor' . DIRECTORY_SEPARATOR . 'autoload.php';

There is no vendor directory in this repository.

tahiralmas commented 5 years ago

Hi

The recommend way of installation is RPM and Yum, Please use installation instruction from README.md to install ICTCore.

Regards

whosgonna commented 5 years ago

Is there any proper method to upgrade to the version in github?

My installation was from RPM, however API login failed. This is because the API is just looking to match an md5 hash of the user's password to the record in the DB, however this method is obsoleted by Drupal. I could probably submit a PR to fix this, but if i'm not working against a git repo this seems problematic.

tahiralmas commented 5 years ago

Drupal was never part of ICTCore! ICTCore use bearer token / jwt based authentication. so please update your setup accordingly.

Note: after updating by RPM you may need to run database upgrade script, which can be found in db directory.