Problems with standard theme in 2.7

Problems with standard theme in 2.7

by Dinh tuan -
Number of replies: 12

I have update moodle 2.7 beta+, When I change theme from 'CLEAN' to 'STANDARD', backgroup, border is hidden, icon is hidden,...

Average of ratings: -
In reply to Dinh tuan

Re: Problems with standard theme in 2.7

by Frédéric Massart ⭐ -
Picture of Core developers Picture of Plugin developers Picture of Testers

Hi Dinh,

I have just tried to install the Standard theme available on the plugins database in the latest 2.7 branch, and it worked as expected.

Maybe there is a caching somewhere that was not properly invalidated.

Could you try to purge the caches of Moodle, and of your browser?

 

Cheers,

Fred

In reply to Dinh tuan

Re: Problems with standard theme in 2.7

by Richard Oelmann -
Picture of Core developers Picture of Plugin developers Picture of Testers

Dinh,

Standard is no longer included in the install of 2.7Beta+ Have you installed it separately or is it a left over from your previous install.

I usually find when working with beta versions it is often better to use a clean install than a simple upgrade - especially if coming from a previous version (e.g. 2.6) rather than simply a previous weekly build of 2.7Beta

Average of ratings: Useful (1)
In reply to Richard Oelmann

Re: Problems with standard theme in 2.7

by Dinh tuan -

Hi Richard,

I have upgrade from moodle2.6.2+ to 2.7beta+ and I copy Standard (newest version) to theme of 2.7beta+. After Upgrade moodle. Upgrade is successfull, I haved clear cache, run cron,... but It is error (border, background, icon,... is hidden).

 

Can you help me fix it

In reply to Richard Oelmann

Re: Problems with standard theme in 2.7

by Dinh tuan -

I need 'standard' theme because I can fix 'Quiz navigation' (It mean when I scroll pages then 'Quiz navigation' is show, not be hidden). I also like 'clean' theme but It can't fix 'Quiz navigation', Can you guide me to use 'clean' theme and fix 'Quiz navigation'.

In reply to Dinh tuan

Trả lời: Problems with standard theme in 2.7

by Hải Nguyễn Đình -

Hi Tuan,

May be,you forget set it back to "standard" theme  before upgrade to moodle 2.7, 

In reply to Hải Nguyễn Đình

Re: Trả lời: Problems with standard theme in 2.7

by Dinh tuan -

No. I alway use 'standard' theme for my system (before and after upgrade).

Any way, If I user 'clean' theme, can you guide me fix 'Quiz navigation'?

In reply to Dinh tuan

Re: Trả lời: Problems with standard theme in 2.7

by Richard Oelmann -
Picture of Core developers Picture of Plugin developers Picture of Testers

Dinh - I am not able to replicate your problem. I have installed Standard onto a fresh install of 2.7Beta and it works

Have you done as Frederic suggested earlier and ensured all caches are cleared - browser as well as moodle?

If so I would suggest the following steps

Uninstall Standard from the plugins overview page and remove the standard folder from your 2.7 themes folder

(This should remove all references to it from the database as well and should leave you in Clean theme for now)

Purge all caches - moodle and browser

Goto Administration > Site Administration > Development and turn on debugging at developer level

Reinstall Standard from the plugins database - not a copy from an older version of moodle, do it all fresh

Goto the Administration>Site Administration>Notifications page to install standard

Goto the Administration > Site Administration > Appearance > Theme Selector and set the standard theme as your default theme

If you still have errors, report what the debugging gives you here for us to check on.

In reply to Richard Oelmann

Re: Trả lời: Problems with standard theme in 2.7

by Dinh tuan -

I have done following you guide but It is still error (hidden icon, border and background,..).

Can you guide me edit configuration (config.php).

Now my configuration file:

...

$CFG->directorypermissions = 02777;
$CFG->wwwroot   = 'http://192.168.11.6/elearn';
$CFG->dataroot  = 'C:\\AppServ\\vndata';
$CFG->admin     = 'admin';
$CFG->localcachedir='C:\\AppServ\\vndata\\localcache';
$CFG->tempdir='C:\\AppServ\\vndata\\temp';
$CFG->directorypermissions = 0777;
 $CFG->frontpagecourselimit=8;
require_once(dirname(__FILE__) . '/lib/setup.php');

...

 

In reply to Richard Oelmann

Re: Trả lời: Problems with standard theme in 2.7

by Dinh tuan -

Hi Richard Oelmann,

Thanks for your answers, but It is Error (version is 2.7+).

Today, I try to change settings from 'Theme designer mode' =YES ( Site administration  / ► Appearance    / ► Themes     / ► Theme settings) then It is OK.

But if I change 'Theme designer mode' =NO then It hidden all borders, all background (all functions is normal). My version is 2.7+ (newest version)

Before I didn't change 'Theme designer mode' setting and It is still OK (when upgrade to 2.7).

I look forward to receiving your reply as soon as possible.

Regards,

Đinh Anh Tuấn

Email: dinhanhtuan68@gmail.com

 

In reply to Richard Oelmann

Re: Trả lời: Problems with standard theme in 2.7

by Dinh tuan -

I think It depend on 'Cache':

I used :

   +   File cache

   +  Memcache

In php.ini, I have used:

[opcache]
; Determines if Zend OPCache is enabled
zend_extension = "C:\php\ext\php_opcache.dll"
opcache.enable=1

; Determines if Zend OPCache is enabled for the CLI version of PHP
opcache.enable_cli=1

opcache.memory_consumption = 128
opcache.max_accelerated_files = 4000
opcache.revalidate_freq = 60
 
; Required for Moodle
opcache.use_cwd = 1
opcache.validate_timestamps = 1
opcache.save_comments = 1
opcache.enable_file_override = 0
 


 

In reply to Dinh tuan

Re: Trả lời: Problems with standard theme in 2.7

by Richard Oelmann -
Picture of Core developers Picture of Plugin developers Picture of Testers

It sounds very much like a cache issue - as originally pointed out by Frederic above.

However, I have no personal experience of the detail of these caching systems as the caching we use in work is managed by the server team.