Author Topic: Ajax Listing + Sh404SEF = Not working  (Read 4675 times)

Arnaud

  • Newbie
  • *
  • Posts: 43
    • View Profile
Ajax Listing + Sh404SEF = Not working
« on: 28 March 2008, 12:08 »
Hi Samir,

I'm currently testing SEF solutions. And there's a problem with Sh404SEF : the plugin (XML or PHP) don't work. I have this message :

Quote
There was a problem with the request.


If i deactivate Sh404SEF, the plugin is loaded correctly.

How can i solve this issue, please ?

Saka

  • Administrator
  • Hero Member
  • *****
  • Posts: 2,453
    • View Profile
    • Sakic.Net
Re: Ajax Listing + Sh404SEF = Not working
« Reply #1 on: 28 March 2008, 14:41 »
I will have to install it and test.
Don't you use SEF Advance anyway? :)

Arnaud

  • Newbie
  • *
  • Posts: 43
    • View Profile
Re: Ajax Listing + Sh404SEF = Not working
« Reply #2 on: 02 April 2008, 11:35 »
Hi Emir !

I can't buy it for the moment (money money money !). But, as i said to you, i will buy it but later...

Do you have found how to fix the problem with Sh404 ?

Saka

  • Administrator
  • Hero Member
  • *****
  • Posts: 2,453
    • View Profile
    • Sakic.Net
Re: Ajax Listing + Sh404SEF = Not working
« Reply #3 on: 02 April 2008, 17:24 »
sh404sef puts 404 header when included by some reason. That's why AJAX listing displays "There was a problem with the request.", because its returned status is 404 not found, which sh404sef has set up.

I don't think I should put a "fix" for something that's done incorrectly in another component. However, even though it's not a real solution, you can skip the error by editing modules/mod_ajaxlisting.js file.
Find this line:
if (lst_http_request.status == 200) {
replace it with this:
if (lst_http_request.status == 200 || lst_http_request.status == 404) {

Arnaud

  • Newbie
  • *
  • Posts: 43
    • View Profile
Re: Ajax Listing + Sh404SEF = Not working
« Reply #4 on: 02 April 2008, 18:23 »
Thank you very much for your help, Emir ;)

Gonna try it and inform the author !