Support Forum

Is the latest CSS-Only Theme working?

JV Joan Alamo Vallejo
Joan Alamo Vallejo
Member

I updated everything a few hours ago (WP and SP) and I cannot create new topics or open the post tool window. I can edit posts though.

 

Is there any incompatibilities/issues with the latest version? Maybe javascript related?

11 Answers

New Answer

IK Ike
Ike
Member

Hey Joan,

Are you referring to Barebones CSS Only?

The kind of incompatibility that a CSS Only theme resolves is more to do with loading PHP files as CSS which other themes do.

It sounds more like a JS conflict. Are you able to use the browser console to see if you’re getting any errors on the page?

JV Joan Alamo Vallejo
Joan Alamo Vallejo
Member

I see no errors trying to create a post, but when I try to open the post tool box I see:

 

Uncaught TypeError: jQuery(…).dialog is not a function

JV Joan Alamo Vallejo
Joan Alamo Vallejo
Member

This is the page where the forum is, just in case you need to see the source code 

http://www.subnoise.es/foro/videos/

IK Ike
Ike
Member

My guess is that something has been updated that’s now causing a problem. I am seeing at the very least a tooltip conflict although there are a few others.

You can test the tooltip fix for a start by opening:

wp-content > sp-resources > forum-themes > barebones-css-desktop > templates > spFunctions.php

At the very top of that document, the first code you will see is a statement defining tooltips, so try changing that to ‘False’ so it appears:

if (!defined('SP_TOOLTIPS')) define('SP_TOOLTIPS', false);

As to the rest, I couldn’t say. The conflicts could be coming from your WP theme or any active plugin that’s loading it’s own jquery library over the WP supplied jquery. For the most part these appear to be coming from a widget of some type. See here for more info.

YS Yellow Swordfish
Yellow Swordfish
Member

You have a whole big list of conflicts. They start because something is loading the jQuery library from the google CDN – and if this is not bad enough – it is an old, incompatible version. This FAQ explains the problem(s) in detail.

https://simple-press.com/documentation/codex/faq/troubleshooting/what-is-this-jquery-conflict/

If all was working before the latest WP and SP update I would assume that perhaps you have updated or added something else – WP theme or another plugin – that is the culprit. Whatever it is it needs removing or fixing I am afraid. ANY plugin that utilises jQuery and expects the proper WordPress supplied version is going to have problems.

YS Yellow Swordfish
Yellow Swordfish
Member

Looks like Ike and I posted at the same time, We are both correct…! But I would suggest the jQuery library gets sorted first,

JV Joan Alamo Vallejo
Joan Alamo Vallejo
Member

I mean, it worked setting false to the line Ike told me.

As for the google library, do you mean this line? I’ve commented it

<script type=”text/javascript” src=”http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js”></script>

It was working before I updated to the new WP and SP versions. No new plugins were added

YS Yellow Swordfish
Yellow Swordfish
Member

I see where you have commented out one attempt to load it but it actually gets loaded a little further down the source…. It is loading version 1.8.1. Immediately after that the proper WP/SP version is loaded – which is 1.12.3. It is, I suppose, possible that because they are being loaded in that order then the proper WP version takes over as such. But it would be far better to get rid of it. It is sitting there like a time-bomb! And it is also getting loaded when not needed or desired.

JV Joan Alamo Vallejo
Joan Alamo Vallejo
Member

I have this in my functions.php

function my_init() {
  if (!is_admin()) {
    wp_deregister_script(‘jquery’);
    wp_register_script(‘jquery’, ‘http://ajax.googleapis.com/ajax/libs/jquery/1.8.1/jquery.min.js’, false, ‘1.8.1’);
    wp_enqueue_script(‘jquery’);
  }
}

I’ve removed the first two lines and left just the wp_enqueue_script(‘jquery’);