CMS MADE SIMPLE FORGE

CGBlog

 

[#12089] Custom fields (image upload) breaks CGBlog

avatar
Created By: Oliver Coningham (aztecmedia)
Date Submitted: Thu Aug 01 11:29:21 -0400 2019

Assigned To: Robert Campbell (calguy1000)
Version: 1.15.12
CMSMS Version: 2.2.10
Severity: Critical
Resolution: None
State: Open
Summary:
Custom fields (image upload) breaks CGBlog
Detailed Description:
I've added a custom field definition for an image. When I save the post, it
saves, but doesn't save the image and throws up this error:

Fatal error: Uncaught Error: Using $this when not in object context in
/mycoolwebsite/modules/CGExtensions/lib/class.cge_setup.php:156 Stack trace: #0
/mycoolwebsite/modules/CGExtensions/lib/class.cge_setup.php(143):
cge_setup::create_uploader('', '/mycoolwebsite...') #1
/mycoolwebsite/modules/CGBlog/lib/class.cgblog_utils.php(96):
cge_setup::get_uploader('', '/mycoolwebsite...') #2
/mycoolwebsite/modules/CGBlog/action.admin_editarticle.php(228):
cgblog_utils::handle_uploaded_image('m1_', 1, '1', Array, '') #3
/mycoolwebsite/lib/classes/class.CMSModule.php(1403):
include('/mycoolwebsite...') #4
/mycoolwebsite/modules/CGExtensions/CGExtensions.module.php(607):
CMSModule->DoAction('admin_editartic...', 'm1_', Array, '') #5
/mycoolwebsite/lib/classes/class.CMSModule.php(1479):
CGExtensions->DoAction('admin_editartic...', 'm1_', Array, '') #6
/mycoolwebsite/moduleinterface.php(74): CMSM in
/mycoolwebsite/modules/CGExtensions/lib/class.cge_setup.php on line 156


History