Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHP Fatal error: Uncaught danog\MadelineProto\TL\Exception: Missing required parameter #184

Closed
ali-imanpour opened this issue Sep 2, 2017 · 16 comments
Labels

Comments

@ali-imanpour
Copy link

ali-imanpour commented Sep 2, 2017

I get this error, sometimes start the app.

PHP Fatal error:  Uncaught danog\MadelineProto\TL\Exception: Missing required parameter
TL Trace:

While serializing:      messages.getDialogs['offset_date']
CallHandler.php(70):    serialize_method("messages.getDialogs",{"_":"MadelineProto.dialogParams","limit":0,"offset_date":null,"offset_id":null,"offset_peer":null,"count":292})
DialogHandler.php(28):  method_call("messages.getDialogs",{"_":"MadelineProto.dialogParams","limit":0,"offset_date":null,"offset_id":null,"offset_peer":null,"count":292},{"datacenter":4,"FloodWaitLimit":100})
MTProto.php(365):       get_dialogs(false)
PlaceHolder.php(30):    __wakeup()
__wakeup()
app2.php(28):           deserialize("session.madeline")
@danog
Copy link
Owner

danog commented Sep 5, 2017

Recreate the session, this is a bug with PHP's serialization

@danog danog added the bug label Sep 5, 2017
@tommasozzo
Copy link

I've the similar problem:
[2017-09-05 15:36:51] local.ERROR: \danog\MadelineProto\Exception: The session is corrupted! in C:\progettiAITO\autobot\autobot\vendor\danog\madelineproto\src\danog\MadelineProto\MTProto.php:612
TL Trace:

MTProto.php(327): reset_session()
PlaceHolder.php(30): __wakeup()
__wakeup()

@Zelyutin
Copy link

Have problem like that:
Fatal error: Uncaught danog\MadelineProto\TL\Exception: You didn't provide a valid string
TL Trace:

While serializing: auth.sendCode['phone_number']
CallHandler.php(70): serialize_method("auth.sendCode",{"phone_number":false,"sms_type":5,"api_id":100000,"api_hash":"100000c6f5af835284373cba094f5ad9","lang_code":"en"})
Login.php(80): method_call("auth.sendCode",{"phone_number":false,"sms_type":5,"api_id":100000,"api_hash":"100000c6f5af835284373cba094f5ad9","lang_code":"en"},{"datacenter":2})
APIFactory.php(135): phone_login(false)
testing.php(59): __call("phone_login",[false])

thrown in C:\OpenServer\OSPanel\domains\tl.ru\src\danog\MadelineProto\TL\TL.php on line 298

@danog
Copy link
Owner

danog commented Sep 20, 2017

@Zelyutin You simply did not provide a phone number

testing.php(59): __call("phone_login",[false])

@Zelyutin
Copy link

Zelyutin commented Sep 20, 2017

@danog I see, thanks
Trying to go further

@danog
Copy link
Owner

danog commented Sep 20, 2017

The MTPROTO_NUMBER in .env does not do anything anymore, the only way to provide it is by inputting when prompted while running tests/testing.php

@danog danog closed this as completed in 6cf583e Oct 6, 2017
@amir61v
Copy link

amir61v commented Jun 17, 2018

Please help me with this error. I'm totally new to Linux. Thanks
PHP Fatal error: Uncaught \danog\MadelineProto\Exception: Curl error: Protocol "https" not supported or disabled in libcurl in phar:///root/madeline.phar/vendor/danog/madelineproto/src/danog/MadelineProto/MyTelegramOrgWrapper.php:47
Revision: 96f943f
TL Trace (YOU ABSOLUTELY MUST READ THE TEXT BELOW):

ApiStart.php(47): __construct("00989124456398")
API.php(86): api_start()
Serializable.php(34): __magic_construct("proxy.madeline")
mtproxyd(31): __construct("proxy.madeline")
thrown in phar:///root/madeline.phar/vendor/danog/madelineproto/src/danog/MadelineProto/MyTelegramOrgWrapper.php on line 47

@danog
Copy link
Owner

danog commented Jun 17, 2018

@amir61v
Copy link

amir61v commented Jun 17, 2018

Didn't work.. :(((
apt-get update
E: Malformed line 1 in source list /etc/apt/sources.list.d/php.list (dist parse)
E: The list of sources could not be read.
root@host:~# apt-get install php7.2 php7.2-dev php7.2-fpm php7.2-curl php7.2-xml php7.2-zip php7.2-gmp php7.2-cli php7.2-mbstring git -y
Reading package lists... Error!
E: Malformed line 1 in source list /etc/apt/sources.list.d/php.list (dist parse)
E: The list of sources could not be read.
E: The package lists or status file could not be parsed or opened.

@danog
Copy link
Owner

danog commented Jun 17, 2018

Make sure the php repo was added properly, check the php apt source file.

@amir61v
Copy link

amir61v commented Jun 17, 2018

yes it's ok

@amir61v
Copy link

amir61v commented Jun 18, 2018

help me please

@danog
Copy link
Owner

danog commented Jun 18, 2018

As I already said, make sure the php repo was added properly, check the php apt source file.

@amir61v
Copy link

amir61v commented Jun 18, 2018

no it's not ok?
I'm driving crazy

@amir61v
Copy link

amir61v commented Jun 19, 2018

can i give my server's access to you so you can take a look at it?

@amir61v
Copy link

amir61v commented Jun 20, 2018

SOLVED. it was because of curl. i had to remove it and install it with --ssl.
but now telegram is giving error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants