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 Startup: Unable to load dynamic library '/usr/lib/php/modules/phalcon.so' - undefined symbol: php_json_decode_ex in Unknown on line 0 #13467

Closed
LaJun opened this issue Aug 17, 2018 · 4 comments
Labels
bug A bug report need script to reproduce Script is required to reproduce the issue status: unverified Unverified

Comments

@LaJun
Copy link

LaJun commented Aug 17, 2018

Details

  • Phalcon version: 3.31
  • PHP Version: 5.6
  • Operating System: centos7
    Linux iZ948im4rnxZ 3.10.0-514.21.1.el7.x86_64 view->setParamToView crash the server with complex arrays #1 SMP Thu May 25 17:04:51 UTC 2017 x86_64
  • Installation type: git clone source code master
  • Zephir version (if any):
  • Server: Apache2 use php5-mod not php-fpm
    i make it complies the source code and when i make test, the error happened
    then i find the solutions on the internet, show that json should be loaded before phalcon, then i add extension = phalcon.so into end of php.ini, it doesnt work
    then i find the json loaded in json.ini, i try to create a file named 30-phalcon.ini include extension.so,
    it still doesn't work
    please help me to solve this problem,
    thanks
@sergeyklay
Copy link
Contributor

Please provide steps to reproduce

@sergeyklay sergeyklay added Need information need script to reproduce Script is required to reproduce the issue labels Aug 17, 2018
@nask0
Copy link

nask0 commented Aug 30, 2018

@LaJun try to add "extension=json.so" to /etc/php.d/20-json.ini and "extension=phalcon.so" to /etc/php.d/50-phalcon.ini and restart your httpd server. It should be fine.

@niden
Copy link
Member

niden commented Oct 16, 2018

Please re-open this if it continues to be a problem. As @nask0 wrote, I usually put Phalcon last so 30-phalcon.ini is usually 80-phalcon.ini for me.

@niden niden closed this as completed Oct 16, 2018
@niden niden added bug A bug report status: unverified Unverified and removed not verified labels Dec 23, 2019
@magosla
Copy link

magosla commented Jun 28, 2020

I also encountered the same issue and was able to resolve it by removing "extension = phalcon.so" from php.ini file while having /etc/php.d/50-phalcon.ini untouched

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A bug report need script to reproduce Script is required to reproduce the issue status: unverified Unverified
Projects
None yet
Development

No branches or pull requests

5 participants