Support Forum

Profile Page not working

BS Brian Siu
Brian Siu
Member

Since the update, the profile page has not been working.

 

The profile tab shows no options

 

The options tab leads to a different layout:

 

Here is the error log:

April 20, 2014 3:49 pm | spaErrNotice | 1 | php


file: iuss/public_html/wp-content/sp-resources/forum-plugins/private-messaging/library/sp-pm-components.php
line: 151
function: sp_pm_do_profile_options
Notice | Undefined property: spUser::$pmemailApril 20, 2014 3:49 pm | spaErrNotice | 2 | php


file: iuss/public_html/wp-content/sp-resources/forum-plugins/warnings-suspensions/library/sp-warnings-suspensions-components.php
line: 58
function: sp_warnings_suspensions_do_profile_message
Notice | Undefined index: profile

15 Answers

New Answer

YS Yellow Swordfish
Yellow Swordfish
Member

That is going to be an Ajax problem and as such will need the web/script console to see any errors being generated by scripts. Do you know how to do this?

BS Brian Siu
Brian Siu
Member

from the options tab

Uncaught ReferenceError: jQuery is not defined index.php:5
Uncaught ReferenceError: jQuery is not defined index.php:22

from the profile tab

Uncaught SyntaxError: Unexpected identifier (index):734
event.returnValue is deprecated. Please use the standard event.preventDefault() instead. notes-widget.min.js?v=20140420:2

Are these the errors you mean?

 

Are these the errors you mean?

MP Mr Papa
Mr Papa
Member

so that indicates a js conflict… likely a theme or plugin loading jquery against the wp api… see:  http://codex.simple-press.com/codex/faq/troubleshooting/what-is-this-jquery-conflict/

do you have link to your site so we can check for obvious conflicts?

MP Mr Papa
Mr Papa
Member

your theme or a plugin is loading an external version of jquery ui rather than using the version that comes with wp…

<script type=’text/javascript’ src=”http://www.gamongaming.com/wp-content/themes/gameaddict/js/jquery-ui-1.10.3.custom.min.js?83edca”></script>

this is a slightly older version of jquery ui from that which comes with wp…  and in your case, the native wp jquery ui is also being loaded…  so they are likely conflicting…

additionally, your theme is loading bootstrap which is known to conflict (ie stomp on) jquery ui…  using the two together can be problematic…  unless bootstrap is loaded before jquery ui…  your theme is loading bootstrap before its own copy of jquery ui which is good, but unfortunately, its not the version of jquery ui that come with wp that other plugins are expecting…

if you can find where in your theme the wrong version of jquery ui is being loaded, we can help correct it…

BS Brian Siu
Brian Siu
Member

the theme support guy says “try function.php, search “jquery”“. At some point the plugin worked with the theme. I think it was after the update that the errors occured.

YS Yellow Swordfish
Yellow Swordfish
Member

If you theme has always loaded an unsupported version of the jQuery UI library then it is probable there have always been some things that did  not work as expected. Any recent updates have not changed that – it has always been the case which is why we specify in the system requirements for SP that this is a problem.

It IS possible that the upgrade within WP to a newer version of jQuery has exacerbated the issue making errors more widespread and apparent.

So have you looked in the theme functions.php to try and find where the jQuery UI library is being loaded and if so can you paste the code fragments for that line of code and a couple either side of it here?

BS Brian Siu
Brian Siu
Member

function addict_external_styles(){
  wp_register_style( ‘custom-style’,  ‘http://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700,800,400italic,600italic,700italic’,  array(), ‘20130401’);
  wp_enqueue_style( ‘custom-style’ );
  wp_register_style( ‘custom-style1′,  get_template_directory_uri().’/css/jquery.fancybox.css’,  array(), ‘20130401’);
  wp_enqueue_style( ‘custom-style1’ );
  wp_register_style( ‘custom-style2′,  get_template_directory_uri().’/addons/chat/wp-wall.css’,  array(), ‘20130401’);
  wp_enqueue_style( ‘custom-style2’ );
  wp_register_style( ‘pricetable1′,  get_template_directory_uri().’/addons/pricetable/css/pricetable.css’,  array(), ‘20130401’);
  wp_enqueue_style( ‘pricetable1’ );

BS Brian Siu
Brian Siu
Member

wp_register_script( ‘isotope’,   get_template_directory_uri().’/js/isotope.js’,”,”,true);
wp_enqueue_script(‘isotope’);
wp_register_script( ‘easing’,  get_template_directory_uri().’/js/easing.js’,”,”,true);
wp_enqueue_script(‘easing’);
wp_register_script( ‘main’,  get_template_directory_uri().’/js/main.js’,”,”,true);
wp_enqueue_script(‘main’);
wp_register_script( ‘fancybox’,  get_template_directory_uri().’/js/jquery.fancybox.js’,”,”,true);
wp_enqueue_script(‘fancybox’);
wp_register_script( ‘totop’,  get_template_directory_uri().’/js/jquery.ui.totop.js’,”,”,true);
wp_enqueue_script(‘totop’);
wp_register_script( ‘custom_js1′,  get_template_directory_uri().’/js/jquery.validate.min.js’,”,”,true);
wp_enqueue_script(‘custom_js1’);
wp_register_script( ‘custom_js2′,  get_template_directory_uri().’/js/jquery-ui-1.10.3.custom.min.js’,”,”,true);
wp_enqueue_script(‘custom_js2’);
wp_register_script( ‘custom_js3′,  get_template_directory_uri().’/js/jquery.carouFredSel-6.2.1-packed.js’,”,”,true);
wp_enqueue_script(‘custom_js3’);
wp_register_script( ‘custom_js6′,   get_template_directory_uri().’/js/appear.js’,”,”,true);
wp_enqueue_script(‘custom_js6’);
wp_register_script( ‘custom_js4′,   get_template_directory_uri().’/js/parallax.js’,”,”,true);
wp_enqueue_script(‘custom_js4’);
wp_register_script( ‘custom_js5′,   get_template_directory_uri().’/js/global.js’,”,”,true);
wp_enqueue_script(‘custom_js5’);
wp_register_script( ‘imagescale’,   get_template_directory_uri().’/js/imagescale.js’,”,”,true);
wp_enqueue_script(‘imagescale’);
wp_register_script( ‘transit’,   get_template_directory_uri().’/js/transit.js’,”,”,true);
wp_enqueue_script(‘transit’);
wp_register_script( ‘ajaxcomments’,   get_template_directory_uri().’/js/ajaxcomments.js’,”,”,true);
wp_enqueue_script(‘ajaxcomments’);
wp_localize_script(‘ajaxcomments’, ‘addict_script_vars’, array(
            ‘success’ => __(‘Thanks for your comment. We appreciate your response.’, ‘addict’),
            ‘error’ => __(‘Please wait a while before posting your next comment!’, ‘addict’),
            ‘info’ => __(‘Processing…’, ‘addict’),
            ‘error2’ => __(‘You might have left one of the fields blank, or be posting too quickly!’, ‘addict’)

BS Brian Siu
Brian Siu
Member

/*admin sctipts*/
add_action(‘admin_enqueue_scripts’, ‘addict_scripts_admin’);
function addict_scripts_admin(){
wp_register_script( ‘custom_js55′,  get_template_directory_uri().’/js/simple-slider.js’);
wp_enqueue_script(‘custom_js55’);
wp_register_script( ‘custom_js66′,  get_template_directory_uri().’/js/jquery.elastic.source.js’);
wp_enqueue_script(‘custom_js66’);
wp_register_script( ‘custom_js77′,  get_template_directory_uri().’/ckeditor/ckeditor.js’);
wp_enqueue_script(‘custom_js77’);
wp_register_script( ‘custom99′, get_template_directory_uri().’/js/bootstrap-tooltip.js’,”,”,true);
wp_enqueue_script(‘custom99’);
}

MP Mr Papa
Mr Papa
Member

I dont see bootstrap loaded in there (just the tooltip which is admin only)…  so first thing to try is change these two lines:

wp_register_script( ‘custom_js2′,  get_template_directory_uri().’/js/jquery-ui-1.10.3.custom.min.js’,”,”,true);
wp_enqueue_script(‘custom_js2’);

to

wp_enqueue_script(‘jquery-ui-core’);

and see what happens…  that will load the wp copy of jquery ui instead of the theme supplied one…  may not be enough since I remember bootstrap, but maybe a plugin is adding that… worth a first try…

be sure to clear your browser cache…

BS Brian Siu
Brian Siu
Member

I made the change and it did not fix the problem.

 

Is this the bootstrap:

 

/*theme scripts*/
add_action(‘wp_enqueue_scripts’, ‘addict_my_scripts’);
function addict_my_scripts(){
wp_register_script( ‘bootstrap1′, get_template_directory_uri().’/js/bootstrap-transition.js’,”,”,true);
wp_enqueue_script(‘bootstrap1’);
wp_register_script( ‘bootstrap2′, get_template_directory_uri().’/js/bootstrap-tooltip.js’,”,”,true);
wp_enqueue_script(‘bootstrap2’);
wp_register_script( ‘bootstrap3′, get_template_directory_uri().’/js/bootstrap-button.js’,”,”,true);
wp_enqueue_script(‘bootstrap3’);
wp_register_script( ‘bootstrap4′, get_template_directory_uri().’/js/bootstrap-carousel.js’,”,”,true);
wp_enqueue_script(‘bootstrap4’);
wp_register_script( ‘bootstrap5′, get_template_directory_uri().’/js/bootstrap-collapse.js’,”,”,true);
wp_enqueue_script(‘bootstrap5’);
wp_register_script( ‘bootstrap6′, get_template_directory_uri().’/js/bootstrap-modal.js’,”,”,true);
wp_enqueue_script(‘bootstrap6’);
wp_register_script( ‘bootstrap7′, get_template_directory_uri().’/js/bootstrap-popover.js’,”,”,true);
wp_enqueue_script(‘bootstrap7’);

BS Brian Siu
Brian Siu
Member

I may have found part of the problem (maybe all). I deactivated W3 Total Cache (page caching plugin) and now I am able to see the profile tab. When I click on the subtabs though (for example – edit profile, edit identities, edit avatar, etc) it loads a page without any layout. So, what should I do?