Enthusiast 404 Error

Everything related to the visual and coding aspects of websites.
Chibi
Posts: 592
Joined: Wed Jul 04, 2012 7:17 am
Location: Themyscira
Contact:

Enthusiast 404 Error

Post by Chibi »

Hey guys! I'm having a tiny problem with my Enthusiast script and I thought I'd ask here (since I don't feel comfortable asking over at TFL or anywhere else...).

The problem I'm having is this: in the members page, every time I select a country from the drop-down menu, it gives me a 404 error. I'm not sure why. I'm using query strings in my fls and I've modified the one for the members page so it wouldn't give me any strange errors on the members list. This is how it looks like:

Code: Select all

<? } elseif (substr_count($_SERVER['QUERY_STRING'], "list")) { ?>

<h1>Fans</h1>

<?php include 'config.php';
      include ENTH_PATH . 'show_sort.php';
      $show_sort_field = true;
      include ENTH_PATH . 'show_members.php'; ?>
Not sure what I'm doing wrong here. Any help is more than appreciated! :heart:
Crystal
Posts: 2320
Joined: Thu Jul 19, 2012 5:02 pm
Location: Alberta Canada
Contact:

Re: Enthusiast 404 Error

Post by Crystal »

All I can really think of is something may be entered wrong in the admin panel but I'm not really sure. I'd need more to work with. I also use a different include which I don't think helps either.
There are shadows before us - but only because the light is at our back.
Larissa
Time Traveler
Posts: 597
Joined: Mon Jul 16, 2012 9:37 pm
Contact:

Re: Enthusiast 404 Error

Post by Larissa »

What do your settings look like for your fanlisting? Specifically, what do you have set as the URL for the list page in Enthusiast, on that specific listing's settings page under owned?

Query strings sometimes act strangely when you're using a script like Enthusiast, which appends the country to the URL. If you can link the fanlisting you're having trouble with, that would help, too.
tonight fate is the
Chibi
Posts: 592
Joined: Wed Jul 04, 2012 7:17 am
Location: Themyscira
Contact:

Re: Enthusiast 404 Error

Post by Chibi »

Ahh, I feel a bit like an idiot now! I had the wrong links in the fanlisting settings, so I updated them so they would work with query strings. Thanks for suggesting that, girls! :heart: But now whenever I click on a country from the drop-down menu, no fans show up... I think this has happened to me before, but I can't remember how I fixed the problem. :(

Here's one of the fanlistings I'm having this problem with.

@ Crystal: I'm quite curious now, what kind of query strings do you use?
Larissa
Time Traveler
Posts: 597
Joined: Mon Jul 16, 2012 9:37 pm
Contact:

Re: Enthusiast 404 Error

Post by Larissa »

The query string you have for your list page is the correct one to use -- like I said above, you do need a different one since Enth appends the country & page to the end of the URL, and it won't work if you don't have the "substr_count" part.

Do you have just "?list" in your settings, or the full page name, "index.php?list"? If you don't have the full page, that might be your error -- I run into that a lot.
tonight fate is the
Crystal
Posts: 2320
Joined: Thu Jul 19, 2012 5:02 pm
Location: Alberta Canada
Contact:

Re: Enthusiast 404 Error

Post by Crystal »

Chibi wrote:@ Crystal: I'm quite curious now, what kind of query strings do you use?
Mine looks like this:

Code: Select all

<?php } elseif (substr_count($_SERVER['QUERY_STRING'], 'members')) { ?>
<h1>The list of fans.</h1>
<?php include $path . 'show_sort.php';
include $path . 'show_members.php'; ?>
But that's just because of how I have it set up. I had to change things up a little bit so the members list would work for me.
There are shadows before us - but only because the light is at our back.
Chibi
Posts: 592
Joined: Wed Jul 04, 2012 7:17 am
Location: Themyscira
Contact:

Re: Enthusiast 404 Error

Post by Chibi »

Thanks for the suggestion, Larissa, but looking at Crystal's code made me figure out what was wrong! Just for the record if anyone is having the same problem, I just removed the line $show_sort_field = true; and now everything works. :)

Thank you girls for your help! :heart:
Crystal
Posts: 2320
Joined: Thu Jul 19, 2012 5:02 pm
Location: Alberta Canada
Contact:

Re: Enthusiast 404 Error

Post by Crystal »

Yay! I'm glad everything's working now. :D
There are shadows before us - but only because the light is at our back.
Larissa
Time Traveler
Posts: 597
Joined: Mon Jul 16, 2012 9:37 pm
Contact:

Re: Enthusiast 404 Error

Post by Larissa »

Glad you figured it out!
tonight fate is the
Post Reply