Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › MULTISite option add blogs not working
This topic contains 6 replies, has 2 voices, and was last updated by Ernest Marcinko 9 years, 7 months ago.
- AuthorPosts
- April 14, 2014 at 4:52 pm #1692
THIS IS KILLING ME !!!!!!!!!!!!! NEED THIS PLUGIN TO WORK !!!! In multisite options, try to add more than 2 blogs…. no matter what you do, you will see that after adding a third or say 10 , ONLY the 1st two work… the rest get all scrambled up – SEE images below… image 3 is AFTER i added a few blogs, see they all “magically change” to foodlicious after i added and saved (image 2 is b4 i save)… last image shows code
2ND issue is it always doubles up on any buddypress results
-
This topic was modified 9 years, 7 months ago by
Greg McEwan Marriott.
April 15, 2014 at 9:29 am #1694Hi!
Can you please provide temporary administrator access? I would like to do a quick debugging if possible, as I couldn’t reproduce the error on my test environment.
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
April 15, 2014 at 10:00 am #1695No problem – I did attach my login details as admin – username *** pwd = *** at ***
-
This reply was modified 9 years, 7 months ago by
Ernest Marcinko. Reason: safety
April 15, 2014 at 2:54 pm #1697Hi!
I think I have found the source of the problem. Since I cannot overwrite files on your server, please open up the plugins/ajax-searhc-pro/backend/class/blogselect.class.php file and go to lines 24-36, you should see this:
if ($this->selected!=null && is_array($this->selected)) { foreach($this->selected as $k=>$v) { $echo = ""; foreach($this->types as $_type) { if ($_type['blog_id']==$v['blog_id']) { $_temp = get_blog_details($v['blog_id']); $echo = $_temp->blogname; break; } } echo '<li class="ui-state-default" bid="'.$v['blog_id'].'">'.$_temp->blogname.'</li>'; } }
Replace that code with this:
if ($this->selected!=null && is_array($this->selected)) { foreach($this->selected as $k=>$v) { $echo = ""; foreach($this->types as $_type) { if ($_type['blog_id']==$v) { $_temp = get_blog_details($v); $echo = $_temp->blogname; break; } } echo '<li class="ui-state-default" bid="'.$v.'">'.$echo.'</li>'; } }
It should fix the multisite issue!
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
April 15, 2014 at 10:39 pm #1703Hey… that worked !!! Problem solved thank you indeed for the time and effort – i have other issues now with not being able to get any results (ajax just spins in search) – so i would like to offer/ask for your help, to get this working on our site, I will happily pay for your time and offer our site as a live test environment – please let me know your rates
April 22, 2014 at 9:27 pm #1730any news?
April 23, 2014 at 8:13 am #1732Hi!
I couldn’t find yet the cause. The ajax request returns with an error 500 – internal server error. This can be caused by anything from minor function errors to syntax errors.
I might need temporary ftp access to do a step-by-step debugging on the plugin, and hopefully find the part which causes the fatal error. It’s usually minor conflict with other plugins, but it’s rather hard to find where the issue is 🙂
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
-
This topic was modified 9 years, 7 months ago by
- AuthorPosts
You must be logged in to reply to this topic.