Topic-icon JFBConnect breaks Jreview searchbox

Active Subscriptions:

None
12 years 4 months ago #40243 by espkri
After i installed JFBConnect, the search box on the frontpage www.landegode.com disappears. If i disable the JFBConnect system plugin, everything is working as normal. I have attached a screenshot which shows how it looks when i have disabled the plugin. Is there any way to fix this issue?

The topic has been locked.
Support Specialist
12 years 4 months ago #40246 by alzander
I'm very confused as to what could be happening. In the HTML on your page, I only see the following text for "City:":
<div class="jrFieldDiv jrHidden">  
    <center><strong>City:</strong><select name="data[Field][Listing][jr_city]" class="jr_city jrAutoComplete jrSelect" data-field="{&quot;name&quot;:&quot;jr_city&quot;,&quot;id&quot;:&quot;2&quot;}"></select>
</center>
</div>
That's creating a select box drop down for cities.. not a type-able input area, like you show in your picture. Additionally, the above has a jrHidden class, which is intentionally hiding it.

There are no Javascript errors or other issues on the page.

What I would test is the following:
* Disable any Open Graph plugins you've enabled for JFBConnect
* Disable the JFBCContent (content) plugin
* Disable any Social Profile plugins you may have enabled
* Disable any caching you have enabled (Generally in the Joomla -> Global Configuration area, but you may have a 3rd party extension that's managing caching for your site)
* Re-Enable the JFBCSystem plugin

Test again and see if that changes things. The JFBCSystem plugin enabled just about all features in JFBConnect, so disabling the other plugins will help narrow down where the problem actually is.

Also, if you know any more about how that search box works, that would be very helpful. Again, I'm seeing a select/drop-down box that's being hidden.. not an input search box, like you show.

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
12 years 4 months ago #40247 by espkri
I have removed the jrHidden class, but the issue is still the same. There is a option to set Jreview fields as searchable, and that´s why it changes from a drop down list to a text field. I tried to use the standard drop down list, but it´s also not working when the plugin System - JFBCSystem is enabled. The only plugin which is affecting the Jreviewis the System - JFBCSystem. I don't have any cache enabled in Joomla. I have disabled all JFBConnect plugin so you can take a look at the site. Another thing i have noticed is that if i clear the Jreview cache, the text box is visible one time until you do a refresh, so somehow it seems like some kind of caching issue.

I can provide an administrator user, if it is easier to search for the bug.
The topic has been locked.
Support Specialist
12 years 4 months ago #40261 by alzander
Thanks for disabling and letting me see it 'normally' working. Still not sure what's going on though. Can you Private Message me a set of admin credentials and we'll gladly investigate further to narrow down what's going wrong.

You can PM me by clicking the mail icon under my name to the left.

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
12 years 4 months ago #40343 by espkri
Hi Alex.

Any update on this issue? I was able to get the search box on the start page resolved by using a workaround, but it is the same problem with the CAPTCHA image picture disappearing when the JFBConnect plugin is running. It seems like JFB is interfering with jReview somehow.

Using Firebug i can see this error when JFBConnect plugin is enabled when i try to add i review:
Warning: mysql_fetch_row() expects parameter 1 to be resource, boolean given in /home/landegod/public_html/libraries/joomla/database/driver/mysql.php on line 396

Warning: mysql_free_result() expects parameter 1 to be resource, boolean given in /home/landegod/public_html/libraries/joomla/database/driver/mysql.php on line 439

Warning: mysql_fetch_row() expects parameter 1 to be resource, boolean given in /home/landegod/public_html/libraries/joomla/database/driver/mysql.php on line 396

Warning: mysql_free_result() expects parameter 1 to be resource, boolean given in /home/landegod/public_html/libraries/joomla/database/driver/mysql.php on line 439
{"captcha":"\"","token":"cbf8fb2cab266834375fddf1a43c8643"}
The topic has been locked.
Support Specialist
12 years 4 months ago #40368 by alzander
Sorry for not getting back to you sooner. First, I just tried to register on your site using Facebook. When I did, the FB popup had the following message:

This app is in sandbox mode. Edit the app configuration at developers.facebook.com/apps to make the app publicly visible.

You'll need to go to that URL and set the "Sandbox Mode" setting to "Disabled". That's the only setting we can't control with Autotune, unfortunately.

Regarding the captcha, I see the same behavior you mention where the image isn't showing. However, I'm not sure what JFBConnect is doing to prevent that behavior. We'll need to get Alejandro from jReviews to help narrow things down. Basically, from what I can see from doing a good bit of debugging on your site:
1) The form loads and calls:
var initiliazingForm = jreviews.dispatch({method:'get',type:'json',controller:'common',action:'_initForm',data:{'data[form_id]':form_id,'data[captcha]':captchaDiv.length}});
2) That load seems to be generating an AJAX request to the below URL (but I know something is wrong here, because that always comes back with a 404):
index.php?option=com_jreviews&format=json&tmpl=component&lang=en&controller=common&action=_initForm&form_id=jr-form-review-0&captcha=1
3) After that AJAX call is complete, the following is *supposed* to be triggered:
initiliazingForm.done(function(res) {
     form.find('span.jr_token :input').attr('name',res.token);
     ...
In that block is where the captcha image is inserted on the page.

Something between that AJAX call and the response is preventing the captcha from being replaced. However, I don't know JReviews code well enough to understand what the response from the request above should be. If it's possible to get the jReviews devs to let me know what the actual direct call above (that I'm getting a 404 on) is, I can try it and see what the 'bad' response is. That should be enough to get a PHP warning or something that would explain where things are going south.

Finally, for the MySQL messages you show above, I was never able to recreate those. If you're seeing those, they could be the cause. I (again) don't know where those would be coming from in JFBConnect as we haven't heard of that PHP notice before.. but narrowing that down may solve the issue as well.

I hope that helps get things started,
Alex
The topic has been locked.