Uncaught LogicException when trying to manage FEU

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
peram
Forum Members
Forum Members
Posts: 29
Joined: Mon May 09, 2005 11:39 am

Uncaught LogicException when trying to manage FEU

Post by peram »

hi all.

After installing FEU and all need requirements I get the following error when clicking on "Frontend User Management" with debug enabled :

Code: Select all

Users
User History
Admin
User Properties
Groups

Fatal error: Uncaught LogicException: FrontEndUsers\InternalCachingManipulator does not have a method entitled get_utils in /home/foykano/www/modules/FrontEndUsers/lib/class.UserManipulatorInterface.php:18 Stack trace: #0 [internal function]: FrontendUsers\UserManipulatorInterface->__call('get_utils', Array) #1 /home/foykano/www/modules/FrontEndUsers/lib/class.UserManipulatorInterface.php(20): call_user_func_array(Array, Array) #2 [internal function]: FrontendUsers\UserManipulatorInterface->__call('get_utils', Array) #3 /home/foykano/www/modules/FrontEndUsers/lib/class.UserManipulatorInterface.php(20): call_user_func_array(Array, Array) #4 [internal function]: FrontendUsers\UserManipulatorInterface->__call('get_utils', Array) #5 /home/foykano/www/modules/FrontEndUsers/lib/class.UserManipulatorInterface.php(20): call_user_func_array(Array, Array) #6 [internal function]: FrontendUsers\UserManipulatorInterface->__call('get_utils', Array) #7 /home/foykano/www/modules/FrontEndUsers/lib/class.UserManipulatorInterface.php(20): c in /home/foykano/www/modules/FrontEndUsers/lib/class.UserManipulatorInterface.php on line 18
System information is as follows :

Code: Select all

Cms Version: 2.2.14
Installed Modules:
AdminSearch: 1.0.5
CGCalendar: 2.6.2
CGContentUtils: 2.5.4
CGExtensions: 1.65.2
CGSimpleSmarty: 2.2.1
CGUserDirectory: 1.5.1
CMSContentManager: 1.1.9
CmsJobManager: 0.1.3
DesignManager: 1.1.8
FileManager: 1.6.11
FilePicker: 1.0.4.1
FrontEndUsers: 3.2.2
JQueryTools: 1.4.2
MenuManager: 1.50.3
MicroTiny: 2.2.4
ModuleManager: 2.1.7
Navigator: 1.0.9
News: 2.51.10
Search: 1.51.8
TinyMCE: 3.3.2
Uploads: 1.26.2

Config Information:
php_memory_limit:
max_upload_size: 200000000
url_rewriting: none
page_extension:
query_var: page
auto_alias_content: true
locale:
set_names: true
timezone: Europe/Oslo
permissive_smarty: false

Php Information:
phpversion: 7.3.18
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: pcntl_alarm, pcntl_fork, pcntl_waitpid, pcntl_wait, pcntl_wifexited, pcntl_wifstopped, pcntl_wifsignaled, pcntl_wexitstatus, pcntl_wtermsig, pcntl_wstopsig, pcntl_signal, pcntl_signal_dispatch, pcntl_get_last_error, pcntl_strerror, pcntl_sigprocmask, pcntl_sigwaitinfo, pcntl_sigtimedwait, pcntl_exec, pcntl_getpriority, pcntl_setpriority
open_basedir:
test_remote_url: Success
file_uploads: On (True)
post_max_size: 200M
upload_max_filesize: 200M
session_save_path: /tmp (1777)
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: On (True)
browser_cache_expiry: 60
php_opcache: On (True)
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 4.4.0-141-generic On x86_64
Server Db Type: MySQL (mysqli)
Server Db Version: 5.7.21
Server Db Grants: Found a "GRANT ALL" statement that appears to be suitable

Permission Information:
tmp: /home/foykano/www/tmp (0755)
tmp_cache: /home/foykano/www/tmp/cache (0755)
templates_c: /home/foykano/www/tmp/templates_c (0755)
modules: /home/foykano/www/modules (0755)
uploads: /home/foykano/www/uploads (0755)
File Creation Mask (umask): /home/foykano/www/tmp/cache (0755)
config_file: 0444
anyone that can tell me how to fix this ? I have just migrated this from a vm where all works as expected to our "real" server when this error occurs.

thanks in advance
peram
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3497
Joined: Mon Nov 28, 2011 9:29 am

Re: Uncaught LogicException when trying to manage FEU

Post by velden »

Seems related though has no resolution yet: http://dev.cmsmadesimple.org/bug/view/12339
peram
Forum Members
Forum Members
Posts: 29
Joined: Mon May 09, 2005 11:39 am

Re: Uncaught LogicException when trying to manage FEU

Post by peram »

velden wrote:Seems related though has no resolution yet: http://dev.cmsmadesimple.org/bug/view/12339
seems related, agreed... Could this be PHP version related ? On the vm that works I have

Code: Select all

peram@ubuntu:/var/www/html/modules/FrontEndUsers$ php -v
PHP 7.4.9 (cli) (built: Aug  7 2020 14:29:10) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
    with Zend OPcache v7.4.9, Copyright (c), by Zend Technologies
and on the live one it is 7.3

peram
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3497
Joined: Mon Nov 28, 2011 9:29 am

Re: Uncaught LogicException when trying to manage FEU

Post by velden »

First question I should have asked: did you clear the cmsms cache after the migration from the test environment?

That's important.
peram
Forum Members
Forum Members
Posts: 29
Joined: Mon May 09, 2005 11:39 am

Re: Uncaught LogicException when trying to manage FEU

Post by peram »

velden wrote:First question I should have asked: did you clear the cmsms cache after the migration from the test environment?

That's important.
yes, and that does not help. Did it again just now with the same result

peram
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3497
Joined: Mon Nov 28, 2011 9:29 am

Re: Uncaught LogicException when trying to manage FEU

Post by velden »

Then I don't know what is happening unfortunately.
The get_utils method probably comes from CGExtensions. So maybe double check the versions of those modules are the same in both environments.
peram
Forum Members
Forum Members
Posts: 29
Joined: Mon May 09, 2005 11:39 am

Re: Uncaught LogicException when trying to manage FEU

Post by peram »

velden wrote:Then I don't know what is happening unfortunately.
The get_utils method probably comes from CGExtensions. So maybe double check the versions of those modules are the same in both environments.
Same versions of CGExtentions in both environments, but when looking at the code itself I find this :

Code: Select all

/**
     * @ignore
     * @deprecated
     */
    protected function get_utils() : internal_utils
    {
        static $_obj;
        if( !$_obj ) $_obj = new internal_utils($this->get_cge());
        return $_obj;
    }
why the "@ignore" and "@deprecated" ? I do see that they are enclosed in /* */ so assume that it is commented out, but still...Do I have some "leftovers" from an earlier installation ?

regs,
peram
peram
Forum Members
Forum Members
Posts: 29
Joined: Mon May 09, 2005 11:39 am

Re: Uncaught LogicException when trying to manage FEU

Post by peram »

hm... nothing ? Is the author of FEU still around on the forum ?

kind of frustrating to not be able to add new users.. Anyone care to enlighten me on how to update the database directly if at all possible ?

peram
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3497
Joined: Mon Nov 28, 2011 9:29 am

Re: Uncaught LogicException when trying to manage FEU

Post by velden »

I just can say I know of a few users who reverted to the latest 2.x version of FEU (or didn't upgrade to 3.x).

Seems version 2.x still works well.

It is however strange you managed to get everything up and running in your test environment and after migration it fails.
User avatar
DIGI3
Dev Team Member
Dev Team Member
Posts: 1807
Joined: Wed Feb 25, 2009 4:25 am

Re: Uncaught LogicException when trying to manage FEU

Post by DIGI3 »

The FEU developer has been absent for a bit. I'd suggest sticking with 2.x until 3.x gets some attention, or another option reveals itself.
Not getting the answer you need? CMSMS support options
peram
Forum Members
Forum Members
Posts: 29
Joined: Mon May 09, 2005 11:39 am

Re: Uncaught LogicException when trying to manage FEU

Post by peram »

hm... liking neither option here... What recommendations would you give for migrating the data from the VM where it works to the live site where it doesnt ? Would this approach work :
  • Backup up existing database on live site
  • Backup live site file content
  • backup up vm working database
  • Drop existing database
  • rename current live www-folder and create a new one in the livesite
  • reinstall CMS and needed modules on live site matching version on the vm
  • Import the exported database from the VM via phpmysqladmin into livesite database
Anyone seeing any obvious flaws in this approach ?

I think I'll try downgrading the vm's PHP version to match what the livesite has just to rule out version incompabilities before starting on this tho... Any other ideas ?

peram
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3497
Joined: Mon Nov 28, 2011 9:29 am

Re: Uncaught LogicException when trying to manage FEU

Post by velden »

Migrating a site is rather easy: https://docs.cmsmadesimple.org/moving
peram
Forum Members
Forum Members
Posts: 29
Joined: Mon May 09, 2005 11:39 am

Re: Uncaught LogicException when trying to manage FEU

Post by peram »

thnx - forgot about the documentation :)

that looks rather easy...

peram
Post Reply

Return to “Modules/Add-Ons”