Error loading CGUserDirectory in admin
Posted: Mon Dec 14, 2020 3:26 am
I not sure whats going on but i've installed CGUserDirectory on a site and the module does only partial load in admin. (only html body loads).
I've also have same version CMSMS, PHP, CGUserDirectory and CGExtensions on a different website and host and here CGUserDirectory loads with no problems
I've tried enabling debug and got this:
Cms Version: 2.2.15
Installed Modules:
CGExtensions: 1.65.2
CGFEURegister: 1.0.4
CGSimpleSmarty: 2.2.1
CGUserDirectory: 1.5.1
FrontEndUsers: 3.2.2
Config Information:
php_memory_limit:
max_upload_size: 256000000
url_rewriting: mod_rewrite
page_extension:
query_var: page
auto_alias_content: true
locale:
set_names: true
timezone: Europe/Copenhagen
permissive_smarty: true
Php Information:
phpversion: 7.4.13
md5_function: On (True)
json_function: On (True)
gd_version: 2
tempnam_function: On (True)
magic_quotes_runtime: Off (False)
E_ALL: 24567
E_STRICT: 2048
E_DEPRECATED: 0
test_file_timedifference: No time difference found
test_db_timedifference: No time difference found
create_dir_and_file: 1
memory_limit: 2147483648
max_execution_time: 50
register_globals: Off (False)
output_buffering: On
disable_functions: disk_total_space, diskfreespace, exec, system, popen, proc_open, proc_nice, shell_exec, passthru, dl
open_basedir:
test_remote_url: Success
file_uploads: On (True)
post_max_size: 256M
upload_max_filesize: 256M
session_save_path: /tmp (0755)
session_use_cookies: On (True)
xml_function: On (True)
xmlreader_class: On (True)
check_ini_set: On (True)
curl: On
I've also have same version CMSMS, PHP, CGUserDirectory and CGExtensions on a different website and host and here CGUserDirectory loads with no problems
I've tried enabling debug and got this:
Code: Select all
Fatal error: Uncaught TypeError: trim() expects parameter 1 to be string, null given in /customers/8/1/a/mysite.dk/httpd.www/modules/CGExtensions/CGExtensions.module.php:1683 Stack trace: #0 /customers/8/1/a/mysite.dk/httpd.www/modules/CGExtensions/CGExtensions.module.php(1683): trim(NULL) #1 /customers/8/1/a/mysite.dk/httpd.www/modules/CGUserDirectory/function.admin_settings_tab.php(41): CGExtensions->CGGetPreference('detailpage') #2 /customers/8/1/a/mysite.dk/httpd.www/modules/CGUserDirectory/action.defaultadmin.php(82): include('/customers/8/1/...') #3 /customers/8/1/a/mysite.dk/httpd.www/lib/classes/class.CMSModule.php(1403): include('/customers/8/1/...') #4 /customers/8/1/a/mysite.dk/httpd.www/modules/CGExtensions/CGExtensions.module.php(623): CMSModule->DoAction('defaultadmin', 'm1_', Array, '') #5 /customers/8/1/a/mysite.dk/httpd.www/lib/classes/class.CMSModule.php(1479): CGExtensions->DoAction('defaultadmin', 'm1_', Array, '') #6 /customers/8/1/a/mysite.dk/httpd.www/admin/moduleinterface.ph in /customers/8/1/a/mysite.dk/httpd.www/modules/CGExtensions/CGExtensions.module.php on line 1683Installed Modules:
CGExtensions: 1.65.2
CGFEURegister: 1.0.4
CGSimpleSmarty: 2.2.1
CGUserDirectory: 1.5.1
FrontEndUsers: 3.2.2
Config Information:
php_memory_limit:
max_upload_size: 256000000
url_rewriting: mod_rewrite
page_extension:
query_var: page
auto_alias_content: true
locale:
set_names: true
timezone: Europe/Copenhagen
permissive_smarty: true
Php Information:
phpversion: 7.4.13
md5_function: On (True)
json_function: On (True)
gd_version: 2
tempnam_function: On (True)
magic_quotes_runtime: Off (False)
E_ALL: 24567
E_STRICT: 2048
E_DEPRECATED: 0
test_file_timedifference: No time difference found
test_db_timedifference: No time difference found
create_dir_and_file: 1
memory_limit: 2147483648
max_execution_time: 50
register_globals: Off (False)
output_buffering: On
disable_functions: disk_total_space, diskfreespace, exec, system, popen, proc_open, proc_nice, shell_exec, passthru, dl
open_basedir:
test_remote_url: Success
file_uploads: On (True)
post_max_size: 256M
upload_max_filesize: 256M
session_save_path: /tmp (0755)
session_use_cookies: On (True)
xml_function: On (True)
xmlreader_class: On (True)
check_ini_set: On (True)
curl: On