PHP Warning: PHP Startup: Unable to load dynamic library 'xsl.so'

UKSBD

Moderator
  • Dec 30, 2005
    13,063
    1
    2,842
    Website appears to be working fine but error_log file appears to be written to every time a page is loaded with error;

    "PHP Warning: PHP Startup: Unable to load dynamic library 'xsl.so' (tried: /opt/cpanel/ea-php83/root/usr/lib64/php/modules/xsl.so (/lib64/libxslt.so.1: symbol xmlGenericErrorContext, version LIBXML2_2.4.30 not defined in file libxml2.so.2 with link time reference), /opt/cpanel/ea-php83/root/usr/lib64/php/modules/xsl.so.so (/opt/cpanel/ea-php83/root/usr/lib64/php/modules/xsl.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0"

    Looks as though it only started on 29- Nov (may have done a PHP version update then)

    Is this something I can do or is this down to the host?
     
    Usually a host job however it could be a line in a php.ini file that is within your files usual file name php.ini and .user.ini

    If you changed your php version it seems more likely that it would be in your files.

    If it is something your site needs then ask your host to install it or like above if your host is using Cloudlinux and has PHP Selector enabled you should find it in there if you need to enable it.
     
    Upvote 0
    I recently started seeing PHP errors for deprecated features (e.g., passing null string to explode()) but my host says there has been no version upgrade and they would not do so without telling me or without a request from me.

    The website code has not changed in that area since it was first created. The issue was caused by a typo meaning no orders for RM tracked or signed delivery from Australia could be accepted, despite such orders being OK a few days ago.

    Strange.
     
    Upvote 0
    I recently started seeing PHP errors for deprecated features (e.g., passing null string to explode()) but my host says there has been no version upgrade and they would not do so without telling me or without a request from me.

    The website code has not changed in that area since it was first created. The issue was caused by a typo meaning no orders for RM tracked or signed delivery from Australia could be accepted, despite such orders being OK a few days ago.

    Strange.

    Check that nothing has been injected into the file and something like Imunify has cleaned the injection out and left you with a typo.

    It's possible, so if you host uses Imunify then they would be able to see if anything had happened to that file in the log.

    Imunify cleans up on the fly so literally at the moment of injection it will clean it.

    Definitely worth investigating.
     
    Upvote 0
    Often different PHP versions have different PHP extensions enabled. If your host is something like cPanel, Look for something like "Select PHP Version". Then look for the `xsl` extension in the list and activate it then save.
    I can do that with my main hosting

    With the hosting this is on I have,
    MultiPHP Manager which I can set to use PHP 8.3

    I also have select php but it only goes up to PHP 7.3 (the system native default)

    This means I don't have the options to change extensions in 8.3

    Does my host need to set the native to 8.3 for me to be able to edit the extensions?
     
    Upvote 0
    I can do that with my main hosting

    With the hosting this is on I have,
    MultiPHP Manager which I can set to use PHP 8.3

    I also have select php but it only goes up to PHP 7.3 (the system native default)

    This means I don't have the options to change extensions in 8.3

    Does my host need to set the native to 8.3 for me to be able to edit the extensions?

    looking in to this more,
    Although my host uses php 8.3 their PHP Selector only has the option to go up to 7.3

    Is it likely they need to update their PHP Selector in CP?
     
    Upvote 0
    I can do that with my main hosting

    With the hosting this is on I have,
    MultiPHP Manager which I can set to use PHP 8.3

    I also have select php but it only goes up to PHP 7.3 (the system native default)

    This means I don't have the options to change extensions in 8.3

    Does my host need to set the native to 8.3 for me to be able to edit the extensions?

    That basically means your hosting uses multiphp manager and your host has not hidden select php in cPanel for this one.

    You will need to ask your host to add the extension to php as you are unable to add it yourself.
     
    Upvote 0
    looking in to this more,
    Although my host uses php 8.3 their PHP Selector only has the option to go up to 7.3

    Is it likely they need to update their PHP Selector in CP?
    you cant have both in use at the same time, seems on this server they use multiphp
     
    Upvote 0
    you cant have both in use at the same time, seems on this server they use multiphp
    They appear to offer both (you can choose which one to use)

    I can set the PHP version using MultiPHP Manager but not edit extensions

    I can set PHP version and set extensions using Select PHP but it only goes up to 7.3

    Is there a way of editing extensions with MultiPHP or is it only the host who can do that?
     
    Upvote 0
    Ask your host. Had the same on my server. Sent them a ticket and 5 minutes later had everything up to 8.3

    It's all running on 8.3 it's just that the PHP Selector doesn't list it in the dropdown.

    Is PHP Selector a cPanel plugin that the host has to update?
     
    Upvote 0
    It's all running on 8.3 it's just that the PHP Selector doesn't list it in the dropdown.

    Is PHP Selector a cPanel plugin that the host has to update?

    When you install cPanel on a server multiphp comes with it
    If that server OS is Cloudlinux then php selector comes with it and you end up with both.

    Generally the host decides to go with one or the other and either hides selector or configures selector and hides multiphp so you only see one in cPanel.

    If you do neither then you will see both and the setup will be exactly as you describe because they will not have allocated any additional versions of php to selector or configured it.

    As there are no other versions in selector then it appears they have not set it up.

    You can ask them to I guess, if it's your own server they should do no bother but if shared then they might not allow it.
     
    • Like
    Reactions: UKSBD
    Upvote 0
    sorry for the useless reply:

    this is actually somewhere you should use AI, if you aren't capable of efficiently searching google (not saying this in a rude way, just that some people don't know how to format these kinds of questions in google (all you gotta do is paste the primary error message in google istg)).
    Although, if your using shared cpanel, I highly suggest googling/ai, then, if you can't solve, contact the host. Posting on UKBF gotta be the worst way to ask about this, go to one of the stackexchange sites lmao
     
    Upvote 0
    Although, if your using shared cpanel, I highly suggest googling/ai, then, if you can't solve, contact the host. Posting on UKBF gotta be the worst way to ask about this, go to one of the stackexchange sites lmao
    I looked on stackexchange but all the answers relate to editing things on the server, php.ini, etc.

    This site is just on a shared hosting package and I can't do all the things suggested

    My other hosts have "Select PHP" which goes all the way up to 8.3 and enables me to enable extensions.

    With this host their "Select PHP" only goes up to PHP 7.3 (even though it is on 8.3)

    I've sent in a ticket and hopefully they will update their "Select PHP" version or just manually enable xsl for me
     
    Upvote 0
    It get very confusing when posts are deleted (I assume that's what happened here) but are quoted in other posts.

    Anything technical like this, especially anything to do with Linux, is likeley to lead to multiple conflicting results for AI, let alone Google.

    I now see a copilot icon in the bottom corner of word docs (I have a 365 sub). AI answers to how to remove it were all completely useless, quoting menu entries that just do not exist. It just makes s**t up. Even normal Google results do not help.

    I wouldn't trust Ai with anything critical such as hosting setup.
     
    Upvote 0
    Quick update on this

    The initial technical support didn't know what I was talking about but passed it on to a syst admin who appears to have updated the Select PHP, I can now manage extensions and it seems to have solved the problem.
     
    Upvote 0

    Latest Articles