SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Zealot
    Join Date
    Mar 2002
    Location
    Perth, Australia
    Posts
    164
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Sablotron problems on Linux

    I initially posted this in the PHP forum, but have had no luck, so I'm trying here:

    I am testing some XSLT on a new linux box webserver which is part of my LAN.

    The problem is that even though the XSLT works on 3 different servers, I'm getting errors on my LAN server.

    Now, if it was a problem with the XSL file contents, then I'm sure it would affect all servers trying to parse the file. But it's only my new test server.

    You can see the XSLT output from the servers that don't have any problems with the XSLT here:
    http://www.peterhaywood.com/portfolio
    and here:
    http://www.studiopedro.com/peterhaywood/portfolio/

    The problem server has the following set up:
    Redhat 7.2
    PHP RPM: php-4.2.2-4.arvin.rh7.2
    Expat RPM: expat-1.95.2-2
    Sablotron RPM: sablotron-0.95-3.arvin.rh7.2

    When I try an XSL Transformation I get the following error message:
    "Warning: xslt_process(): supplied argument is not a valid XSLT Processor resource"
    It works perfectly on these servers, but not on my local Linux server - HELP!!!

  2. #2
    SitePoint Wizard silver trophy Karl's Avatar
    Join Date
    Jul 1999
    Location
    Derbyshire, UK
    Posts
    4,411
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi,

    The error basically means that the handle to the XSLT instance you passed is not valid i.e. There was no XSLT processor created and assigned to the handle - if the code is working fine on other servers then it would suggest a problem with your PHP + XSLT build.
    Karl Austin :: Profile :: KDA Web Services Ltd.
    Business Web Hosting :: Managed Dedicated Hosting
    Call 0800 542 9764 today and ask how we can help your business grow.

  3. #3
    SitePoint Zealot
    Join Date
    Mar 2002
    Location
    Perth, Australia
    Posts
    164
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question

    Karl,

    I too suspect that something is up with my PHP and XSLT build. I just don't know how to fix it. Checking info.php shows that XSLT is enabled. Everything else with my PHP build seems to work just fine.

    I have uploaded a static copy of info.php here:
    http://www.studiopedro.com/demos/phpinfo/

    I have also uploaded a copy of the php.ini file here:
    http://www.studiopedro.com/demos/phpinfo/phpini.txt

    See any obvious problems? Know a good process for sorting problems like this? Should I remove and reinstall PHP( )? Is there a specific order of installing extensions?
    Last edited by peDey; Sep 29, 2002 at 14:21.

  4. #4
    SitePoint Wizard silver trophy Karl's Avatar
    Join Date
    Jul 1999
    Location
    Derbyshire, UK
    Posts
    4,411
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It looks like you're missing:

    --with-xslt-sablot

    from your configure line, since the PHP 4.1.X builds it's not been enough to just have --with-xslt, you need to tell it to use Sablot for the XSLT as well.

    Thank you,
    Karl Austin :: Profile :: KDA Web Services Ltd.
    Business Web Hosting :: Managed Dedicated Hosting
    Call 0800 542 9764 today and ask how we can help your business grow.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •