Comments (6)
when did you get the error 500 ?
from telegrambotphp.
i check errore log and i see my errore was undefind json_decode() function.
and my server admin say jason is active bot i have this errore
i checked it in other host and there was no errore.
from telegrambotphp.
If you found the error "undefind json_decode() function" it's a server configuration problem.
According to http://php.net/manual/en/function.json-decode.php it's a builtin function from PHP 5.2.
Which version has your server ?
from telegrambotphp.
I try all version from 5.4 And 5.5 and 5.6 and 6 and 7 and 7.1 all of version have same errore .
I configure php with php selector but notthing.
from telegrambotphp.
i suggest you to lower the bar to identify the problem.
Try to run tis script in a new php file
$arr = array('a' => 1, 'b' => 2, 'c' => 3, 'd' => 4, 'e' => 5);
$json= json_encode($arr);
echo $json;
var_dump(json_decode($json));
and see what errors you get, than ask your hoster how to fix them
Also checck this out:
http://stackoverflow.com/questions/18239405/php-fatal-error-call-to-undefined-function-json-decode
from telegrambotphp.
after run this code i get 500 internal errore and notthing showing me but in my errore log i got this errore:
[15-Feb-2017 16:47:42 Asia/Tehran] PHP Fatal error: Call to undefined function json_encode() in /home/rostami/public_html/jsontest.php on line 3
and my problem was resolve after changing my webhosting server.
from telegrambotphp.
Related Issues (20)
- The function of the failure. HOT 1
- $telegram->getUpdateType()=='channel_post' not receiving channel updates HOT 1
- Unable to get phone number HOT 1
- Telegram::getChatMembersCount() method
- [BUG]
- Hi~~ @Eleirbag89 pls delete this issue,thanks!
- Web Apps HOT 8
- UpdateCount[BUG] HOT 2
- payment function HOT 1
- you have any video for this bot like tutorial ? HOT 1
- How to make wait for answer HOT 2
- Can you create .phar file for this project HOT 9
- [BUG]
- ErrorException Undefined array key "message" when using funtion UserID() HOT 3
- Formatting options HOT 3
- sendMediaGroup not working! HOT 1
- How to get user_id of the message of a user I reply to? HOT 1
- Add API Support for up to API 6.9 (22.09.2023) HOT 1
- Please Add Forward From Username HOT 1
- My button not a have actions
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from telegrambotphp.