Jump to content

[SOLVED] Media::cccCss() error


Siglo99

Recommended Posts

Hi

 

Will the following error code,How to repair,has been used for a week, unable to debug

Please help me, thank you

 

PHP Strict Standards: Declaration of Media::cccCss() should be compatible with MediaCore::cccCss($css_files, $cache_path = NULL) in /home/xxxxx/public_html/override/classes/Media.php on line 90

Edited by Siglo99 (see edit history)
Link to comment
Share on other sites

It seems override/classes/Media.php is not overriding the Media::cccCss() function correctly. Make sure it is overriding like the following:

    public static function cccCss($css_files, $cache_path = null)

Also, make sure that any calls to the parent function include all the parameters like this:

        parent::cccCss($css_files, $cache_path);
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...