Kryptronic Software Support Forum

You are viewing this forum as a guest. Login to an existing account, or create a new account, to reply to topics and to create new topics.

#1 11-26-2024 14:32:55

antsevo
Member
From: Surrey, UK
Registered: 02-08-2005
Posts: 618
Website

Non Fatal Error reported in "CheckoutIntro"

Error reported is this:

CORE_Error::error: Non-fatal error encountered: preg_match(): No ending delimiter '/' found File: /private/custom/apps/ecom/ECOM/includes/skinwidget_minicart.php Line: 320

Line 320 is this:
if (preg_match('/^media\/ecom\/invsm\/',$dispimg)) {



Here is the whole images tag code:

  // +--
     // | Define the images tag.
     // +--

     $imgtag = ' ';

     if (!(empty($offersdoimg))) {

          if (preg_match('/^media\/ecom\/invsm\/',$dispimg)) {
   

               $imgwidth  = $this->xhtml_encode($this->globals('core_settings.ecom.imagedims_invsm_width'));
               $imgheight = $this->xhtml_encode($this->globals('core_settings.ecom.imagedims_invsm_height'));

          } else {

               $imgwidth  = $this->xhtml_encode($this->globals('core_settings.ecom.imagedims_prodsm_width'));
               $imgheight = $this->xhtml_encode($this->globals('core_settings.ecom.imagedims_prodsm_height'));

          } // End of if statement.

          $imgtag  = '<img src="' . $dispimg . '" alt="' . $this->xhtml_encode($dispname) . '" class="kimgrounded kcartitemimg" ';
          $imgtag .= 'width="' . $imgwidth . '" height="' . $imgheight . '" loading="lazy" style="display: block; width: 100%; max-width: ' . $imgwidth . 'px; height: auto; margin: 0 auto 0 auto; padding: 0;" />';

     } // End of if statement.


Anthony - Manufacturers of Personalised and Celebrity Face Masks

Offline

 

#2 11-29-2024 10:17:33

webmaster
Administrator
From: York, PA
Registered: 04-20-2001
Posts: 19850
Website

Re: Non Fatal Error reported in "CheckoutIntro"

I'm not sure which version of the software you're running, or if you modded that file, but in version 9.3 that line reads:

Code:

if (preg_match('/^media\/ecom\/invsm\//',$dispimg)) {

If you are running a PHP version greater than PHP7.4 right now with our software version 9.3 or lower, I recommend dialing back PHP to version 7.4 at the highest.  Our next release, version 9.4 - which is being released ASAP - is compatible up to PHP8.4.


Nick Hendler

Offline

 

Board footer