Fatal Error with initial example of sms platform attempt

Ask about general coding issues or problems here.

Moderators: egami, macek, gesf

Post Reply
New php-forum User
New php-forum User
Posts: 18
Joined: Thu Oct 07, 2004 10:04 am

Fri May 18, 2018 12:53 pm

I have opened up a known brand sms-platform web account, uploaded
https://github.com/sms-platform-php files and Composer to the server, changed permmision of folder and file to 755,
and then I opened the file .../examples/send.php (from the sms-platform-php-files) and I see this:
Warning: require_once(../vendor/autoload.php): failed to open stream: No such file or directory in /home/.../examples/send.php on line 3
Fatal error: require_once(): Failed opening required '../vendor/autoload.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/.../examples/send.php on line 3

And line 3 is:
require_once '../vendor/autoload.php';

Any ideas/help to remedy this will be appreciated.
Much thanks

User avatar
php-forum Fan User
php-forum Fan User
Posts: 785
Joined: Mon Feb 22, 2016 5:52 pm

Fri May 18, 2018 11:53 pm

Have you checked that you followed all of the installation instructions?

As the error message states, it cannot find the 'autoload.php' file, so you need to change the path in this line:

Code: Select all

require_once '../vendor/autoload.php';
so that it can find it

Post Reply