Error loading CGUserDirectory in admin

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
User avatar
webform
Power Poster
Power Poster
Posts: 524
Joined: Sat Nov 25, 2006 3:39 pm

Error loading CGUserDirectory in admin

Post 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
User avatar
DIGI3
Dev Team Member
Dev Team Member
Posts: 1825
Joined: Wed Feb 25, 2009 4:25 am

Re: Error loading CGUserDirectory in admin

Post 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.
Not getting the answer you need? CMSMS support options
User avatar
webform
Power Poster
Power Poster
Posts: 524
Joined: Sat Nov 25, 2006 3:39 pm

Re: Error loading CGUserDirectory in admin

Post 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!
User avatar
webform
Power Poster
Power Poster
Posts: 524
Joined: Sat Nov 25, 2006 3:39 pm

Re: Error loading CGUserDirectory in admin

Post 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 :-\
User avatar
DIGI3
Dev Team Member
Dev Team Member
Posts: 1825
Joined: Wed Feb 25, 2009 4:25 am

Re: Error loading CGUserDirectory in admin

Post 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.
Not getting the answer you need? CMSMS support options
User avatar
webform
Power Poster
Power Poster
Posts: 524
Joined: Sat Nov 25, 2006 3:39 pm

Re: Error loading CGUserDirectory in admin

Post 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.
Post Reply

Return to “Modules/Add-Ons”