CMS MADE SIMPLE FORGE

Cart2

 

[#12033] Cart2 + CGExtensions 1.62.8 + Php 7.2.1

avatar
Created By: Hyun Kelle (SwBd)
Date Submitted: Sun May 05 05:20:53 -0400 2019

Assigned To: Robert Campbell (calguy1000)
Version: 1.4.2
CMSMS Version: 2.2.10
Severity: Major
Resolution: Fixed
State: Open
Summary:
Cart2 + CGExtensions 1.62.8 + Php 7.2.1
Detailed Description:
Hello, 

Since the update of CGextensions the cart2 module generates this error in
Back-end.
Unless I'm mistaken, no problem in front-end (tested on 3 websites)

Best regards

Fatal error: Uncaught TypeError: Argument 4 passed to
CGExtensions::DisplayImage() must be of the type integer or null, string given,
called in /home/devsiteaal/www/modules/CGExtensions/lib/class.smarty_plugins.php
on line 316 and defined in
/home/devsiteaal/www/modules/CGExtensions/CGExtensions.module.php:1185 Stack
trace:
#0 /home/devsiteaal/www/modules/CGExtensions/lib/class.smarty_plugins.php(316):
CGExtensions->DisplayImage('icons/system/in...', 'What is this?', '', '', '')
#1
home/devsiteaal/www/tmp/templates_c/Cart2^96531508b4acca650c9809318f88a161a7b0b9c3_0.module_file_tpl.Cart2;admin_preferences_tab.tpl.php(36):
CGExtensions\smarty_plugins->smarty_function_helptag(Array,
Object(CMS_Smarty_Template))
#2
/home/devsiteaal/www/lib/smarty/sysplugins/smarty_template_resource_base.php(128):
content_5ccea991856671_68062626(Object(CMS_Smarty_Template))
#3 /home/devsiteaal/www/lib/smarty/sysplugins/smarty_template_compiled.php(172):
Smarty_Template_Resource_Base->getRenderedTemplateCode(Object(CMS_Smarty_Template))
#4 /ho in /home/devsiteaal/www/modules/CGExtensions/CGExtensions.module.php on
line 1185


History

Comments
avatar
Date: 2019-05-13 13:33
Posted By: Hyun Kelle (SwBd)

To correct the problem, modify the lines
297,298,306,307 in CGExtensions/lib/Class.smarty_plugins file, replace '' with
NULL
$ width = ''; -> $ width = NULL;
$ height = ''; -> $ height = NULL;

Same in the file CGExtensions/CGExtensions.module.php with line 1185

function DisplayImage (string $ image, $ string $ alt = '', string $ class = '',
int $ width = '', $ height = '')

becomes

function DisplayImage (string $ image, string $ alt = '', string $ class = '',
int $ width = NULL, $ height = NULL)
      
avatar
Date: 2019-05-14 12:15
Posted By: Robert Campbell (calguy1000)

should be fixed with CGExtensions 1.62.9
      
Updates

Updated: 2019-05-14 12:15
resolution_id: 5 => 7

Updated: 2019-05-05 06:25
description: Hello, hello, since the update of CGextensions the cart2 module generates this error in Back-end. Unless I'm mistaken, no problem in front-end (tested on 3 websites) Fatal error: Uncaught TypeError: Argument 4 passed to CGExtensions::DisplayImage( => Hello, Since the update of CGextensions the cart2 module generates this error in Back-end. Unless I'm mistaken, no problem in front-end (tested on 3 websites) Best regards Fatal error: Uncaught TypeError: Argument 4 passed to CGExtensions::Disp
resolution_id: => 5