500 error with CGContentUtils on content edit after upgrade

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
User avatar
paulbaker
Dev Team Member
Dev Team Member
Posts: 1465
Joined: Sat Apr 18, 2009 10:09 pm
Location: Maidenhead, UK
Contact:

500 error with CGContentUtils on content edit after upgrade

Post by paulbaker »

I would be grateful for some pointers to solve this.

Upgraded from 2.2.10 > 2.2.12. Upgraded a handful of modules, apparently without issue, after that. No modules waiting for upgrade now.

Front end appears to be working OK. Went to check the admin area. Content Manager > Any page gives 500 error.

Error log shows:

Code: Select all

[22-Nov-2019 16:26:09 Europe/London] PHP Fatal error:  Uncaught TypeError: explode() expects parameter 2 to be string, null given in /home/cthuk/public_html/cp/modules/CGContentUtils/CGContentUtils.module.php:441
Stack trace:
#0 /home/cthuk/public_html/cp/modules/CGContentUtils/CGContentUtils.module.php(441): explode(',', NULL)
#1 /home/cthuk/public_html/cp/lib/classes/contenttypes/Content.inc.php(605): CGContentUtils->GetContentBlockFieldInput('Media-Types', NULL, Array, false, Object(Content))
#2 /home/cthuk/public_html/cp/lib/classes/contenttypes/Content.inc.php(642): Content->_display_module_block('Media-Types', Array, NULL, false)
#3 /home/cthuk/public_html/cp/lib/classes/contenttypes/Content.inc.php(460): Content->display_content_block('Media-Types', Array, NULL, false)
#4 /home/cthuk/public_html/cp/lib/classes/class.ContentBase.php(2054): Content->display_single_element('Media-Types', false)
#5 /home/cthuk/public_html/cp/modules/CMSContentManager/action.admin_editcontent.php(293): ContentBase->GetTabElements('Media Types', false)
#6 /home/cthuk/public_html in /home/cthuk/public_html/cp/modules/CGContentUtils/CGContentUtils.module.php on line 441

Cleared cache, no change. Nothing relevant in Admin Log.


----------------------------------------------

Cms Version: 2.2.12

Installed Modules:

AdminSearch: 1.0.4
CGBlog: 1.15.13
CGContentUtils: 2.5.3
CGExtensions: 1.64.10
CGHeadMaster: 1.0.16
CGSimpleSmarty: 2.2.1
CGSmartImage: 1.22.7
CGSnapshot: 1.4
CMSContentManager: 1.1.8
CMSMailer: 6.2.14
CmsJobManager: 0.1.3
DesignManager: 1.1.6
FileManager: 1.6.9.1
FilePicker: 1.0.4.1
FormBuilder: 1.0.2
Gallery: 2.4.1
JQueryTools: 1.4.2
MenuManager: 1.50.3
MicroTiny: 2.2.4
ModuleManager: 2.1.7
Navigator: 1.0.9
News: 2.51.7
Search: 1.51.7
SimpleSiteInfo: 3.5.1

Config Information:

php_memory_limit:
max_upload_size: 2000000
url_rewriting: mod_rewrite
page_extension: /
query_var: page
auto_alias_content: true
locale:
set_names: true
timezone: Europe/London
permissive_smarty: false

Php Information:

phpversion: 7.2.24
md5_function: On (True)
json_function: On (True)
gd_version: 2
tempnam_function: On (True)
magic_quotes_runtime: Off (False)
E_ALL: 32767
E_STRICT: 2048
E_DEPRECATED: 8192
test_file_timedifference: No time difference found
test_db_timedifference: No time difference found
create_dir_and_file: 1
memory_limit: 128M
max_execution_time: 30
register_globals: Off (False)
output_buffering: 4096
disable_functions:
open_basedir:
test_remote_url: Success
file_uploads: On (True)
post_max_size: 8M
upload_max_filesize: 2M
session_save_path: /opt/alt/php72/var/lib/php/session (0700)
session_use_cookies: On (True)
xml_function: On (True)
xmlreader_class: On (True)
check_ini_set: On (True)
curl: On

Performance Information:

allow_browser_cache: Off (False)
browser_cache_expiry: 60
php_opcache: Off (False)
smarty_cache: Off (False)
smarty_compilecheck: Off (False)
auto_clear_cache_age: On (True)
Server Information:

Server Software: Apache
Server Api: cgi-fcgi
Server Os: Linux 3.10.0-962.3.2.lve1.5.25.10.el7.x86_64 On x86_64
Server Db Type: MySQL (mysqli)
Server Db Version: 10.1.41
Server Db Grants: Found a "GRANT ALL" statement that appears to be suitable

Permission Information:

tmp: /home/cthuk/public_html/cp/tmp (0755)
tmp_cache: /home/cthuk/public_html/cp/tmp/cache (0755)
templates_c: /home/cthuk/public_html/cp/tmp/templates_c (0755)
modules: /home/cthuk/public_html/cp/modules (0755)
uploads: /home/cthuk/public_html/cp/uploads (0755)
File Creation Mask (umask): /home/cthuk/public_html/cp/tmp/cache (0755)
config_file: 0444
----------------------------------------------

Thank you :)
To copy System Information to the forum:
https://docs.cmsmadesimple.org/troubles ... nformation

CMS Made Simple Geekmoots attended:
Nottingham, UK 2012 | Ghent, Belgium 2015 | Leicester, UK 2016
User avatar
DIGI3
Dev Team Member
Dev Team Member
Posts: 1625
Joined: Wed Feb 25, 2009 4:25 am
Location: Victoria, BC

Re: 500 error with CGContentUtils on content edit after upgr

Post by DIGI3 »

I think this is actually a CGExtensions bug, fixed in svn for the next release.
Not getting the answer you need? CMSMS support options
User avatar
paulbaker
Dev Team Member
Dev Team Member
Posts: 1465
Joined: Sat Apr 18, 2009 10:09 pm
Location: Maidenhead, UK
Contact:

Re: 500 error with CGContentUtils on content edit after upgr

Post by paulbaker »

Thanks DIGI3 I installed that but the behaviour I am seeing is the same - I still have the problem. :'(
To copy System Information to the forum:
https://docs.cmsmadesimple.org/troubles ... nformation

CMS Made Simple Geekmoots attended:
Nottingham, UK 2012 | Ghent, Belgium 2015 | Leicester, UK 2016
Post Reply

Return to “CMSMS Core”