Giter Club home page Giter Club logo

Comments (11)

moznion avatar moznion commented on July 17, 2024

Is other text reaction active? If not, probably configuration or launch method is wrong.

from line-bot-sdk-php.

sprabowo avatar sprabowo commented on July 17, 2024

yeah, there is no. i just configure settings in src/LINEBot/KitchenSink/Setting.php to add Token and Secret. then i configured public/index.php to edit require autoload.php then in webhook i set http://my_web_folder/public/callback. is that true? because i just saw simply route to callback

from line-bot-sdk-php.

moznion avatar moznion commented on July 17, 2024

Please try to set http://my_web_folder/callback instead of http://my_web_folder/public/callback as a callback.

from line-bot-sdk-php.

sprabowo avatar sprabowo commented on July 17, 2024

Webhook URL is not found. when i try to verify. still cant get reply. btw when i use php 5.4, webhook url got verified with PHP 5.4 but when i access http://my_web_folder/public/callback get error. when i changed php version into 5.6, http://my_web_folder/public/callback get response but i cant verify, the error is 500 internal server. any idea?

from line-bot-sdk-php.

moznion avatar moznion commented on July 17, 2024

If request is failed on verifying phase, perhaps wrong the channel access token and channel secret. Please check it.

from line-bot-sdk-php.

sprabowo avatar sprabowo commented on July 17, 2024

oke its solved.
in the /-src
we need upload LINEBot.php, then copy folder HTTPClient to/LINEBot.

so folder structure become
/-public
/-vendor
/-src
/--LINEBot
/---HTTPClient
/--LINEBot.php

documentation from example is not full. so confused for beginner

from line-bot-sdk-php.

moznion avatar moznion commented on July 17, 2024

That is strange. Did you execute composer install?

from line-bot-sdk-php.

sprabowo avatar sprabowo commented on July 17, 2024

ye i did it. i just copy KitchenSink from example folder then i put in public html then composer install. is that wrong procedure?

from line-bot-sdk-php.

moznion avatar moznion commented on July 17, 2024

I got it. In my estimation, the problem is simple.

You say copy KitchenSink from example folder; probably it breaks relation of the directory structure between example app and SDK directory.

Now, we should keep directory tree as is git cloned because example app's composer.json doesn't have the dependency that belongs to bot SDK.

I'll add dependency to the bot SDK to composer.json of example application. It makes be fine.

from line-bot-sdk-php.

sprabowo avatar sprabowo commented on July 17, 2024

oke, thanks @moznion.

from line-bot-sdk-php.

moznion avatar moznion commented on July 17, 2024

Fixed at 1469751.

from line-bot-sdk-php.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.