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.