Results 1 to 9 of 9

Thread: error message

  1. #1
    im5150
    Guest

    Default error message

    I am getting this after installation

    can someone help me

    SELECT Profiles.ID, Headline, Country, Occupation, City, Sex, Sex2, ProfileType, NickName, Children, MerchantPrice, LEFT( DescriptionMe, 180 ) AS DescriptionMe, LEFT( DescriptionYou, 100 ) AS DescriptionYou, DateOfBirth, DateOfBirth2, Pic_0_addon, Sound, (LastNavTime > SUBDATE(NOW(), INTERVAL 5 MINUTE)) as is_onl FROM Profiles WHERE Status = 'Active' AND Picture = '1' AND (LookingFor = 'female' OR LookingFor = 'both') AND (IF('male'='both' or 'male'='couple',1,Sex='male')) AND (IF('male'='couple',ProfileType='couple',ProfileTy pe!='couple')) ORDER BY Priority DESC, Priority DESC, Profiles.LastLoggedIn DESC LIMIT -10, 10Error
    Database access error

  2. #2
    Administrator Smoge's Avatar
    Join Date
    Mar 2005
    Posts
    6,634
    Blog Entries
    5

    Default

    I have seen this before.... if you have no users in your database - and if I am not mistaken, they need to be "active" - you will get this error on search, when you do a fresh install.

    Smoge
    ModMySite Administrator

    Problems? Questions? Need modifications or other help with your site?

    Open A Ticket , Send Us An Email Or Give Us A Telephone Call +1 518-632-4152.

  3. #3
    im5150
    Guest

    Default I have tried that

    it still does it

    any other idea

  4. #4
    Administrator Smoge's Avatar
    Join Date
    Mar 2005
    Posts
    6,634
    Blog Entries
    5

    Default

    Is this a fresh install, or an upgrade from a previous release (updated database)?

    Smoge
    ModMySite Administrator

    Problems? Questions? Need modifications or other help with your site?

    Open A Ticket , Send Us An Email Or Give Us A Telephone Call +1 518-632-4152.

  5. #5
    im5150
    Guest

    Default Hey

    Its a fresh install

  6. #6
    im5150
    Guest

    Default

    This is what it tells me in the DB. The x's is my info. I just xed them so they can not be seen



    $db['host'] = 'localhost';
    $db['sock'] = '';
    $db['port'] = '';
    $db['user'] = 'xxxxxx_xxxxx;
    $db['passwd'] = 'XXXXXXXX';
    $db['db'] = 'XXXXXXX_XXXXXXX';

  7. #7
    im5150
    Guest

    Default Another Error

    Error in /search_result.php: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '-10, 10' at line 1
    Query: 'SELECT Profiles.ID, Headline, Country, Occupation, City, Sex, Sex2, ProfileType, NickName, Children, MerchantPrice, LEFT( DescriptionMe, 180 ) AS DescriptionMe, LEFT( DescriptionYou, 100 ) AS DescriptionYou, DateOfBirth, DateOfBirth2, Pic_0_addon, Sound, (LastNavTime > SUBDATE(NOW(), INTERVAL 5 MINUTE)) as is_onl FROM Profiles WHERE Status = 'Active' AND (LookingFor = 'female' OR LookingFor = 'both') AND (IF('male'='both' or 'male'='couple',1,Sex='male')) AND (IF('male'='couple',ProfileType='couple',ProfileTy pe!='couple')) AND (TO_DAYS(DateOfBirth) BETWEEN TO_DAYS('1964-12-13') AND (TO_DAYS('1987-12-13')+1)) ORDER BY Priority DESC, Priority DESC, Profiles.LastLoggedIn DESC LIMIT -10, 10'

  8. #8
    im5150
    Guest

    Default I dont want to ask them

    The last time I asked them to do something for me. They uploaded my stuff without asking me causing me to lose my lang file. I just spent 2 days fixing. Stupid me didnt back it up.

    I would perfer to get my answers here because it seems that these people in here have a better head on their shoulders the AEHating do.

    Thanks

  9. #9
    Administrator Smoge's Avatar
    Join Date
    Mar 2005
    Posts
    6,634
    Blog Entries
    5

    Default

    Hi,

    IM5150 asked me to look at this - and while I did not fix the query itself in the PHP at this point - the problem does "go away" with a "active" male and female (and perhaps you would want a valid couple) profile in the database - who are looking for the opposite sex ...

    The problem is - if no results are returned by search - it "pukes" - with some valid "active" members - it's OK.

    Smoge
    ModMySite Administrator

    Problems? Questions? Need modifications or other help with your site?

    Open A Ticket , Send Us An Email Or Give Us A Telephone Call +1 518-632-4152.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Error message - help!
    By Stuart in forum Database
    Replies: 6
    Last Post: 02-01-2009, 11:59 AM
  2. Error Message
    By daveofgv in forum Dolphin General Discussion v6.00 and above
    Replies: 1
    Last Post: 01-31-2008, 11:48 PM
  3. Sent message error
    By happipappi in forum General Troubleshooting
    Replies: 3
    Last Post: 05-05-2006, 01:32 AM
  4. Error Message
    By australian in forum General Troubleshooting
    Replies: 0
    Last Post: 12-16-2005, 07:43 PM
  5. Another Error Message
    By outlander in forum General Troubleshooting
    Replies: 0
    Last Post: 12-15-2005, 04:25 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •