Missing top bar after installing SuiteCRM 8.4

Hi everyone,
Iā€™m trying to install SuiteCRM version 8.4 on my Ubuntu server (22.04)
After installing, at the manage page I have a problem: no top bar which often show account logged in, link to Administration v.vā€¦

Prerequisite check:

Information to connect to DB:

Installation completed success:
image

My enviroment meet requirements at:

I tried to access administration by web link: http://10.0.19.46/suitecrm/public/legacy/index.php?module=Administration


but if I click on any module like User Management, Role Managementā€¦it shows blank page:

Log in apache2/error.log:

[Sun Oct 01 04:28:02.449371 2023] [php:error] [pid 31105] [client 10.0.30.199:64996] PHP Fatal error:  Uncaught TypeError: fwrite(): Argument #1 ($stream) must be of type resource, bool given in /var/www/html/suitecrm/public/legacy/install/install_utils.php:732\nStack trace:\n#0 /var/www/html/suitecrm/public/legacy/install/install_utils.php(732): fwrite()\n#1 /var/www/html/suitecrm/public/legacy/install/install_utils.php(64): installLog()\n#2 /var/www/html/suitecrm/public/legacy/install.php(849): installerHook()\n#3 {main}\n  thrown in /var/www/html/suitecrm/public/legacy/install/install_utils.php on line 732

I follow these steps installed at:

Could anyone explain what happen I what should I do to fix this? Thank you!

Hi,
2 things to do
1: Setup Permission and Ownership for files and directories

cd /path/to/your/suitecrm
sudo chown -R www-data:www-data .
find . -type d -exec chmod 755 {} ;
find . -type f -exec chmod 644 {} ;
chmod 600 config.php

2: Increase upload_max_file_size in your PHP ini to 256MB at least

Thanks

1 Like

Hi,
Thank you for replying me soon.
I already change permission for files and directories as you said:
cd /var/www/html/suitecrm
find . -type d -exec chmod 755 {} ;
find . -type f -exec chmod 644 {} ;
Then move to cd /var/www/html/suitecrm**/public/legacy** to make change chmod 600 config.php . Is it correct if config.php stay in /public/legacy? I donā€™t see this file in /var/www/html/suitecrm

I also change upload_max_file_size to 512MB.
After all, I reboot the server, but donā€™t see any effectā€¦Still donā€™t see top bar :frowning:
Here is error.log

[Sun Oct 01 08:43:53.340478 2023] [mpm_prefork:notice] [pid 31101] AH00170: caught SIGWINCH, shutting down gracefully
[Sun Oct 01 08:43:53.548955 2023] [mpm_prefork:notice] [pid 66718] AH00163: Apache/2.4.55 (Ubuntu) configured ā€“ resuming normal operations
[Sun Oct 01 08:43:53.549058 2023] [core:notice] [pid 66718] AH00094: Command line: ā€˜/usr/sbin/apache2ā€™
[Sun Oct 01 08:44:31.705270 2023] [php:warn] [pid 66723] [client 10.0.30.199:52521] PHP Warning: Trying to access array offset on value of type bool in /var/www/html/suitecrm/public/legacy/modules/Users/User.php on line 1293, referer: http://10.0.19.46/suitecrm/public/legacy/index.php?action=Login&module=Users&login_module=Home&login_action=index
[Sun Oct 01 08:44:43.339697 2023] [php:warn] [pid 66722] [client 10.0.30.199:52522] PHP Warning: Trying to access array offset on value of type bool in /var/www/html/suitecrm/public/legacy/modules/Users/User.php on line 1293, referer: http://10.0.19.46/suitecrm/public/legacy/index.php?module=Users&action=Login&login_module=Home&login_action=index
[Sun Oct 01 08:45:13.637394 2023] [php:notice] [pid 66720] [client 10.0.30.199:52527] PHP Notice: session_start(): ps_files_cleanup_dir: opendir(/var/lib/php/sessions) failed: Permission denied (13) in /var/www/html/suitecrm/public/legacy/include/MVC/SugarApplication.php on line 623
[Sun Oct 01 08:45:21.982503 2023] [php:warn] [pid 66725] [client 10.0.30.199:52533] PHP Warning: Trying to access array offset on value of type bool in /var/www/html/suitecrm/public/legacy/modules/Users/User.php on line 1293, referer: http://10.0.19.46/suitecrm/public/legacy/index.php?action=Login&module=Users&login_module=Home&login_action=index
[Sun Oct 01 08:45:33.654138 2023] [php:notice] [pid 66720] [client 10.0.30.199:52539] PHP Notice: session_start(): ps_files_cleanup_dir: opendir(/var/lib/php/sessions) failed: Permission denied (13) in /var/www/html/suitecrm/public/legacy/include/MVC/SugarApplication.php on line 623, referer: http://10.0.19.46/suitecrm/public/legacy/index.php?module=Users&action=Login&login_module=Home&login_action=index
[Sun Oct 01 08:45:55.103854 2023] [mpm_prefork:notice] [pid 66718] AH00170: caught SIGWINCH, shutting down gracefully
[Sun Oct 01 08:46:40.089255 2023] [mpm_prefork:notice] [pid 1153] AH00163: Apache/2.4.55 (Ubuntu) configured ā€“ resuming normal operations
[Sun Oct 01 08:46:40.089992 2023] [core:notice] [pid 1153] AH00094: Command line: ā€˜/usr/sbin/apache2ā€™

Correct the permissions for session directory

sudo chown -R www-data:www-data /var/lib/php/sessions
1 Like

error.log looks better

[Sun Oct 01 09:46:15.633879 2023] [mpm_prefork:notice] [pid 1153] AH00170: caught SIGWINCH, shutting down gracefully
[Sun Oct 01 09:46:15.818933 2023] [mpm_prefork:notice] [pid 1604] AH00163: Apache/2.4.55 (Ubuntu) configured ā€“ resuming normal operations
[Sun Oct 01 09:46:15.819004 2023] [core:notice] [pid 1604] AH00094: Command line: ā€˜/usr/sbin/apache2ā€™

But the main problem top bar not showing up still existā€¦

OK,
in config.php, check the files owner and permission setting. It should be as per the recommendation.
and delete config directory at your server.

Try to access the admin area by

http://your-instance-url/index.php?module=Administration&action=index

and then do Quick repair and rebuild.

Hope it will solve the stuff

I can access the Administration by link but when I click to any module in it, it shows blank page


What should I check config.php file please tell me more detail, thank you

ā€˜default_permissionsā€™ =>
array (
ā€˜dir_modeā€™ => 1528,
ā€˜file_modeā€™ => 493,
ā€˜userā€™ => ā€˜www-dataā€™,
ā€˜groupā€™ => ā€˜www-dataā€™,
),

1 Like

delete your cache folder and access the system again

1 Like

I have changed

ā€˜userā€™ => ā€˜ā€™,
ā€˜groupā€™ => ā€˜ā€™,
to
ā€˜userā€™ => ā€˜www-dataā€™,
ā€˜groupā€™ => ā€˜www-dataā€™,
And clear all in cache folderā€¦but still cannot solve the problemā€¦

I tried to install SuiteCRM version 7.14 and everything works fineā€¦Really donā€™t understand what happened

May be it is your CRM Version Bug, good to go with 7.14

but prefer newest version 8.4 for experienceā€¦

Iā€™m glad itā€™s solved, but just for the record, this problem of not seeing the top bar is a redirect problem.

It happens when Apache rewrites are not working, and you end trying to point your browser to public/legacy directories, instead of just pointing to the root and having the framework do any redirects for you.

Morning pgr,
I still stuck with it. Could you tell me detail what should I check and how? Many thanks

You should make sure your Apache web root is the ā€œpublicā€ directory.

You should aim your browser at the top of your webroot (e.g. https://www.mydomain.com/), not at any subdomain or sub directory.

If that fails to launch SuiteCRM properly, with all top menus, you should check that your apache has mod_rewrite set up and enabled, and check the rewrite directives in the configuration files.

If any of that is not clear enough for you, please look for answers online, I am not an expert in this and thereā€™s too much variation from one system to anotherā€¦

Morning pgr,
Thanks for your advice, from that I found the file /etc/epache2/site-available/suitcrm.conf not working, instead of using default file it works as miracle.