Hasokeyk/instagram

Login not working - 'Undefined variable: tag' in openssl_encrypt()

genisaretskiy opened this issue · 5 comments

PHP Notice 'yii\base\ErrorException' with message 'Undefined variable: tag'

in /var/www/html/yii-advanced/vendor/hasokeyk/instagram/src/instagram_login.php:145

Hello,

Which php version are you using?

@Hasokeyk
PHP 7.0.28-0ubuntu0.16.04.1 (cli) ( NTS )

Can you try this solution?

  1. Open php.ini file located under php installation folder.
  2. Search for extension=php_openssl.dll.
  3. Uncomment it by removing the semi-colon(;) in front of it.
  4. Restart the Apache Server.

Same error
'Undefined variable: tag'
in /var/www/html/yii-advanced/vendor/hasokeyk/instagram/src/instagram_login.php:145

nano /etc/php/7.0/apache2/php.ini

image

sudo service apache2 restart

ok, from PHP 7.4. its working
@Hasokeyk thank you