Jump to content
  • 0

Can't Change Theme


ServZoo

Question

So, I've conquered the import, nginx config, and now I'm stuck on this one. :-)

 

For some reason, I cannot change either the client or admin theme. It says successful and generates no errors in any logs (nginx, php, etc.) There are some strange issues with the navigation menu on the admin side as well, when you hover over the main tabs, you have sub tabs from both categories showing on top of each other (see screenshot.)

 

Everything else appears to work without any issues at all.

 

Any suggestions?

post-10453-0-50498400-1402294394_thumb.p

post-10453-0-17674000-1402294462_thumb.p

Link to comment
Share on other sites

18 answers to this question

Recommended Posts

  • 0

The screenshot showing galactic theme selected, shows no theme loaded for the admin area. My guess is that your nginx configs may not be correct.

 

Try accessing /admin/theme/theme.css?dir= in your browser. Does it load any CSS styles? This resource should be included in the admin page, the styles returned by this override the defaults to display the theme. My guess is that this isn't working for you due to some server configuration.

Link to comment
Share on other sites

  • 0
On ‎17‎.‎3‎.‎2017 at 3:28 AM, ariq01 said:

Yes but that doesnt change content of htaccess file..you have to convert content of htaccess file to nginx rules...there are good converters online ...just google it

Link to comment
Share on other sites

  • 0
35 minutes ago, Nelsa said:

Yes but that doesnt change content of htaccess file..you have to convert content of htaccess file to nginx rules...there are good converters online ...just google it

Default Blesta htaccess file content converted to nginx rules would be(I'm on phone so it may be that I miss something...it is very hard to paste code from phone)

# nginx configuration
location / {
if (!-e $request_filename){
rewrite ^(.*)$ /index.php;
}
if ($request_uri ~ "^(.*)/install.php$"){
rewrite install.php /%1/install/ redirect;
}
}
location ~ \.(pdt)$ {
deny all;
}

Link to comment
Share on other sites

  • 0

@Nelsa thanks btw for nginx conf. But mine still error. I can't access (404 not found) https://blesta/admin/theme/theme.css?dir=WHMBlesta

and only can access https://blesta/admin/theme/

 server {
        listen   443 ssl http2; ## listen for ipv4; this line is default and implied
        #listen   [::]:80 default ipv6only=on; ## listen for ipv6

        root /**/public_html;
     index index.php index.html;
     error_log  /**.error.log warn;

        # Make site accessible from http://localhost/
        server_name **;

        ssl_certificate **/ssl/ssl-bundle.crt;
        ssl_certificate_key **/ssl.key;


        ssl_session_cache shared:SSL:20m;
        ssl_session_timeout 10m;
        ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
        ssl_prefer_server_ciphers on;
        ssl_ciphers 'ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-DSS-AES128-GCM-SHA256:kEDH+AESGCM:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA:ECDHE-ECDSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-DSS-AES128-SHA256:DHE-RSA-AES256-SHA256:DHE-DSS-AES256-SHA:DHE-RSA-AES256-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:AES:CAMELLIA:DES-CBC3-SHA:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!MD5:!PSK:!aECDH:!EDH-DSS-DES-CBC3-SHA:!EDH-RSA-DES-CBC3-SHA:!KRB5-DES-CBC3-SHA';

        ssl_dhparam /etc/nginx/dhparams.pem;


    add_header Strict-Transport-Security "max-age=31536000; includeSubDomains";
    client_body_buffer_size 32m;
    
location ~ \.php$ {
		try_files $uri /index.php?$args;
        #try_files $uri =404;
        #https://github.com/cloudrck/blesta-nginx/blob/master/sites-available/blestav3 ON

        fastcgi_split_path_info ^(.+\.php)(/.+)$;
        fastcgi_connect_timeout 60;
        fastcgi_send_timeout 180;
        fastcgi_read_timeout 180;
        fastcgi_buffer_size 128k;
        fastcgi_buffers 4 256k; #
        fastcgi_busy_buffers_size 256k; 
        fastcgi_temp_file_write_size 256k;
        fastcgi_intercept_errors on;

        #https://github.com/cloudrck/blesta-nginx/blob/master/sites-available/blestav3 OFF

        fastcgi_pass unix:/var/run/php5-fpm.sock;
        fastcgi_index index.php;
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
        include fastcgi_params;
        }

        location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
                expires max;
                log_not_found off;
        }
    
    location ~ (\.pdt) {
    return 403;
    }

    location = /favicon.ico {
                log_not_found off;
                access_log off;
        }

        location = /robots.txt {
                allow all;
                log_not_found off;
                access_log off;
        }

location / {
if (!-e $request_filename){
rewrite ^(.*)$ /index.php;
}
# For access to install file  
if ($request_uri ~ "^(.*)/install.php$"){
    rewrite install.php /%1/install/ redirect;
  }
}

}

server {
    listen 80;
    server_name **;
    rewrite ^ https://**$request_uri permanent;
}

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...