Closed Toubef closed 6 years ago
You need to ensure that you run "composer install" when you check your code out, and then include "vendor/autoload.php" to autoload any classes that you need.
Hi Dave,
not sure I'm following here. What you mean by vendor/autoload.php. I can't find such file? Running Composer install is not possible because of permissions.
You need to run composer to build the autoloader, which will ensure that this issue goes away.
On 28 November 2017 at 08:56, Toubef notifications@github.com wrote:
Hi Dave,
not sure I'm following here. What you mean by vendor/autoload.php. I can't find such file? Running Composer install is not possible because of permissions.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/dawguk/php-garmin-connect/issues/23#issuecomment-347455692, or mute the thread https://github.com/notifications/unsubscribe-auth/ALm3bdHDjmPK-KRQqHww1syBwf3dW2rpks5s68rOgaJpZM4PST5- .
--
David Wilcock Development Team Leader (C3PL), Gear4music
--
This email is intended for the intended recipients(s) and may contain confidential information. Reproduction, dissemination or distribution of this message is prohibited unless authorised by the sender. If you are not the intended recipient, please notify the sender immediately and you must not read, keep, use, disclose, copy or distribute this email without the sender's prior permission. The views expressed by the sender are not necessarily those of Gear4music Limited
Hi Dave,
ok so this needs to be done on the server that has apache correct? Can this be done using Cpanel?
I would expect you to do this locally and then upload all your files to the server - unfortunately I don't know anything about cpanel so cannot help you there.
On 28 November 2017 at 09:17, Toubef notifications@github.com wrote:
Hi Dave,
ok so this needs to be done on the server that has apache correct? Can this be done using Cpanel?
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/dawguk/php-garmin-connect/issues/23#issuecomment-347460927, or mute the thread https://github.com/notifications/unsubscribe-auth/ALm3bWTH8pxKZHaIlb6PG7c_YP_2rBdjks5s68-ngaJpZM4PST5- .
--
David Wilcock Development Team Leader (C3PL), Gear4music
--
This email is intended for the intended recipients(s) and may contain confidential information. Reproduction, dissemination or distribution of this message is prohibited unless authorised by the sender. If you are not the intended recipient, please notify the sender immediately and you must not read, keep, use, disclose, copy or distribute this email without the sender's prior permission. The views expressed by the sender are not necessarily those of Gear4music Limited
You can visit https://getcomposer.org/ for more information about the best way to use composer :)
On 28 November 2017 at 09:19, David Wilcock david.wilcock@gear4music.com wrote:
I would expect you to do this locally and then upload all your files to the server - unfortunately I don't know anything about cpanel so cannot help you there.
On 28 November 2017 at 09:17, Toubef notifications@github.com wrote:
Hi Dave,
ok so this needs to be done on the server that has apache correct? Can this be done using Cpanel?
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/dawguk/php-garmin-connect/issues/23#issuecomment-347460927, or mute the thread https://github.com/notifications/unsubscribe-auth/ALm3bWTH8pxKZHaIlb6PG7c_YP_2rBdjks5s68-ngaJpZM4PST5- .
--
David Wilcock Development Team Leader (C3PL), Gear4music
--
This email is intended for the intended recipients(s) and may contain confidential information. Reproduction, dissemination or distribution of this message is prohibited unless authorised by the sender. If you are not the intended recipient, please notify the sender immediately and you must not read, keep, use, disclose, copy or distribute this email without the sender's prior permission. The views expressed by the sender are not necessarily those of Gear4music Limited
--
David Wilcock Development Team Leader (C3PL), Gear4music
--
This email is intended for the intended recipients(s) and may contain confidential information. Reproduction, dissemination or distribution of this message is prohibited unless authorised by the sender. If you are not the intended recipient, please notify the sender immediately and you must not read, keep, use, disclose, copy or distribute this email without the sender's prior permission. The views expressed by the sender are not necessarily those of Gear4music Limited
Hi Dave,
ok thanks I will try it out.
Hi Dave,
I think I got it working now. Thanks for helping out!
Br, Toube
Hi,
I tried to use the test example for this but it keeps giving me 500 error code and php (5.6) log saying the following: [10-Sep-2017 15:55:47 Europe/Helsinki] PHP Fatal error: Class 'dawguk\GarminConnect' not found in /home/user/public_html/garmin/garmin_test.php on line 9
If I add a require_once 'src/dawguk/GarminConnect.php'; then the floowing error is showing in the log: PHP Fatal error: Class 'dawguk\GarminConnect\Connector' not found in /home/user/public_html/garmin/src/dawguk/GarminConnect.php on line 62
What am I doing wrong here? Please advice.