Author Topic: User searches not producing any results  (Read 376 times)

mbajanen

  • Member2
  • **
  • Posts: 18
  • Karma: +0/-0
User searches not producing any results
« on: February 11, 2012, 12:45:53 PM »
I just loaded Etano. It seems quite awesome. However at first, couldn't get new blogs to show up. Then after thinking about it, I get it. Those cron jobs have to run. But the main issues I have are that there are 3 users and they don't show up under any search or users on line. Also when you go to photos you can see them and click on them, but when you view their profile it only shows their pictures and no profile info. I think everything is related to the search results issue.

I manually ran the gen_blogs_full.php and the blogs show up, but I manually run the cron_web.php and the cron.php and that doesn't resolve my search problem.

Does anyone have any ideas they can share?

Thank you

It seems that the only remaining issue I have is that I cannot be found unless the find both man and woman are checked, yet when I look in my profile, only man is checked.

Thank you
« Last Edit: February 11, 2012, 07:07:20 PM by mbajanen »

Berglomi

  • Member2
  • **
  • Posts: 4
  • Karma: +0/-0
Re: User searches not producing any results
« Reply #1 on: February 12, 2012, 01:47:26 PM »
Hmm, yes I have the same issue. I am a new user and I am running on a local install with xampp for the time being.

Perhaps it is a simple fix? Anyone... :?

Edit: This just applies to the advanced search.

« Last Edit: February 12, 2012, 01:59:19 PM by Berglomi »

Berglomi

  • Member2
  • **
  • Posts: 4
  • Karma: +0/-0
Re: User searches not producing any results
« Reply #2 on: February 12, 2012, 02:18:12 PM »
Ah, yes. Running the cron jobs that I've set up in Win Scheduled Tasks seem to have fixed the issue.
I thought running the cron.php, cron_web.php and gen_blogs_full.php would be sufficient, but no.

I found the solution in this post: http://forum.datemill.com/general/advance-search-issue-2970.0.html

mbajanen

  • Member2
  • **
  • Posts: 18
  • Karma: +0/-0
Re: User searches not producing any results
« Reply #3 on: February 12, 2012, 02:57:55 PM »
I don't see any recommendations there other than running cron.php, cron_web.php and gen_blogs_full.php.

What am I missing that worked for you?

Berglomi

  • Member2
  • **
  • Posts: 4
  • Karma: +0/-0
Re: User searches not producing any results
« Reply #4 on: February 12, 2012, 03:26:25 PM »
Well, it seems that most of these kinds of issues stem from not setting up or running the cron job correctly.
I've followed utah's guide and set up the cron job in Scheduled Tasks as I use windows, and it works for me with the search now. And I'm guessing the cron job solves a lot of other issues that might occur.

Make sure you follow the official documentation on setting up the cron jobs:
http://www.datemill.com/etano/wiki/doku.php?id=installation

If you are on a windows machine here's a step by step from utah:

--------------------------------------------
Setting up scheduled tasks for the cron jobs
--------------------------------------------

1. Open Notepad and type this: (if different path, then replace with the actual path to your cron.php file)
   start C:\xampp\php\php.exe -f "C:\xampp\htdocs\etano\tools\cron\cron.php"
2. Save as "cron.bat". (For instance C:\cron.bat)
3. From the Start menu choose: "All Programs", "Accessories", "System tools",  "Scheduled tasks".
4. Doubleclick "Add Scheduled Task", click on "Next".
5. Browse to your cron.bat file.
6. Choose a name for you task and click on "Daily" and then "Next".
7. Next, you'll see a window asking you to "select the time and day that you want this task to start". Just click "Next".
8. Type your windows user name and password and then click on "Next".
   (you need to set a passord or else the scheduled task may not run)
9. Ok, we're almost done. You are now presented with the option to "Open advanced properties for this task when you click Finish". Make sure you select that option, prior to clicking "Finish".
10. Click the "Schedule" tab, and then click the "Advanced" button.
11. You'll want to make sure the "Repeat Task" check box is selected. Once you do that, then you'll need to set it to repeat task every 5 minutes, for a  duration of 24 hours, every day.
12. Make sure your new schedule is correct, and then click OK.

-You may need to set a password for your windows user account or else scheduled tasks may not work properly.

-When you select the time for the scheduled task to run for the first time, you may want to set a time starting on the next whole hour, for instance 10:00, rather than just selecting the current time, for instance 9:43. But I dont really know if this is necessary because I dont know how the cron jobs are set up and works in relation to time.

-Check also the cron.bat file, that its pointing to the correct path.

mbajanen

  • Member2
  • **
  • Posts: 18
  • Karma: +0/-0
Re: User searches not producing any results
« Reply #5 on: February 12, 2012, 03:52:15 PM »
Thank you for your response.

Sorry for being a bit daft.

But I don't see what you're trying to tell me.

If you are pinpointing setting up a batch file to run those 3 cron jobs I mentioned then I've already done that and they are running fine. I can see that they update my blogs and user info the way they should, but they just don't resolve the issue of my profile doesn't show up under search for a man.

Sorry for missing your point, but I just don't see anything in your suggestion other than running those 3 jobs.

Thank you,

mbajanen

  • Member2
  • **
  • Posts: 18
  • Karma: +0/-0
Re: User searches not producing any results
« Reply #6 on: February 12, 2012, 06:26:18 PM »
Without doing anything further (other than page mods), I just magically began to show up.

So case closed and thank you for the help.

Cheers.

Berglomi

  • Member2
  • **
  • Posts: 4
  • Karma: +0/-0
Re: User searches not producing any results
« Reply #7 on: February 13, 2012, 01:26:12 AM »
How nice  :)

Good luck to you!

mbajanen

  • Member2
  • **
  • Posts: 18
  • Karma: +0/-0
Re: User searches not producing any results
« Reply #8 on: February 13, 2012, 06:03:23 PM »
Thank you,

I have more problems.

I think they are all related to the cron jobs.

1) Now I have 15 users and if I do advanced search for a man, it seems all the men show up. But if I do Advance search for a woman, only the first woman shows up.

2) Front page search doesn't find anyone except for the first 3 of us. Search for a woman finds my girl friend who was first. Search for a man only finds my son and I which were 2nd and 3rd users.

3) This is the most important one. When I am either in admin browsing all members or in front page and hit more members then the resulting page just shows me. So in Admin I can't manage users beyond the 1st page.

I've manually run the cron jobs and I also have them running (opening) from my Windows server from a batch job and that is specifically cron.php and cron_web.php and gen_blogs_full.php. They also run on Godaddy in Cron jobs 1/hr (since that is the lowest time interval).

I also went into /tools/cron/every folder in there and from a web browser ran every page that seemed by its name to perhaps have some impact.

Has anyone else had this experience and found some solution.

Website URL = http://www.milwaukeedatingscene.com

Berglomi, I appreciate your couple of suggestions, but can't for the life of me figure out what you are trying to point out in your most recent post that contained a reference to the maintenance or installation suggestions.

Any help is appreciated.

Thank you

mbajanen

  • Member2
  • **
  • Posts: 18
  • Karma: +0/-0
Re: User searches not producing any results
« Reply #9 on: February 13, 2012, 08:36:09 PM »
I found the license key in a post and used that with the web script and that seemed to solve all but one problem.

When I am in the admin panel and click members, I can see 10 members and there are 26 total. when I click on page 2, I only see myself. and the number of pages change to 1. this doesn't likely have anything to do with my profile. It just happens to be coincidence that after page one, I am the only 1 user that shows up. From the first page if I click page 3, same result. I am the only profile that shows up and the number of pages changes to 1.

maverick

  • Active Member
  • **
  • Posts: 1382
  • Karma: +93/-1
    • Etano Templates
Re: User searches not producing any results
« Reply #10 on: February 14, 2012, 07:54:30 AM »
Quote
I also went into /tools/cron/every folder in there and from a web browser ran every page that seemed by its name to perhaps have some impact.
This won't don't anything.

Quote
Has anyone else had this experience and found some solution.
The only solution is to make sure you have your cron jobs setup and running properly as per the instructions: http://www.datemill.com/etano/wiki/doku.php?id=installation

It's also important that your host allows cron jobs to run under 15 minutes, some of the crucial ones such as for profiles are run at 10 minute intervals.

When cron jobs aren't functioning properly you can try regenerating your skin as a temporary solution. In your Etano Admin Panel select "Skin Settings" from the menu and then click the "regenerate" link.
Etano Templates and Mods

http://www.maverickwebworks.com

mbajanen

  • Member2
  • **
  • Posts: 18
  • Karma: +0/-0
Re: User searches not producing any results
« Reply #11 on: February 14, 2012, 08:19:53 AM »
Thank you for that Maverick. I do have the Cron Jobs set up properly on my host, but they will only run 1/hr. So to compensate for that, I've set those pages to load 1/5min froma batch file on my Win 2008 Server.

Since all the searches produce the proper results now, I don't think my issue is related to the cron jobs.

The 2 remaining issues I have are that if you're on the home page and you click more users, the resulting page is just my profile. And the page drop down shows only 1 page.  Also, when I am in admin console, I click members and browse all and a page of 10 members shows up. on the bottom it shows 3 pages and if I click the 2 or the 3, then the resulting page says no members found meeting your search criteria. If I look in the database I see 30 users total so there really is 3 pages.

I did find the regenerate skin suggestion in one of the forums early on and whenever I am having an issue I try that and it does seem to refresh the displaying of database items, but now that the cron jobs are running correctly it doesn't seem to help or seem to be necessary.

In any case, I appreciate your effort to help.

Thank you

mbajanen

  • Member2
  • **
  • Posts: 18
  • Karma: +0/-0
Re: User searches not producing any results
« Reply #12 on: February 14, 2012, 11:08:05 PM »
I figured out the issue with click on more members and only shows my profile. As I suspected in the beginning there was something wrong with my member database record. I went and found that user referenced in any table and delete those records and now more members works properly. I still have the issue of browse members in admin console and hit page 2 or 3 and it shows no matching members found. But I think I likely missed some record in a table that refers to my deleted user ID. So I'll look through them again when I have time.

Thought I would share that result.

aphrodite

  • Member2
  • **
  • Posts: 7
  • Karma: +0/-0
Re: User searches not producing any results
« Reply #13 on: February 20, 2012, 10:39:16 AM »
im having quite similar issues, but i have no idea on programming haha im screwed

mbajanen

  • Member2
  • **
  • Posts: 18
  • Karma: +0/-0
Re: User searches not producing any results
« Reply #14 on: February 20, 2012, 08:35:11 PM »
I learned something this evening. If ou have the same issue I do, then when you are in the admin section and hit browse all members it shows you 10 users and when you click page 2 for example, it goes back to the search page instead of displaying the next 10 members. But what I discovered is that if you click on members and you see the search windows where you can eneter various search criteria, click search there without entering any criteria. Now you can hit page 2 or 3 in my case or presumably any page if you have more than 3 ( I don't). This helps me out tremendously, because although it's a little painful, at least I can get at the members.

Hope this helps you.

- Mark