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.
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.
Offline
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:
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.
Offline