CMS MADE SIMPLE FORGE

Company Directory

 

[#12108] PHP Fatal Error editing entries after adding type checking to CGExtension

avatar
Created By: Tristan (tristan)
Date Submitted: Mon Aug 19 08:04:34 -0400 2019

Assigned To: Robert Campbell (calguy1000)
Version: 1.23.10
CMSMS Version: 2.2.10
Severity: Critical
Resolution: Fixed
State: Open
Summary:
PHP Fatal Error editing entries after adding type checking to CGExtension
Detailed Description:
After upgrading CGExtensions to 1.64.6 editing company entries fail with this
error:

AH01071: Got error 'PHP message: PHP Fatal error:  Uncaught TypeError: Argument
1 passed to cge_array::to_object() must be of the type array, object given,
called in
/home/andrea/domains/domain.com/public_html/entw/modules/CompanyDirectory/action.editcompany.php
on line 239 and defined in
/home/andrea/domains/domain.com/public_html/entw/modules/CGExtensions/lib/class.cge_array.php:363\nStack
trace:\n#0
/home/andrea/domains/domain.com/public_html/entw/modules/CompanyDirectory/action.editcompany.php(239):
cge_array::to_object(Object(stdClass))\n#1
/home/andrea/domains/domain.com/public_html/entw/lib/classes/class.CMSModule.php(1403):
include('/home/andrea/do...')\n#2
/home/andrea/domains/domain.com/public_html/entw/modules/CGExtensions/CGExtensions.module.php(611):
CMSModule->DoAction('editcompany', 'm1_', Array, '')\n#3
/home/andrea/domains/domain.com/public_html/entw/lib/classes/class.CMSModule.php(1479):
...\n', referer: https://entw.domain.com/


History

Comments
avatar
Date: 2019-10-03 09:57
Posted By: olivier gras (olo)

I got the same exact problem here, any idea why it happens / how to fix this ?
I am reinstalling my entire site to a dev environment, will try to update to
later version, see if it fix the problem.
      
avatar
Date: 2019-10-04 08:52
Posted By: Robert Campbell (calguy1000)

fixed in the new version of CompanyDirectory
      
avatar
Date: 2019-10-06 06:42
Posted By: Tristan (tristan)

Great, will there also be a fix for 1.23.13?
      
Updates

Updated: 2019-10-04 08:52
resolution_id: => 7