Page 1 of 1

Error loading CGUserDirectory in admin

Posted: Mon Dec 14, 2020 3:26 am
by webform
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:

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 1683
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

Re: Error loading CGUserDirectory in admin

Posted: Mon Dec 14, 2020 4:06 am
by DIGI3
Is the FEU version the same on the site that works? FEU 3.x is pretty buggy, I've been sticking with 2.14.3.4.

Re: Error loading CGUserDirectory in admin

Posted: Mon Dec 14, 2020 9:54 am
by webform
No FEU is 3.x on the new site and 2.x on the old site.

I'l try to downgrade and see if it helps!

Re: Error loading CGUserDirectory in admin

Posted: Mon Dec 14, 2020 2:58 pm
by webform
Hmm! A downgrade to FEU 2.14.3.4. didn't help. CGUserDirectory still only partial loads (even after a reinstall).

There must be something else causing the problem, maybe CGExtensions? (I can't load "Import Users" in FEU either).

This Bug Report for FEU solve the "Import User" error and if i do the equivalent "SetPreference" in CGUserDirectory function admin settings file the page loads ok :-\

Re: Error loading CGUserDirectory in admin

Posted: Mon Dec 14, 2020 3:55 pm
by DIGI3
I know you said it was the same php version as another working site, but I'd try 7.1 or 7.2 just to test.

Re: Error loading CGUserDirectory in admin

Posted: Mon Dec 14, 2020 4:00 pm
by webform
I had the same thought and tried to downgrade PHP to 7.3, which is the lowest version on the server, but i didn't help either.

Only the "hack" to the core function file seems to correct the error.