Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
general-topic
Add Topic and Add Reply buttons not working
Avatar
Lisa Cherney
Member
Free Members
sp_UserOfflineSmall Offline
Feb 16, 2016 - 10:04 am

Thank you, Ike. We did do a Copper support membership. I don't think it is a new plugin, but perhaps the theme itself - which hasn't changed. But, your plugin did recently change. That is when I think it broke? Any thoughts? Thanks!

PS: I did turn off EVERY plugin and still cannot 'Add Topic' or reply. 

Avatar
Ike
Sawtry, UK
Member
Free Members
sp_UserOfflineSmall Offline
Feb 16, 2016 - 10:37 am

OK, if you've tried every plugin could you next try the WP theme? Try enabling one of the default themes to see if you can then post.

Not sure how old your theme is, but you've said it hasn't been updated or changed since you started. Does it need updating?

While we're on the subject, is everything else up to date i.e WP and WP plugins?

Avatar
Lisa Cherney
Member
Free Members
sp_UserOfflineSmall Offline
Feb 16, 2016 - 10:40 am

Ike- Yes, WP and WP plugins are updated every 2 weeks, so those are fine.  The theme is a custom theme and we have never gotten an update from the developer. 

It really is frightening to try a default theme, as I am not sure it won't break the whole site. This is a membership site and folks rely on it 24/7.

Is that my ONLY option at this point?

Avatar
Ike
Sawtry, UK
Member
Free Members
sp_UserOfflineSmall Offline
Feb 16, 2016 - 11:09 am

I don't think that enabling a default theme will do anything but display the site under the default theme. Your custom theme should be sitting there waiting to be re-activated but of course I can't guarantee it wont break anything! Your best bet here would be to talk to the theme developer.

As to the error, it seems to me that this is theme based having done a bit of digging. It looks like the conflict you're having is with the 'jQuery Cycle Plugin' - This by the look of things is to do with some kind of slideshow. It's loading it's own version of the jquery library and not only does WordPress have it's own that your theme should be using, but the one it's loading is about 6 years old by the look of it.

We will need to wait for @mr-papa or @yellow-swordfish to take a look for further help with this as jQuery problems are a bit out of my depth, but from memory it might be possible to remove some lines of code from the theme that call it's own library forcing it to use the provided WordPress library, but if the theme is geared towards using it's own that may have some really bad knock on effects elsewhere.

Please could you PM login details to myself, Mr Papa and Yellow Swordfish - Include a link to this topic and a reminder of the problem (for the other two admins) so they have the info, then let's wait to see what Steve or Andy think, and in the meantime as I've said I would talk to the theme developer to ask them what they think.

Avatar
Lisa Cherney
Member
Free Members
sp_UserOfflineSmall Offline
Feb 16, 2016 - 11:10 am

I think the issue is in the Theme functions.php file here - using Enqueue - pulling from Google: 

/*
* Enqueue scripts and styles
* - taking care not to force site scripts on WP Admin sections
*************************************************/
if ( ! is_admin() ) {
function init_wfts_scripts () {
wp_enqueue_style( 'style', get_stylesheet_directory_uri() . '/style.css' );
/* css for overlays */
//wp_enqueue_style( 'shadowboxcss', get_stylesheet_directory_uri() . '/inc/js/shadowbox-3.0.3/shadowbox.css' );
/* using wp_deregister_script() to disable the versions that comes packaged with Wordpress */
wp_deregister_script('jquery');
wp_deregister_script('jquery-ui');
/* using wp_register_script() to register updated libraries */
wp_register_script('jquery', 'https://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js', false, '1.5.2', true );
wp_register_script('jquery-ui', 'https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.11/jquery-ui.min.js', false, '1.8.11', true );
/* using wp_enqueue_script() to load the updated libraries */
wp_enqueue_script('jquery');
wp_enqueue_script('jquery-ui');
/* used for home page cycling (stage) images */
//wp_enqueue_script( 'jquery-cycle', get_template_directory_uri() . '/inc/js/jquery.cycle.all.min.js', array( 'jquery' ), '2.88', true );
/* used for overlays */
//wp_enqueue_script( 'shadowbox', get_template_directory_uri() . '/inc/js/shadowbox-3.0.3/shadowbox.js', array( 'jquery' ), '2.88', true );
/* document.ready() */
wp_enqueue_script( 'wfts-plugins', get_stylesheet_directory_uri() . '/inc/js/plugins.js', array( 'jquery' ), '1.1', true );
wp_enqueue_script( 'wfts-javascript', get_stylesheet_directory_uri() . '/inc/js/wfts.js', array( 'jquery', 'jquery-ui' ), '1.1', true );
}

// k, now add the scripts in the init
add_action('init', 'init_wfts_scripts');

 

Is this something you can help with?  Is there an easy fix? Yesterday I tried disabling this section of this functions.php file and broke the whole site.

Thank you!

Avatar
Lisa Cherney
Member
Free Members
sp_UserOfflineSmall Offline
Feb 16, 2016 - 12:45 pm

Thank you, Ike. I sent separate PM's with the login info to @mr-papa and @yellow-swordfish as you asked. I put a link to this thread in there, too. Thank you for any help you can give. Best, Michelle for Lisa Cherney

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Feb 16, 2016 - 1:08 pm

If you comment out the 2 'wp_deregister_script' calls and also comment out the 2 'wp_register_script' calls then you are back to things they way that WordPress expects them to be. Does doing that solve the problem?

You would almost certainly need to completely clear your browser cache after making the code changes and before testing them...

andy-signature.png
YELLOW
SWORDFISH
Avatar
Lisa Cherney
Member
Free Members
sp_UserOfflineSmall Offline
Feb 16, 2016 - 1:35 pm

Thank you Yellow Swordfish...I commented out the portion in red: 

* Enqueue scripts and styles
* - taking care not to force site scripts on WP Admin sections
*************************************************/
if ( ! is_admin() ) {
function init_wfts_scripts () {
wp_enqueue_style( 'style', get_stylesheet_directory_uri() . '/style.css' );
/* css for overlays */
//wp_enqueue_style( 'shadowboxcss', get_stylesheet_directory_uri() . '/inc/js/shadowbox-3.0.3/shadowbox.css' );
/* using wp_deregister_script() to disable the versions that comes packaged with Wordpress */
/* wp_deregister_script('jquery');
wp_deregister_script('jquery-ui'); */
/* using wp_register_script() to register updated libraries */
/* wp_register_script('jquery', 'https://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js', false, '1.5.2', true );
wp_register_script('jquery-ui', 'https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.11/jquery-ui.min.js', false, '1.8.11', true ); */
/* using wp_enqueue_script() to load the updated libraries */
wp_enqueue_script('jquery');
wp_enqueue_script('jquery-ui');
/* used for home page cycling (stage) images */
//wp_enqueue_script( 'jquery-cycle', get_template_directory_uri() . '/inc/js/jquery.cycle.all.min.js', array( 'jquery' ), '2.88', true );
/* used for overlays */
//wp_enqueue_script( 'shadowbox', get_template_directory_uri() . '/inc/js/shadowbox-3.0.3/shadowbox.js', array( 'jquery' ), '2.88', true );
/* document.ready() */
wp_enqueue_script( 'wfts-plugins', get_stylesheet_directory_uri() . '/inc/js/plugins.js', array( 'jquery' ), '1.1', true );
wp_enqueue_script( 'wfts-javascript', get_stylesheet_directory_uri() . '/inc/js/wfts.js', array( 'jquery', 'jquery-ui' ), '1.1', true );
}

// k, now add the scripts in the init
add_action('init', 'init_wfts_scripts');

 

With no luck... I cleared my cache for a full week on both Firefox and Chrome and asked someone else to do the same and test. 

 

Could this line be an issue: 

rel='stylesheet' id='jqcss-css' href='https://ajax.googleapis.com/aj.....?ver=4.4.2' type='text/css' media='all' />

I get that when I View Code on the main forum page.  I know it is a stylesheet, so it doesn't seem that it should be an issue?  I am stumped...

Thank you for any help you can give.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Feb 16, 2016 - 4:26 pm

OK... where to start!

Let's kick off with jQuery. The site is till not loading the WordPress 'standard and supplied' jQuery which is version 1.12 with a small alteration to the code specifically for WP. You are running a plugin called jQuery-Updater which aims to load the latest version. It is running version 2.2. There are two problems with this. Firstly it will not have the WP 'no-conflict' code (which may or may not be a problem) but it will not run on any Internet Explorer version below V9. There are still a lot of IE7 and IE8 users out there...

Then there is the WordPress theme. I know you have said it has not changed bit I am afraid it must have. Ot is not running the standard wp_footer() function at the end which is 100% required for things to run correctly - especially for footer loaded scripts, and that alone wil lstop all of the Simple:Press scripts and ajax from running.

I reckon these two things need dealing with and then we need to see where we are at. But neither of these have anything to do with the last SP update

andy-signature.png
YELLOW
SWORDFISH
Avatar
Lisa Cherney
Member
Free Members
sp_UserOfflineSmall Offline
Feb 16, 2016 - 4:52 pm

Ok... I have deactivated the plugin called: jQuery-Updater now. I just added that yesterday.

And, no, we have NOT changed the WordPress theme a bit since the latest update of SimplePress.

Can you clarify WHERE we are not running the standard wp_footer() function, please? Because this has NOT changed in several months. And things have been running fine is Simple:Press since these updates. We needed custom footers for different types of pages...

Thank you.

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 620
Members: 17365
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10128
Posts: 79626