Problem in displaying image


#1

Hi, I have an issue when I click on a photo : "Uncaught Error: Syntax error, unrecognized expression"

  
  

  
      
                  
          
 

jquery.min.js line 4

photos cannot be displayed I do not know if another plugin interfere, or if it's bug whose gonna be fixed

Thank you in advance for your answer.

Fun.


#2

Hi, Could you provide a link to your website?


#3

Sorry , I set up a local server to work on


#4

I guess the media lightbox might not work due to the error in js. Try disabling it by going to your BuddyPress Media Settings, then uncheck "Enable Lighbox on Media".

This is just a guess as we can't debug your issue in realtime.


#5

Yep it works when I disable Lightbox on Media, do you have idea of why this doesn't work?


#6

Great. As I told, I wouldn't be able to tell you exactly what could be the issue unless I debug it on the setup, but looks like some js conflict or js error with some other plugin. You could also try deactivating the remaining plugins keeping the lightbox enabled and then reactivate each plugin one by one till you find the culprit.


#7

I find the culprit :

    wp_deregister_script('jquery');  
wp_register_script('jquery','http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js', false, '');  
wp_enqueue_script('jquery');  

I changed it with:

    wp_deregister_script('jquery');  
wp_register_script('jquery','http://code.jquery.com/jquery-1.8.3.min.js', false, '');  
wp_enqueue_script('jquery');  

and it works

Thank you Joshua for your help.


#8

Glad to know you could resolve the issue :slight_smile:


#9