mirror of
https://github.com/cypht-org/cypht.git
synced 2026-04-25 21:15:56 +03:00
[GH-ISSUE #1439] 💬 [Question]'functional login' possible on 2.4? #656
Labels
No labels
2fa
I18N
PGP
Security
Security
account
advanced_search
advanced_search
announcement
api_login
authentication
awaiting feedback
blocker
bug
bug
bug
calendar
config
contacts
core
core
devops
docker
docs
duplicate
dynamic_login
enhancement
epic
feature
feeds
framework
github
github
gmail_contacts
good first issue
help wanted
history
history
imap
imap_folders
inline_message
installation
keyboard_shortcuts
keyboard_shortcuts
ldap_contacts
mobile
need-ssh-access
new module set
nux
pop3
profiles
pull-request
question
refactor
release
research
saved_searches
smtp
strategic
tags
tests
themes
website
wordpress
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/cypht#656
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @mcbmcb0 on GitHub (Jan 30, 2025).
Original GitHub issue: https://github.com/cypht-org/cypht/issues/1439
Originally assigned to: @Baraka24 on GitHub.
💬 Question
On debain 12 vps I’m moving from 1.x to 2.4. This time, I have cypht in /usr/local/share/ cypht2 (not /var/www/cypht). I’ve used the ‘functional login’ and embedded cypht in an iframe on the same domain. This worked well on 1.x . But on 2.4 with the functional login section of this: https://github.com/cypht-org/cypht/wiki/API-Login, when I try:
I get:
Fatal error: Cannot redeclare get_special_folders() (previously declared in /usr/local/share/cypht2/modules/core/functions.php:591) in /usr/local/share/cypht2/modules/core/functions.php on line 591Maybe something is being
requiredagain? I have also removedidle_timerfrom modules,DISABLE_EMPTY_SUPERGLOBALS=true,DISABLE_FINGERPRINT=trueas these steps appeared necessary in 1.x for this login.Without the functional login attempt cypht loads fine to the login screen and works properly when logged in, so permisisons, symlinks env and settings appear good to go.
Any suggestions on what is going wrong here?
Thanks!
@Baraka24 commented on GitHub (Feb 2, 2025):
Hello @mcbmcb0,
I tried to reproduce the issue you're encountering, but I wasn't able to replicate it on my side. In my case, the
cypht_loginfunction was not being executed in/modules/api_login/api.php, though the inclusion works fine in Cypht 2.x. However, it does work as expected in Cypht 1.x.Since we’re not seeing the same results, it might be beneficial for us to collaborate further. I’d suggest joining the Cypht Community so we can discuss this issue more thoroughly. Additionally, we could plan a screen share session to troubleshoot and provide more detailed assistance.
@mcbmcb0 commented on GitHub (Feb 4, 2025):
Hi and thanks for having a look at this. Strange you could include
/modules/api_login/api.phpbut not execute the login function, which would then be available - i wonder why? It is at the include (require) stage where I get the fatal error. Fyi I am using db session and settings due to session conflict with other code. I’m wondering if there is some autoloader conflict with other code on my site.I will try and reinstall everything, crank up the error logging and try again. And join you on gitter with my results.
I’d also be interested if anyone else has managed the functional login with 2.x
Thanks again.
@Baraka24 commented on GitHub (Oct 2, 2025):
Thanks for the update. We'll wait for your results on Gitter. For now, I'll close this issue, but feel free to reopen if the problem persists.