0
Welcome Guest! Login
0 items Join Now

Unable to load dynamic library ... php/extensions ... json.s

  • Unable to load dynamic library ... php/extensions ... json.s

    Posted 11 years 9 months ago
    • I've been getting this error on my new web host, for some gantry sites (not sure yet if all):
      [23-Jul-2013 10:40:50 America/New_York] PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20090626/json.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20090626/json.so: cannot open shared object file: No such file or directory in Unknown on line 0

      My hosts response:
      Hi Vicky,
      The json extension in PHP is compiled in, meaning that a separate module doesn't need to be loaded for json functionality to work.
      It looks like the site's code for aahirs2 and usrha2 is trying to load the json module, which is causing the error to show up.
      for usrha2, it is in:
      ./libraries/gantry/core/gantryjson.class.php line 22
      for aahirs2, it is in:
      ./components/com_gantry/core/gantryjson.class.php line 23

      usrha2 is a J 2.5 install running latest version of Gantry (4.1.12)
      aahirs2 is a J 1.5 install running latest version of Gantry (4.1.12)
      BUT - these error messages also present on earlier Gantry versions.

      Server is running PHP 5.3.24
      Server Version: Apache/2.2.24 (Unix)

      Can you help clarify and explain what do I need to do to prevent these error messages? My current web hosts are very helpful and can provide any assistance I need, also more info if needed.
      Thanks in advance, Vicky
    • Last Edit: 11 years 8 months ago by Vicky Thomas.
    • An old dog can learn new tricks - I saw it on Mythbusters!
  • Re: Unable to load dynamic library ... php/extensions ... json.s

    Posted 11 years 8 months ago
    • I still need some help with this. Continuing to get this error message.

      Is there a line of code in gantryjson.class.php that I can comment out? Or, can you change the code to first check for 'json' before calling for a module?

      Thanks, Vicky
    • An old dog can learn new tricks - I saw it on Mythbusters!
  • Re: Unable to load dynamic library ... php/extensions ... json.s

    Posted 11 years 8 months ago
    • I am posting the 'cause' and solution, in case anyone else runs into this:

      In PHP config on my server account, the json.so module was specifically configured as a dynamic extension to load in php.ini (Core --> Extension). My host removed json.so from that list, and that cleared the error.

      This error message did not relate to gantry or any rockettheme file.

      Vicky
    • An old dog can learn new tricks - I saw it on Mythbusters!
    • prim's Avatar
    • prim
    • Preeminent Rocketeer
    • Posts: 17290
    • Thanks: 217

    Re: Unable to load dynamic library ... php/extensions ... json.s

    Posted 11 years 8 months ago
    • Thanks for sharing the solution Vicky :)
    • Please reply with a direct link to the issue & create a new thread for each new issue.

      A template is only as good as the content that goes into it ;) - DanG

Time to create page: 0.071 seconds