Giter VIP home page Giter VIP logo

Comments (6)

Eleirbag89 avatar Eleirbag89 commented on May 22, 2024

when did you get the error 500 ?

from telegrambotphp.

abrostamian avatar abrostamian commented on May 22, 2024

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.

Eleirbag89 avatar Eleirbag89 commented on May 22, 2024

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.

abrostamian avatar abrostamian commented on May 22, 2024

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.

Eleirbag89 avatar Eleirbag89 commented on May 22, 2024

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.

abrostamian avatar abrostamian commented on May 22, 2024

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)

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.