Jump to content


- - - - -

RESOLVED: Random Errors


This topic has been archived. This means that you cannot reply to this topic.
13 replies to this topic

#1 Brad

Brad

    Post-aholic

  • IM Supporters
  • PipPipPipPipPipPipPip
  • 636 posts

Posted 30 October 2005 - 02:01 AM

I have a little problem.

Everyone knows the dreaded sql error page. (The one with the box of writing).

Well, I have them on my website sometimes, and sometimes not. But I believe they should never come up. How can I fix it?

#2 Michael

Michael

    See code 431.322.12 of the Internet Privacy Act

  • Modders
  • PipPipPipPipPipPipPipPipPipPip
  • 22,042 posts

Posted 30 October 2005 - 02:51 AM

I'd have to know what the specific error is, it'll come up for any number of reasons and you have to see what it was trying to do when it got the error to find out how to fix it.
Michael McCune - IPS Marketplace Moderator

My Stuff: My Forum · My Resources · My Tutorials
Contact Me: Email · Facebook · Twitter

#3 Brad

Brad

    Post-aholic

  • IM Supporters
  • PipPipPipPipPipPipPip
  • 636 posts

Posted 30 October 2005 - 04:06 AM

When the error appears again, I will show you a screenshot smile.gif

#4 Brad

Brad

    Post-aholic

  • IM Supporters
  • PipPipPipPipPipPipPip
  • 636 posts

Posted 13 November 2005 - 12:54 PM

Well, sorry for the long time waiting laugh.gif. I have the picture of it, and Im almost certain it has something to do with the HTML Signature Permission mod. smile.gif



This doesnt happen all the time, but it would be nice if it didnt happen at all.

Thanks flowers.gif

#5 maruf

maruf

    Programmer

  • IM Supporters
  • PipPipPipPipPipPip
  • 319 posts

Posted 13 November 2005 - 02:36 PM

Just shoot an e-mail to your host. Somehow your database got messed up. it happened to me a few days ago but they corrected it for me smile.gif

#6 Brad

Brad

    Post-aholic

  • IM Supporters
  • PipPipPipPipPipPipPip
  • 636 posts

Posted 13 November 2005 - 04:45 PM

Ok, I'll check that out, thanks smile.gif

#7 DistantWords

DistantWords

    Programmer

  • IM Supporters
  • PipPipPipPipPipPip
  • 494 posts

Posted 13 November 2005 - 05:11 PM

Your host isn't Vizaweb is it?  Because that's been happening to me a LOT as well.  I've been getting emails from the host talking about difficulties on their end or something...
Posted Image

#8 Brad

Brad

    Post-aholic

  • IM Supporters
  • PipPipPipPipPipPipPip
  • 636 posts

Posted 13 November 2005 - 05:34 PM

Nah, I'm with http://1and1.com

#9 Michael

Michael

    See code 431.322.12 of the Internet Privacy Act

  • Modders
  • PipPipPipPipPipPipPipPipPipPip
  • 22,042 posts

Posted 14 November 2005 - 02:08 AM

I would need to see that full error message to know what the problem is.  Instead of posting a screenshot of the error, please copy and paste the error message into a post here.  The critical part of that error message, the part that it actually is having problems with, is below that actual text visual in your screenshot.
Michael McCune - IPS Marketplace Moderator

My Stuff: My Forum · My Resources · My Tutorials
Contact Me: Email · Facebook · Twitter

#10 Brad

Brad

    Post-aholic

  • IM Supporters
  • PipPipPipPipPipPipPip
  • 636 posts

Posted 14 November 2005 - 03:49 PM

Ok, I'll get do that as soon as I can!

#11 Brad

Brad

    Post-aholic

  • IM Supporters
  • PipPipPipPipPipPipPip
  • 636 posts

Posted 15 November 2005 - 04:15 PM

CODE
mySQL query error: SELECT m.id,m.name,m.mgroup,m.email,m.joined,m.posts, m.last_visit, m.last_activity,
                 m.warn_level, m.warn_lastwarn, m.members_display_name,
                 me.*,
                g.g_id, g.g_title, g.g_icon, g.g_dohtml, g.g_sightml mt.*, msg.*
                FROM RPmessage_topics mt
                 LEFT JOIN RPmessage_text msg ON (mt.mt_msg_id=msg.msg_id)
                 LEFT JOIN RPmembers m ON (mt.mt_from_id=m.id)
                 LEFT JOIN RPmember_extra me ON (mt.mt_from_id=me.id)
                 LEFT JOIN RPgroups g ON (g.g_id=m.mgroup)
                WHERE mt.mt_owner_id=1286 AND mt.mt_vid_folder='in' ORDER BY mt_date DESC LIMIT 0,1

SQL error: 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 '.*, msg.*
                FROM RPmessage_topics mt
                 LEFT JOIN RPmessa
SQL error code:
Date: Tuesday 15th of November 2005 11:13:16 AM


I wonder if this is the problem behind my PM box problem aswel?? unsure.gif

#12 Michael

Michael

    See code 431.322.12 of the Internet Privacy Act

  • Modders
  • PipPipPipPipPipPipPipPipPipPip
  • 22,042 posts

Posted 15 November 2005 - 06:16 PM

Open your sources/sql/mysql_queries.php file and find function msg_get_new_pm_notification.  Look for the g.g_sightml in that function and put a comma after it:
CODE
    # Updated (msg_get_new_pm_notification) in v2.1 [changed LIMIT ADDED m.members_display_name ]
    function msg_get_new_pm_notification( $a )
    {
        return "SELECT m.id,m.name,m.mgroup,m.email,m.joined,m.posts, m.last_visit, m.last_activity,
                 m.warn_level, m.warn_lastwarn, m.members_display_name,
                 me.*,
                g.g_id, g.g_title, g.g_icon, g.g_dohtml, g.g_sightml, mt.*, msg.*
                FROM ".SQL_PREFIX."message_topics mt
                 LEFT JOIN ".SQL_PREFIX."message_text msg ON (mt.mt_msg_id=msg.msg_id)
                 LEFT JOIN ".SQL_PREFIX."members m ON (mt.mt_from_id=m.id)
                 LEFT JOIN ".SQL_PREFIX."member_extra me ON (mt.mt_from_id=me.id)
                 LEFT JOIN ".SQL_PREFIX."groups g ON (g.g_id=m.mgroup)
                WHERE mt.mt_owner_id={$a['mid']} AND mt.mt_vid_folder='in' ORDER BY mt_date DESC LIMIT {$a['limit_a']},1";
    }

Michael McCune - IPS Marketplace Moderator

My Stuff: My Forum · My Resources · My Tutorials
Contact Me: Email · Facebook · Twitter

#13 Brad

Brad

    Post-aholic

  • IM Supporters
  • PipPipPipPipPipPipPip
  • 636 posts

Posted 15 November 2005 - 08:11 PM

biggrin.gif

Errors have been fixed, and the PM box problem is now rectified. All this has been fixed from one little comma! laugh.gif

Thanks alot, you may now close this and the pm box topic smile.gif

#14 Michael

Michael

    See code 431.322.12 of the Internet Privacy Act

  • Modders
  • PipPipPipPipPipPipPipPipPipPip
  • 22,042 posts

Posted 15 November 2005 - 08:44 PM

The issue this topic was opened for has now been resolved.  If you need further assistance, please open a new topic.  If this topic was closed prematurely, please contact me so I can re-open it. smile.gif

Topic Closed
Michael McCune - IPS Marketplace Moderator

My Stuff: My Forum · My Resources · My Tutorials
Contact Me: Email · Facebook · Twitter