Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error with LHS menu #3858

Open
bradsyd opened this issue Sep 9, 2023 · 4 comments
Open

Error with LHS menu #3858

bradsyd opened this issue Sep 9, 2023 · 4 comments

Comments

@bradsyd
Copy link

bradsyd commented Sep 9, 2023

Steps to reproduce

When logging in the menu items on the pages TASKS and INFORMATION do not work.
The links all point to that same page.
If I manually change the page to another poage I can navigate as long as I don't click on the 2 menu items above.

Expected behaviour

Tell us what should happen
When logging in the menu items on the pages TASKS and INFORMATION do not work.
The links all point to that same page.
If I manually change the page to another poage I can navigate as long as I don't click on the 2 menu items above.

Actual behaviour

Tell us what happens instead

Server configuration

Operating system:

Web server:

Database:
what exactly do you want here

PHP version:
8.2

Teampass version:
3.0.10.45

Teampass configuration file:

tp.config.txt

Updated from an older Teampass or fresh install:
PLEASE attach to this issue the file /includes/config/tp.config.php.
FRESH install

Client configuration

Browser:
Brave AND Chrome

Operating system:
Windows 10

Logs

Web server error log

No errors

#### Log from the web-browser developer console (CTRL + SHIFT + i)

Insert the log here and especially the answer of the query that failed.

https://www.xxxxx.com/teampass/index.php?page=admin
Request Method:
GET
Status Code:
500
Remote Address:
43.250.142.59:443
Referrer Policy:
strict-origin-when-cross-origin

@bradsyd
Copy link
Author

bradsyd commented Sep 9, 2023

SERVER ERROR

[09-Sep-2023 10:37:34 Australia/Sydney] PHP Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /home/groupsol/public_html/teampass/sources/core.php on line 375
[09-Sep-2023 10:37:34 Australia/Sydney] PHP Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /home/groupsol/public_html/teampass/sources/core.php on line 375
[09-Sep-2023 10:37:34 Australia/Sydney] PHP Fatal error: Uncaught Error: Call to undefined function TiBeN\CrontabManager\exec() in /home/groupsol/public_html/teampass/includes/libraries/TiBeN/CrontabManager/CrontabAdapter.php:73
Stack trace:
#0 /home/groupsol/public_html/teampass/includes/libraries/TiBeN/CrontabManager/CrontabRepository.php(169): TiBeN\CrontabManager\CrontabAdapter->readCrontab()
#1 /home/groupsol/public_html/teampass/includes/libraries/TiBeN/CrontabManager/CrontabRepository.php(61): TiBeN\CrontabManager\CrontabRepository->readCrontab()
#2 /home/groupsol/public_html/teampass/pages/admin.php(182): TiBeN\CrontabManager\CrontabRepository->__construct()
#3 /home/groupsol/public_html/teampass/index.php(966): include('/home/groupsol/...')
#4 {main}
thrown in /home/groupsol/public_html/teampass/includes/libraries/TiBeN/CrontabManager/CrontabAdapter.php on line 73

@nilsteampassnet
Copy link
Owner

Something is broken in the installation.
Try to overwrite the files by using latest commit.

@pstevens71
Copy link

pstevens71 commented Dec 31, 2023

I have this same issue. Both on a fresh install and an upgrade install. The lh side menu or the user menu does not work.

The only error message I get is this in console. I've checked for PHP errors and there is something there about crontab, but I don't think it's relevant. I reset my permissions, not sure what else to try.

[30-Dec-2023 21:04:00 America/Toronto] PHP Fatal error: Uncaught Error: Call to undefined function TiBeN\CrontabManager\exec() in /home/xxxxxxxxxx/public_html/tptest.xxxxxxxxxxxxxxxx.com/teampass/vendor/tiben/crontab-manager/src/CrontabManager/CrontabAdapter.php:73

Failed to load resource: the server responded with a status of 500 ()

@pstevens71
Copy link

pstevens71 commented Dec 31, 2023

SOLVED!!!!

The issue is line 73 calls the exec() function in PHP. My Godaddy VPS had this disabled by default. To enable:

  1. Go to Multi PHP Manager
  2. Beside PHP-FPM click on Manage Settings
  3. Click on user domain settings
  4. click the appropriate domain and PHP-FPM settings
  5. you can click on the "x" exec() to remove it from disabled function.
  6. restart your server, problem solved.
    image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants