FrontEndUsers 2.14.3.2 & JM_Forum error

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Locked
User avatar
rotezecke
Power Poster
Power Poster
Posts: 411
Joined: Fri Apr 18, 2008 9:34 pm
Location: Nimbin, Australia

FrontEndUsers 2.14.3.2 & JM_Forum error

Post by rotezecke »

Hi there, I only recently started using FEU (2.14.3.1) & JM_Forum, on 2.2.10 and PHP 7.2.19.
Full disclosure, there's a custom module in place that logs into FEU via API but I believe this is not related as I also tested the FEU native login.

I just updated FEU to 2.14.3.2 and things don't work anymore. I can see the user being logged in (CMSMS backend and database), and even the content page with

Code: Select all

{if feu_smarty::is_user_memberof('mygroup')}{JM_Forum}{/if}
still works as expected, but then clicking on a forum/post or anything results in 'this is a private forum'.
I drilled into it for a bit, and I think the JM_Forum method 'generate_user_obj()' returns nothing FEU related. That method is full of calls to FEU, e.g. 'self::$_feu_mod->LoggedInId();' etc, but nothing is returned. Does anyone run latest FEU with JM_Forum? given that there is a custom module in place, i cannot really rule out problems on my end, however, i commented out the call to that custom module AND/OR logged in using FEU front end form - and the results were even worse, now the test {if feu_smarty::is_user_memberof('mygroup')} fails, which at least still worked via API login.
Anyone else with problems with latest FEU?


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

Cms Version: 2.2.10

Installed Modules:

CGBlog: 1.15.8
CGExtensions: 1.63.1
CGSimpleSmarty: 2.2.1
CGSmartImage: 1.22.5
CMSContentManager: 1.1.7
CMSMailer: 6.2.14
Captcha: 1.0
DesignManager: 1.1.6
FileManager: 1.6.8
FormBuilder: 0.8.1.6
FrontEndUsers: 2.14.3.1
JM_Forum: 1.1.rc.1
JQueryTools: 1.4.2
LISE: 1.3.1
LISEaccommodationdb: 1.3.1
LISEinstallersdb: 1.3.1
ModuleManager: 2.1.6
Navigator: 1.0.9
News: 2.51.5
RPCTools: 1.0.b.1
Search: 1.51.6


Config Information:

php_memory_limit:
max_upload_size: 64000000
url_rewriting: mod_rewrite
page_extension: .html
query_var: page
auto_alias_content: true
locale:
set_names: true
timezone: Australia/Sydney
permissive_smarty: true


Php Information:

phpversion: 7.2.19-1+0~20190531112732.22+jessie~1.gbp75765b
md5_function: On (True)
json_function: On (True)
gd_version: 2
tempnam_function: On (True)
magic_quotes_runtime: Off (False)
E_ALL: 22527
E_STRICT: 0
E_DEPRECATED: 0
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_wifcontinued, pcntl_wexitstatus, pcntl_wtermsig, pcntl_wstopsig, pcntl_signal, pcntl_signal_get_handler, pcntl_signal_dispatch, pcntl_get_last_error, pcntl_strerror, pcntl_sigprocmask, pcntl_sigwaitinfo, pcntl_sigtimedwait, pcntl_exec, pcntl_getpriority, pcntl_setpriority, pcntl_async_signals,
open_basedir:
test_remote_url: Success
file_uploads: On (True)
post_max_size: 8M
upload_max_filesize: 64M
session_save_path: /var/lib/php/sessions (1733)
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: 0
php_opcache: On (True)
smarty_cache: Off (False)
smarty_compilecheck: On (True)
auto_clear_cache_age: On (True)

Server Information:

Server Software: Apache/2.4.10 (Debian)
Server Api: apache2handler
Server Os: Linux 3.16.0-8-amd64 On x86_64
Server Db Type: MySQL (mysqli)
Server Db Version: 5.5.62
Server Db Grants: Found a "GRANT ALL" statement that appears to be suitable


Permission Information:

tmp: /var/www/cmsms/tmp (0777)
tmp_cache: /var/www/cmsms/tmp/cache (0777)
templates_c: /var/www/cmsms/tmp/templates_c (0777)
modules: /var/www/cmsms/modules (0777)
uploads: /var/www/cmsms/uploads (0777)
File Creation Mask (umask): /var/www/cmsms/tmp/cache (0777)
config_file: 0777

----------------------------------------------
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm
Location: Fernie British Columbia, Canada

Re: FrontEndUsers 2.14.3.2 & JM_Forum error

Post by calguy1000 »

The 2.14.x versions of FEU added the {feu_user_options} smarty plugin, requires PHP 7.2.x, and has bug fixes. The API was not changed in any meaningful way.

Version 2.14.3.2 and 2.14.3.1 were very minor bug fixes.

So I don't think the issue you are seeing is related to the newer versions of FEU.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
User avatar
rotezecke
Power Poster
Power Poster
Posts: 411
Joined: Fri Apr 18, 2008 9:34 pm
Location: Nimbin, Australia

Re: FrontEndUsers 2.14.3.2 & JM_Forum error

Post by rotezecke »

I had another look just now, and I ran into the same issue again. I disabled my custom module, and only used FEU standard login - which works in 2.14.3.1 but not in 2.14.3.2.
Short story: I cannot log in. But I'm pretty sure I was logged in for a split second, because a) there's a record in admin log, and b) the redirect goes to the page specified in FEU settings: PageID/Alias to jump to after login .

If I change the redirect setting to a page outside of CMSMS (i have a few aliases that redirect to a different CMS) - then on first visit of a CMSMS page, I am logged in (can also see in FEU backend). On next visit/click of CMSMS page, I am logged out.

Note: the title of the thread is a bit misleading - JM_Forum is not involved, in fact its API calls correctly return nothing as the user is not logged in anymore.

I have updated some modules since my last post, rolling back from FEU 2.14.3.2 to 2.14.3.1 fixes the issue. I installed FEU both via Module Manager and also via tar ball download. Same result.



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

Cms Version: 2.2.10

Installed Modules:

CGBlog: 1.15.11
CGExtensions: 1.63.3
CGSimpleSmarty: 2.2.1
CGSmartImage: 1.22.7
CMSContentManager: 1.1.7
CMSMailer: 6.2.14
Captcha: 1.0
DesignManager: 1.1.6
FileManager: 1.6.8
FormBuilder: 0.8.1.6
FrontEndUsers: 2.14.3.2
JM_Forum: 1.1.rc.1
JQueryTools: 1.4.2
LISE: 1.3.1
LISEaccommodationdb: 1.3.1
LISEinstallersdb: 1.3.1
ModuleManager: 2.1.6
Navigator: 1.0.9
News: 2.51.6
RPCTools: 1.0.b.1
Search: 1.51.6


Config Information:

php_memory_limit:
max_upload_size: 64000000
url_rewriting: mod_rewrite
page_extension: .html
query_var: page
auto_alias_content: true
locale:
set_names: true
timezone: Australia/Sydney
permissive_smarty: true


Php Information:

phpversion: 7.2.19-1+0~20190531112732.22+jessie~1.gbp75765b
md5_function: On (True)
json_function: On (True)
gd_version: 2
tempnam_function: On (True)
magic_quotes_runtime: Off (False)
E_ALL: 22527
E_STRICT: 0
E_DEPRECATED: 0
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_wifcontinued, pcntl_wexitstatus, pcntl_wtermsig, pcntl_wstopsig, pcntl_signal, pcntl_signal_get_handler, pcntl_signal_dispatch, pcntl_get_last_error, pcntl_strerror, pcntl_sigprocmask, pcntl_sigwaitinfo, pcntl_sigtimedwait, pcntl_exec, pcntl_getpriority, pcntl_setpriority, pcntl_async_signals,
open_basedir:
test_remote_url: Success
file_uploads: On (True)
post_max_size: 8M
upload_max_filesize: 64M
session_save_path: /var/lib/php/sessions (1733)
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: 0
php_opcache: On (True)
smarty_cache: Off (False)
smarty_compilecheck: On (True)
auto_clear_cache_age: On (True)

Server Information:

Server Software: Apache/2.4.10 (Debian)
Server Api: apache2handler
Server Os: Linux 3.16.0-8-amd64 On x86_64
Server Db Type: MySQL (mysqli)
Server Db Version: 5.5.62
Server Db Grants: Found a "GRANT ALL" statement that appears to be suitable


Permission Information:

tmp: /var/www/cmsms/tmp (0777)
tmp_cache: /var/www/cmsms/tmp/cache (0777)
templates_c: /var/www/cmsms/tmp/templates_c (0777)
modules: /var/www/cmsms/modules (0777)
uploads: /var/www/cmsms/uploads (0777)
File Creation Mask (umask): /var/www/cmsms/tmp/cache (0777)
config_file: 0777

----------------------------------------------
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm
Location: Fernie British Columbia, Canada

Re: FrontEndUsers 2.14.3.2 & JM_Forum error

Post by calguy1000 »

Are you by any chance using the 'keepalive cookie' ?
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
User avatar
rotezecke
Power Poster
Power Poster
Posts: 411
Joined: Fri Apr 18, 2008 9:34 pm
Location: Nimbin, Australia

Re: FrontEndUsers 2.14.3.2 & JM_Forum error

Post by rotezecke »

No, I'm not using keep alive cookie. and i can confirm via console that there's no cookie from FEU.

Session timeout is 1440,
User Expiry Interval:0,
Times for forced logout: [empty]
Exclude users that have been active in (minutes): 0

Allow users to login more than once: Yes
Clear history entries older than N days: 0

One other thing i noticed is that even in the working version 2.14.3.1, the session is not refreshed. after 1440s I get logged out, regardless of my activity in CMSMS. I was logged into the backend as well (same browser) during my tests. i have not checked whether NOT being logged into backend (in same browser) makes any difference.
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm
Location: Fernie British Columbia, Canada

Re: FrontEndUsers 2.14.3.2 & JM_Forum error

Post by calguy1000 »

I found it. It was a stupid error that I did not originally see in the user expiry stuff.
so I worked around it another way. which was problematic.

So FEU 2.14.3.4 is now available in the forge.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Locked

Return to “Modules/Add-Ons”