Results 1 to 9 of 9

Thread: Mass Mailer - notifies - supplied argument is not a valid MySQL result resource

  1. #1
    windy's Avatar
    Join Date
    Sep 2006
    Posts
    46

    Default Mass Mailer - notifies - supplied argument is not a valid MySQL result resource

    Hi

    Cron seems to be not working - error message.

    - Start email send -
    Total queued emails: 3
    Ready for send: 3

    Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/wayno/public_html/mysite/periodic/notifies.php on line 165

    Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/wayno/public_html/mysite/periodic/notifies.php on line 184

    Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/wayno/public_html/mysite/periodic/notifies.php on line 202
    Processed emails: 1
    Processed emails with errors: 0


    so when sending out mail through the mass mailer

    only people who have signed up for the news letter recieves it

    and not the members.

    Send to members and send to subscribers have been checked

    and members have opted to recieve mail but do not get any?

    any advice please?

    Many thanks

    Wendy
    Last edited by windy; 09-09-2007 at 06:50 PM. Reason: more info

  2. #2
    windy's Avatar
    Join Date
    Sep 2006
    Posts
    46

    Default

    OK

    Maybe I can put this another way.

    Has anyone got cron fully working with 6.0.1

    Many thanks

    Wendy

  3. #3
    azaraphale
    Guest

    Default

    nope - have the same problem - so you're not alone. my crons are right, I've edited the notify.php file and added @ before the mysql on the lines listed, but all that done was stop the error coming up - still doesn't send - sits :

    - Start email send -
    Total queued emails: 1076
    Ready for send: 200
    Processed emails: 0
    Processed emails with errors: 0

    like that. would be good if somebody knew anything about the sql sends in the notify file and now they link with sendmail.

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

    Default

    checking notifies.php - you folks will see.... that this query is used for the latter work in the code:

    Code:
    SELECT
    				NotifyQueue.Email as ID1,
    				NotifyQueue.Msg as ID2,
    				Profiles.RealName as Name,
    				Profiles.Email,
    				NotifyMsgs.Subj,
    				NotifyMsgs.HTML as Body
    			FROM NotifyQueue
    			
    			INNER JOIN NotifyMsgs
    			ON (NotifyMsgs.ID =  NotifyQueue.Msg)
    			
    			INNER JOIN Profiles
    			ON (Profiles.ID = NotifyQueue.Email)
    			
    			WHERE
    				NotifyQueue.`From` = 'Profiles' AND
    				Profiles.EmailNotify  = 'NotifyMe' AND
    				Profiles.EmailFlag = 'HTML'";
    this query has no variables in it (it is ok as is) - so you can run it in mysql - and see what happens.... doing that results in:

    Code:
    SELECT NotifyQueue.Email AS ID1, NotifyQueue.Msg AS ID2, Profiles.RealName AS Name, Profiles.Email, NotifyMsgs.Subj, NotifyMsgs.HTML AS Body
    FROM NotifyQueue
    INNER JOIN NotifyMsgs ON ( NotifyMsgs.ID = NotifyQueue.Msg )
    INNER JOIN Profiles ON ( Profiles.ID = NotifyQueue.Email )
    WHERE NotifyQueue.`From` = 'Profiles'
    AND Profiles.EmailNotify = 'NotifyMe'
    AND Profiles.EmailFlag = 'HTML'
    LIMIT 0 , 30
    MySQL said:
    #1054 - Unknown column 'Profiles.RealName' in 'field list'
    Checking the Profiles table... there is NO

    Code:
    RealName
    field - thus - the bug/problem.

    Changing

    Code:
    Profiles.RealName AS Name
    to

    Code:
    Profiles.NickName AS Name
    results in an SQL query with no errors.

    I'm I a genius or what.

    Give it a try on your site(s). I did not test it - just ran some queries in mysql to test the faulty query and fix to end up with a "clean" one.

    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
    Administrator Smoge's Avatar
    Join Date
    Mar 2005
    Posts
    6,634
    Blog Entries
    5

    Default

    oh - my check and possible fix was in 6.0.1 - but perhaps 6.0.0 is the same?

    Question is - how could such an issue be missed in the beta testing, v6.0.0 release, AND the 6.0.1 release.

    Oh well - tell me if it works.

    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.

  6. #6
    null_master
    Guest

    Default

    Quote Originally Posted by Smoge View Post
    checking notifies.php - you folks will see.... that this query is used for the latter work in the code:
    very cool you explain how you found fix the problem

    we all can learn to do same

    null_master

  7. #7
    windy's Avatar
    Join Date
    Sep 2006
    Posts
    46

    Default

    Yes Smoge

    It now works with no errors.

    and yes indeed you are a genius

    Many thanks

    Wendy

  8. #8
    azaraphale
    Guest

    Default

    I concur Genius you are - thanks a lot mate, really appreciated.

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

    Default

    My "genius" comment was sarcastic... it was only to show how I troubleshooted the problem - this is why I put all the steps I did in the post - to show you folks an example of how to trouble shoot issues.

    There is no "genius" to it - just a set of steps to find the problem and fix it. This is what I was trying to get across.

    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. Mass Mailer / Letters Not Being Sent
    By elusuario in forum Dolphin General Discussion v5.3 to v5.6.5
    Replies: 15
    Last Post: 04-14-2010, 10:17 PM
  2. Mass Mailer Bug (Dolphin 6.1.4)
    By Smoge in forum Dolphin General Discussion v6.00 and above
    Replies: 0
    Last Post: 04-10-2009, 01:20 AM
  3. sort mass mailer
    By tester00 in forum Free Mod Exchange
    Replies: 10
    Last Post: 08-14-2006, 10:56 AM
  4. New mass mailer
    By ijk in forum General Issues, Comments, Questions
    Replies: 1
    Last Post: 01-19-2006, 05:11 AM
  5. Mass Mailer Problem
    By CyberDJ2 in forum Bugs aeDating v4.1.0
    Replies: 0
    Last Post: 11-07-2005, 12:48 PM

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
  •