Upgraded now no style sheet!?

Hi I upgraded from a clean install of 7.9.7 and our database (which was running on 7.97) to 7.10.4 and now we have no styles css seem to have gone missing?

How can I edit files/config to alleviate this?

Kate

Normally these issues are simply a matter of fixing Linux permissions (if they are not correctly set).

Other times it’s caching problems. You can try doing a few repairs in Admin / Repair.

I have tried a fresh install of the CRM 7.10.4 and no improvement?

Is there something in the DB I can edit?

I can’t run my crm like this can someone help please?

I didn’t have to reinstall, you had to fix permissions, that’s what I told you to do above…

You can delete the directory “cache/themes”, it will get recreated, that might help.

You should also look in both your logs, you probably have clues there:

suitecrm.com
php_errors.log

1 Like

Hi pgr,

I have followed the permission steps discussed here
https://suitecrm.com/suitecrm/forum/installation-upgrade-help/17839-css-not-working-after-upgrade?limitstart=0

and cleared the theme cache etc

Is there anything I might be missing

in the Errors it is saying

Sat Apr 21 01:24:23 2018 [15234][1d7af562-a4a6-1f2b-0bd8-5993994a3de9][INFO] Tracker: retrieving 10 items
Sat Apr 21 01:24:23 2018 [15234][1d7af562-a4a6-1f2b-0bd8-5993994a3de9][WARN] Image EmailAddresses.gif not found
Sat Apr 21 01:24:23 2018 [15234][1d7af562-a4a6-1f2b-0bd8-5993994a3de9][WARN] Image EmailAddresses.gif not found
Sat Apr 21 01:24:23 2018 [15234][1d7af562-a4a6-1f2b-0bd8-5993994a3de9][WARN] Image EmailAddresses.gif not found
Sat Apr 21 01:24:23 2018 [15234][1d7af562-a4a6-1f2b-0bd8-5993994a3de9][WARN] Image EmailAddresses.gif not found
Sat Apr 21 01:24:23 2018 [15234][1d7af562-a4a6-1f2b-0bd8-5993994a3de9][WARN] Image EmailAddresses.gif not found
Sat Apr 21 01:24:23 2018 [15234][1d7af562-a4a6-1f2b-0bd8-5993994a3de9][WARN] Image EmailAddresses.gif not found
Sat Apr 21 01:24:23 2018 [15234][1d7af562-a4a6-1f2b-0bd8-5993994a3de9][WARN] Image EmailAddresses.gif not found
Sat Apr 21 01:24:23 2018 [15234][1d7af562-a4a6-1f2b-0bd8-5993994a3de9][WARN] Image EmailAddresses.gif not found
Sat Apr 21 01:24:23 2018 [15234][1d7af562-a4a6-1f2b-0bd8-5993994a3de9][WARN] Image EmailAddresses.gif not found
Sat Apr 21 01:24:23 2018 [15234][1d7af562-a4a6-1f2b-0bd8-5993994a3de9][WARN] Image EmailAddresses.gif not found
Sat Apr 21 01:24:23 2018 [15234][1d7af562-a4a6-1f2b-0bd8-5993994a3de9][WARN] Image Create.gif not found
Sat Apr 21 01:24:23 2018 [15234][1d7af562-a4a6-1f2b-0bd8-5993994a3de9][WARN] Image List.gif not found
Sat Apr 21 01:24:23 2018 [15234][1d7af562-a4a6-1f2b-0bd8-5993994a3de9][WARN] Image Create.gif not found

as you can see it appears to not be able to see the images?

Hi, actually those image warnings in suitecrm.log are not relevant.

Did you look in php_errors.log or errors.log, whatever your Web server log is called?

About the permissions: you need to know the user your web server is using in order for those instructions to work. You can’t just use them directly.

Hi again,

sorry to appear such a newb. the error log contained this.


[20-Apr-2018 23:45:31 UTC] PHP Warning:  implode(): Invalid arguments passed in /home/pastiche/crm.pastichemagazine.com.au/modules/Administration/views/view.themesettings.php on line 82
[20-Apr-2018 23:46:11 UTC] PHP Warning:  implode(): Invalid arguments passed in /home/pastiche/crm.pastichemagazine.com.au/modules/Administration/views/view.themesettings.php on line 82
[20-Apr-2018 23:51:38 UTC] PHP Warning:  implode(): Invalid arguments passed in /home/pastiche/crm.pastichemagazine.com.au/modules/Administration/views/view.themesettings.php on line 82

Line 82 is

            $configurator->config['disabled_themes'] = implode(',',$_REQUEST['disabled_themes']);

Does this help

Kate

If you can type this command it will tell you (hopefully) which user name your Web server is running under:

ps -ef | egrep '(httpd|apache2|apache)' | grep -v `whoami` | grep -v root | head -n1 | awk '{print $1}'

That’s the user name you need to use in the “chown” command of setting the permissions. Please just follow the official installation guide:


  sudo chown -R www-data:www-data .
  sudo chmod -R 755 .
  sudo chmod -R 775 cache custom modules themes data upload
  sudo chmod -R 775 config_override.php 2>/dev/null

Replace that “www-data” with your actual web server user name.

With this I hope you will be able to upgrade well. If not, please tell me if you have a “disabled_themes” line somewhere in these files on the root of your SuiteCRM installation:

config.php
config_override.php

Hello Skye,

Sorry for the delay on getting back to you.

I have checked the permission of the following folders and files you provided and it was to 775,

drwxrwxr-x 15 pastiche pastiche 4096 Apr 21 11:24 cache
drwxrwxr-x 6 pastiche pastiche 4096 Apr 19 12:06 custom
drwxrwxr-x 119 pastiche pastiche 4096 Apr 6 20:06 modules
drwxrwxr-x 3 pastiche pastiche 4096 Apr 6 20:06 data
drwxrwxr-x 3 pastiche pastiche 4096 Apr 19 14:17 upload
-rwxrwxr-x 1 pastiche pastiche 165 Apr 21 10:32 config_override.php

Also I don't see any error on server logs that could trace the possible cause. Please check with your developer as it shows broken page.

For any other question or request for assistance, don't hesitate to contact us anytime.
-- 
Thanks,
Ram B.
Technical Support Representative

I’m sorry, but I don’t know what to do with that.

That shows me those directories have those permissions, but my commands fixed things recursively, down all levels underneath. Has that been done?

What permissions do new files created under these directories get?

Have you tried different browser, different computer, Quick Repair and Rebuild, etc.?

For me the following commands helped:

sudo chmod -R 755 .
sudo chmod -R 775 cache custom modules themes data upload
sudo chmod -R 775 config_override.php 2>/dev/null

There was no need to change the owner and group, since the webserver created the files during update procedere.

Thanks to kaety for asking and pgr for answering the old solution directly!