• Resolved LA

    (@lukeallen1986)


    Hi @diana_burduja since updating to WP 5.5.1 whenever I go to make a change to a css file using your Customer CSS / JS plugin I’m presented with a “There has been a critical error on your website. Please check your site admin email inbox for instructions.”… and I’m unable to save any changes.

    It seems that apparently the “the class scssc” is being declared twice;“. As its conflicting with Mega Menu.

    Also I’ve noticed that on a couple of my pages certain .js code just never loads now. Possibility related to the above issue.

    Is this a known issue can you please let me know how to resolve it?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author SilkyPress

    (@diana_burduja)

    Hello,

    I am not aware of any issue with WP 5.5.1, not can I replicate what you’re describing on my test website.

    Would you please be specific about which Mega Menu plugin is conflicting with the Simple Custom CSS & JS plugin? There are around 8 plugins with Mega Menu in the title on www.remarpro.com repository.

    Did you get an email with the instructions after trying to save a custom code? What does it say? Note that you’re talking about “your Customer CSS/JS plugin”, when this plugin is called “Simple Custom CSS and JS”. There is no “Customer” work in the title. Are you sure you’re using this plugin?

    Do you get PHP error related to the “scssc” class? There is no “scssc” class declared in the Simple Custom CSS & JS plugin, but a screenshot with the exact error might help me understand better what is going on.

    Superdoyle

    (@harry_hostname)

    Hi Diana!
    I’m a colleague of LA’s, we just found and fixed the problem.

    The problem is includes/functions.php line 179
    require_once 'vendor/scss.inc.php'

    The problem is megamenu has already included its copy (their file is actually called “scssc.inc.php” – notice the extra “c”) which defines the class “scssc”.

    Looking at their code I noticed they have the include in an if statement, checking if that class is already included. I applied the same to your plugin and it worked, so that line becomes like:

    
    if ( ! class_exists( 'scssc' ) ) {
            require_once 'vendor/scss.inc.php';
    }
    

    Hope this helps.

    Plugin Author SilkyPress

    (@diana_burduja)

    Thank you, that was very helpful.

    We’ll correct the issue in the next plugin’s version.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘There has been a critical error on your website. Please check your site admin’ is closed to new replies.