Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: ekfaysal on August 14, 2008, 05:07:03 AM

Title: My announcements or newslatters are not delivered
Post by: ekfaysal on August 14, 2008, 05:07:03 AM
Hi
i m facing a strange problm
my announcements or newslatters are not delivered.
i tried expanding newslatter option then i  tried sending saperate newslatter to my own user of email but that is not deleivered too.
Anybody help me please
Title: Re: My announcements or newslatters are not delivered
Post by: Nathaniel on August 18, 2008, 08:51:01 AM
Are you receiving any errors in your error log?
Forum Error Log (http://docs.simplemachines.org/index.php?topic=150)
Title: Re: My announcements or newslatters are not delivered
Post by: ekfaysal on August 21, 2008, 06:38:05 AM
in forum maintanance it shows no error found when i click find and repair errors
Title: Re: My announcements or newslatters are not delivered
Post by: Rumbaar on August 31, 2008, 05:40:57 AM
Are you able to receive any mail at all from your forum?  Or is it just announcements/newsletters?

ie notifications, PM notifications or password reminder mails, etc.
Title: Re: My announcements or newslatters are not delivered
Post by: ekfaysal on August 31, 2008, 06:32:34 AM
yes right
i cannot send any notification etc too
it shows no error but emails not recievd
Title: Re: My announcements or newslatters are not delivered
Post by: Rumbaar on August 31, 2008, 06:36:09 AM
What are the settings you are using for mail? phpmail() or SMTP.

Try alternate ways and see from the current settings you have.  Did it ever work?
Title: Re: My announcements or newslatters are not delivered
Post by: ekfaysal on August 31, 2008, 04:20:12 PM
sorry
but how to check that option
Title: Re: My announcements or newslatters are not delivered
Post by: wmcintosh on August 31, 2008, 04:25:09 PM
Admin > Server Settings > click Feature Configuration tab.

Oops, wasn't thinking when posting this, thats how its on 1.1.5, no idea on 2.x
Title: Re: My announcements or newslatters are not delivered
Post by: greyknight17 on August 31, 2008, 04:57:04 PM
Under Maintenance, go to Mail > Mail Settings tab to check your email settings.

Was this setting ever working at all in the past?
Title: Re: My announcements or newslatters are not delivered
Post by: ekfaysal on September 01, 2008, 01:47:49 PM
it is php default
and i beleive it was working for me in past
not now
Title: Re: My announcements or newslatters are not delivered
Post by: Rumbaar on September 01, 2008, 06:04:12 PM
Have you had words with your host then?  They might have disabled or turned of phpmail without telling you, I know of hosts that operate like this.

Alternately you can try SMTP and see if that works for you, just make sure you put in 100% correct details.
Title: Re: My announcements or newslatters are not delivered
Post by: ekfaysal on September 02, 2008, 03:34:06 AM
SMTP  option is not working too
Title: Re: My announcements or newslatters are not delivered
Post by: Rumbaar on September 02, 2008, 07:17:53 AM
SMTP will/should always work if correct.

What mail server are you trying to use?  What is the errors you are getting in your log when it's trying to send mail?
Title: Re: My announcements or newslatters are not delivered
Post by: ekfaysal on September 02, 2008, 12:25:59 PM
i cant see any error generated by my user in error log
there are errors but generated by Otherz
Title: Re: My announcements or newslatters are not delivered
Post by: Rumbaar on September 02, 2008, 06:15:38 PM
Well you should see an error relating to not being able to send mail or problem sending mail, with maybe an error code other other details.  The forum is trying to send the mail, so it might not be linked to a user.
Title: Re: My announcements or newslatters are not delivered
Post by: ekfaysal on September 03, 2008, 08:09:35 AM
Quote
http://dreamsmania.com/index.php?/topic,6273.10.html
8: Undefined offset: 302
File: /home/dreamsma/public_html/Themes/default/GenericControls.template.php (main sub template - eval?)
Line: 865
Quote
http://dreamsmania.com/index.php?/topic,6273.0/topicseen.html
8: Undefined offset: 302
File: /home/dreamsma/public_html/Themes/default/GenericControls.template.php (main sub template - eval?)
Line: 865

Quote
http://dreamsmania.com/index.php?/topic,4043.0/topicseen.html
8: Undefined offset: 302
File: /home/dreamsma/public_html/Themes/default/GenericControls.template.php (main sub template - eval?)
Line: 865
Quote
http://dreamsmania.com/index.php?/topic,6271.new.html
8: Undefined offset: 302
File: /home/dreamsma/public_html/Themes/default/GenericControls.template.php (main sub template - eval?)
Line: 865


these are the errors but i dont understand all these
Title: Re: My announcements or newslatters are not delivered
Post by: Rumbaar on September 03, 2008, 08:25:46 AM
Well there isn't a line 865 normally in that file, and I'm not sure what might be calling it to speculate.  So will try to find the true source.

This is an eval error too, the error might not even be in that file.

You'll have to disable template eval temporarily to get the real file and error line.

To do this, run this query in PHPmyAdmin (What is phpMyAdmin? (http://www.simplemachines.org/community/index.php?topic=21919.0))
Code: [Select]
INSERT INTO smf_settings VALUES ('disableTemplateEval', 1);Once that's done, get the error again and copy it (the file and line may have changed), then run this query to re-enable it:
Code: [Select]
DELETE FROM smf_settings WHERE variable = 'disableTemplateEval';
Title: Re: My announcements or newslatters are not delivered
Post by: ekfaysal on September 04, 2008, 12:42:33 AM
i have executed the query
then tried

now this is error

Quote
˙·٠•● ۰FaYsi (●̪•)    Today at 09:40:49 AM
 119.30.77.198      b211d9c0250f9c24c1bdf8ef246a3694
     Type of error: Undefined
 http://dreamsmania.com/index.php?/topic,6139.0.html
8: Undefined offset: 302
File: /home/dreamsma/public_html/Themes/default/Display.template.php
Line: 865
   
 ˙·٠•● ۰FaYsi (●̪•)    Today at 09:40:29 AM
 119.30.77.198      b211d9c0250f9c24c1bdf8ef246a3694
     Type of error: Undefined
Title: Re: My announcements or newslatters are not delivered
Post by: Rumbaar on September 04, 2008, 01:53:21 AM
Yeah that file doesn't normally have that many lines either.  Please attach yours.  Also list your installed mods, and even mods you've installed but removed.  I assume this might be due to code left over from a mod or incorrectly installed mod.
Title: Re: My announcements or newslatters are not delivered
Post by: ekfaysal on September 04, 2008, 02:04:27 PM
Quote
   Mod Name   Version   
1.   Ad Managment    2.3.3     [ Uninstall ] [ List Files ] [ Delete ]
2.   Wysiwyg Quick Reply    1.0     [ Uninstall ] [ List Files ] [ Delete ]
3.   Social Bookmarks for SMF 2    1.1     [ Uninstall ] [ List Files ] [ Delete ]
4.   AvatarOnBoard    2.0     [ Uninstall ] [ List Files ] [ Delete ]
5.   Related Topics    1.3 Beta 1     [ Uninstall ] [ List Files ] [ Delete ]
6.   nneonneo's AJAX ShoutBox    1.21   [ Apply Mod ] [ List Files ] [ Delete ]
7.   Recent Topics On Board Index    1     [ Uninstall ] [ List Files ] [ Delete ]
8.   AJAX Instant Quick Reply    1.0.1   [ Apply Mod ] [ List Files ] [ Delete ]
9.   Users Online Today    1.5.1     [ List Files ] [ Delete ]
10.   Auto Embed Video Clips    2.2     [ Uninstall ] [ List Files ] [ Delete ]
11.   SMF 1.0.13 / 1.1.5 / 2.0 b3.1 Update    1.0     [ Uninstall ] [ List Files ] [ Delete ]
12.   Pretty URLs - Base    0.8.4   [ Apply Mod ] [ List Files ] [ Delete ]

i have recently removed pretty url mod
Title: Re: My announcements or newslatters are not delivered
Post by: ekfaysal on September 04, 2008, 02:19:32 PM
Hey
another thing i have just noticed

When i go to forum maintanance-Routine:

Find and repair any errors.

Then it shows this messg
Quote
The following errors are fouling up your forum:
Message #31380 is in non-existent topic #0.
Topic #6279 contains no (actual) messages.
The subject of topic #6279 is currently not stored in the subject cache.

Would you like to fix these errors?
Yes - No
when i click yes it says
Quote
Duplicate entry '31380-41' for key 2
File: /home/dreamsma/public_html/Sources/RepairBoards.php(317) : runtime-created function
Line: 19

Note: It appears that your database may require an upgrade. Your forum's files are currently at version SMF 2.0 Beta 3.1 Public, while your database is at version 2.0 Beta 3 Public. The above error might possibly go away if you execute the latest version of upgrade.php.


any help

Title: Re: My announcements or newslatters are not delivered
Post by: Rumbaar on September 04, 2008, 05:38:53 PM
Yeah that file doesn't normally have that many lines either.  Please attach yours.
You haven't attached the file, do this via the attachment feature.
Title: Re: My announcements or newslatters are not delivered
Post by: ekfaysal on September 05, 2008, 05:39:43 AM
Sorry i forgot that time
im facing lots of errors these days
Title: Re: My announcements or newslatters are not delivered
Post by: Rumbaar on September 05, 2008, 09:01:33 AM
Well looks like you've installed mods that haven't been written for SMF 2.0, as it's using $txt[] strings from 1.1.x

Change $txt[302] to $txt['newmessages3'], but I'm sure you'll have a lot more if you've installed mods that aren't written for 2.x
Title: Re: My announcements or newslatters are not delivered
Post by: ekfaysal on September 05, 2008, 04:14:05 PM
some days back i did by mistake
i dont remember which one
Title: Re: My announcements or newslatters are not delivered
Post by: Rumbaar on September 05, 2008, 06:19:15 PM
Well if you can't remember, this is little hope we'll know :)

You'll have to try and remember, then remove / alter the code it's put into your forum.  I'm sure this is the source or one of the sources of all your errors. You have to be very mindful when much such changes.
Title: Re: My announcements or newslatters are not delivered
Post by: ekfaysal on September 06, 2008, 07:15:50 AM
i m fed up with the errors now
it shows my langauge files are not updated..

i think there is only one solution i must go for

Backup my database, attachments, smileys, avatars etc,,,
then i hav to remove all my forum,, then i will install new fresh one,, then upload database again,, then restore everything

u suggest is this tha last option for me?
Title: Re: My announcements or newslatters are not delivered
Post by: Rumbaar on September 06, 2008, 07:21:52 AM
Well if it's unmanageable to troubleshoot and identify the incorrect code added by using mods not compatible with your version of SMF, then I would say yes.

Just be very mindful in the future to only install mods compatible with your SMF version, though I don't understand how you were able too.  As the mod should have indicated errors and/or not even proceeded with the installation due to conflict of versions.
Title: Re: My announcements or newslatters are not delivered
Post by: ekfaysal on September 08, 2008, 07:22:19 AM
Hey
i have done what you said
replaced $txt[302] to $txt['newmessages3'],

now please tell me installing new forum and then importing my database via phpmyadmin can solve my this problm or not

Quote
Duplicate entry '31380-41' for key 2
File: /home/dreamsma/public_html/Sources/RepairBoards.php(317) : runtime-created function
Line: 19

Note: It appears that your database may require an upgrade. Your forum's files are currently at version SMF 2.0 Beta 3.1 Public, while your database is at version 2.0 Beta 3 Public. The above error might possibly go away if you execute the latest version of upgrade.php.
Title: Re: My announcements or newslatters are not delivered
Post by: Rumbaar on September 08, 2008, 08:52:57 AM
Well if you have a db issue, then moving it to a new forum might result in your moving that error to the new forum.  Thus not fixing the error.
Title: Re: My announcements or newslatters are not delivered
Post by: ekfaysal on September 08, 2008, 02:23:28 PM
how to solve this database issue
Title: Re: My announcements or newslatters are not delivered
Post by: Rumbaar on September 08, 2008, 05:49:23 PM
Well it seems to tie in with your previous maintenance and issue with message (Message #31380 is in non-existent topic #0. )

Try to search your message table for the duplicate entries and remove the incorrect/duplicate one.  Be sure to backup first.
Title: Re: My announcements or newslatters are not delivered
Post by: ekfaysal on September 09, 2008, 09:09:10 AM
sorry i dont know
can u please tell me in detail
Title: Re: My announcements or newslatters are not delivered
Post by: Rumbaar on September 09, 2008, 06:07:02 PM
Go into your phpMyAdmin, select the messages table and search for instances of that ID number.  But what is the best course of action once you've found them, I'm not too sure.