Page 1 of 1

PHP Error Message

Posted: Sat Dec 27, 2025 7:11 pm
by GetSirius
Hello,

I am helping someone try to install and use Phoenix cart. Install was done via Softaculous and is up to date version. When we try to add images to a product page via Phoenix, the images upload, but do not show up in the catalog/store pages. This happens when adding images to a new product, also to an existing product such as "Limes."

Not sure if this is a server issue or Phoenix issue. Help ticket has been sent to website host.

PHP 8.3.27 (Zend 4.3.27) - also tried 8.0 and 7.4
Linux 5.14.0-503.40.1.el9_5.x86_64
CE Phoenix v1.1.0.6

Example, this page should have two images:
https://boomboomfireworks.com/shop/prod ... ucts_id=10

Every time a product is viewed online I see the following message show up in public_html/shop/error_log
Does not matter if the product is one we added, or an existing sample product.

[27-Dec-2025 18:43:32 UTC] 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: undefined symbol: valuePush, version LIBXML2_2.4.30), /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

Re: PHP Error Message

Posted: Sat Dec 27, 2025 7:35 pm
by tessthepup
@GetSirius

I would check to see if that module is installed in the php version you are running, if not enable it and see if it fixes the error

Re: PHP Error Message

Posted: Sun Dec 28, 2025 9:24 am
by BrockleyJohn
GetSirius wrote: Sat Dec 27, 2025 7:11 pm When we try to add images to a product page via Phoenix, the images upload, but do not show up in the catalog/store pages. This happens when adding images to a new product, also to an existing product such as "Limes."

Not sure if this is a server issue or Phoenix issue. Help ticket has been sent to website host.
Check if the main image of a new product shows up in admin > catalog when focussed on the product. I suspect it doesn't and the database record for the image file name is empty. You will find you can't edit a new product without putting the image file back into the image field.

This means your uploads aren't actually working.

I helped someone with the same problem recently - they were based on US East coast but using a server in NZ.

The file upload to the server's temp directory was working but the copy from temp into the images folder was not... possibly due to latency in the system. Putting in debug to check the problem detail actually stopped it happening!
The diagnostics were in the admin class upload:

Code: Select all

    public function parse() {
      if (isset($_FILES[$this->file])) {
        $file = [
          'name' => $_FILES[$this->file]['name'],
          'type' => $_FILES[$this->file]['type'],
          'size' => $_FILES[$this->file]['size'],
          'tmp_name' => $_FILES[$this->file]['tmp_name'],
        ];
      } else {
        $file = [];
      }
      error_log('upload parse ' . print_r($file, true));
      error_log('upload exists ' . (file_exists($file['tmp_name']) ? 'true' : 'false'));

etc...
and

Code: Select all

    public function save() {
      if (substr($this->destination, -1) !== '/') {
        $this->destination .= '/';
      }

      error_log('upload still exists ' . (file_exists($this->file['tmp_name']) ? 'true' : 'false'));
      etc...
If this does make the problem go away, you could try e.g. usleep(500) in the second slot

Re: PHP Error Message

Posted: Sun Dec 28, 2025 6:48 pm
by GetSirius
Thank you BrockleyJohn, that appears to make it work. I still see the same error message thrown in error_log, but it works. I will take this info to my web host techs and see what they think about it.

EDIT: No longer seeing any error_log message!