News:

Join the Facebook Fan Page.

Main Menu

Problem after upgrade

Started by cldickerson, December 09, 2009, 04:19:45 PM

Previous topic - Next topic

cldickerson

I know this is something simple and that it has to do with UTF8 but don't know what to do. I am receiving errors such as:

PHP Notice:  Undefined index:  utf8 in /public_html/smf/Sources/Subs-Post.php on line 1264
PHP Notice:  Undefined index:  server in /public_html/smf/Sources/Subs-Post.php on line 1284

Can anyone help?

cldickerson

Here's an example of more errors. All occur in Subs-post:

PHP Notice:  Undefined index:  server in /public_html/smf/Sources/Subs-Post.php on line 631
PHP Notice:  Undefined index:  utf8 in /public_html/smf/Sources/Subs-Post.php on line 1262
PHP Notice:  Undefined index:  utf8 in /public_html/smf/Sources/Subs-Post.php on line 1264
PHP Notice:  Undefined index:  server in /public_html/smf/Sources/Subs-Post.php on line 1284
PHP Warning:  preg_replace() [<a href='function.preg-replace'>function.preg-replace</a>]: Compilation failed: invalid UTF-8 string at offset 8 in /public_html/smf/Sources/Subs-Post.php on line 1284

C'mon guys. There's got to be something wrong with Subs-post...

Nick Whetstone

Do you have any Mods installed?
The artist formerly known as (Ha)²

Former Support Specialist

Please do not solicit support via PM. Here's why!

cldickerson

I had the Visual Warning mod installed before the upgrade. Would that have caused the problem. What do I need to do to correct it?

Tks

tyty1234

Can you please attach your Subs-Post.php file, and tell us what version of PHP you are running on your site?
My Activity: Inactive
My Links: tyty1234's SMF Site | SMF Package Parser | SMF Helper | My Mods [5]
Subscribe to my SMF blog for updates
PMs for support will not be accepted, unless requested otherwise.

H

You can find the PHP version in Admin area > Support and Credits
-H
Former Support Team Lead
                              I recommend:
Namecheap (domains)
Fastmail (e-mail)
Linode (VPS)
                             

cldickerson

Hello,

Sorry it took me so long to get back to you. I've been out of town and didn't have a chance to respond. I am running PHP: 5.2.11 on a Hostgator server. I have attached my Subs-post.php file and my error log from the past couple of days.

Thank you!



BUroKHUli

hi, i don't mean to troll but i also got problems with my upgrade. some text are not showing on the drop down menus and when you register, the okay button is weird. :)

tyty1234

@cldickerson:
Everything looks like they're in order there. It might be the Load.php file. Can you please attach that file as well?
My Activity: Inactive
My Links: tyty1234's SMF Site | SMF Package Parser | SMF Helper | My Mods [5]
Subscribe to my SMF blog for updates
PMs for support will not be accepted, unless requested otherwise.

cldickerson

Yes, thank you. It is attached.

Claude

searchgr


cldickerson

Hi,

Nope, still waiting for a reply. The problem is still there...  :'(

searchgr

any other mods installed? My forum is charset=ISO-8859-1".

cldickerson

I had the "Visual Warning" mod installed before the upgrade but I think it was overwritten.

searchgr

It's overwritten. You don't have any mods now? Is your forum a utf-8 encoded? These errors are appearing almost every day at the same time (13:00). I try to find what does this means....

cldickerson

I've installed no mods since the upgrade. I never noticed the times the errors were occurring but it appears they are all occurring at midnight 00.00.01 through about 00.10.00. Strange...

searchgr

Is it possible to be a server related problem? Maybe a scheduled task from a server creates the problem?

cldickerson

Hmmm... The problem could be caused by one of the 'scheduled tasks' setup in the 'Maintenance' menu but I don't know which.

searchgr

#18
I run those tasks one by one and no error has been logged. Also i have changed the time of the tasks but the time of the error remains the same.

Do you remeber something that you might changed/edit after the upgrade? I wonder why noone else has this problem. This error appears in the errors log file in the public_html directory. Maybe more users have the same problem but they haven't noticed it.

cldickerson

Hopefully one of the gurus will point us in the right direction. I have no idea what could be causing the problem...

Tyrsson

So far as I can tell all of this is related to the email functions. The reason the errors are occurring at the same time is due to the script attempting to send emails at the time. Do you have the email que enabled?

If you have no mods installed do the following.

1.) Backup this file.

2.) Replace the file that is on the server with a fresh copy from a large upgrade package.

3.) Clear the error log.

4.) Try to send an email through the forum.

5.) Check the error log and post them here if there are any.

6.) Please also check the server logs as it might lend a little more info to what we know now.
PM at your own risk, some I answer, if they are interesting, some I ignore.

searchgr

I don't have the email que enabled and i can't replace the file. The strange thing is that the error messages are not coming every day.

Tyrsson

@searchgr,

Why can you not replace the file? Do you have mods that edit that file? If so please list them.
PM at your own risk, some I answer, if they are interesting, some I ignore.

searchgr


cldickerson

Did as instructed -- received no error...

Tyrsson

You can attach it here and I will run a compare against a default file.
PM at your own risk, some I answer, if they are interesting, some I ignore.

searchgr


Tyrsson

That file is identical to a default file.
PM at your own risk, some I answer, if they are interesting, some I ignore.

searchgr

This is the file. I have some mods....but as i see there are no any alterations in this file.

Tyrsson

What mods do you have installed?
PM at your own risk, some I answer, if they are interesting, some I ignore.

cldickerson

On my Forum, the only mod I had installed was the Visual Warning mod, which I think was overwritten by the upgrade. I did as you instructed in your previous post and sent an email via the Forum. I did not get the error.

Claude

searchgr

We use the greek language in my forum (if this helps). But the forum is charset=ISO-8859-1".

Tyrsson

Quote from: cldickerson on January 03, 2010, 03:09:56 PM
On my Forum, the only mod I had installed was the Visual Warning mod, which I think was overwritten by the upgrade. I did as you instructed in your previous post and sent an email via the Forum. I did not get the error.

Claude

Then I suppose we will need to wait and see if the error shows again at the time it occurred last time. If I get time I will try to look into this further this evening.
PM at your own risk, some I answer, if they are interesting, some I ignore.

searchgr

#33
After a short break, the errors appeared again (the same time ofcourse).

[30-Dec-2009 13:00:06] PHP Notice:  Undefined index:  server in /home/*****/public_html/Sources/Subs-Post.php on line 631
[30-Dec-2009 13:00:06] PHP Notice:  Undefined index:  character_set in /home/*****/public_html/Sources/Subs-Post.php on line 1219
[30-Dec-2009 13:00:06] PHP Notice:  Undefined index:  character_set in /home/*****/public_html/Sources/Subs-Post.php on line 1219
[30-Dec-2009 13:00:06] PHP Notice:  Undefined index:  character_set in /home/*****/public_html/Sources/Subs-Post.php on line 1219
[30-Dec-2009 13:00:06] PHP Notice:  Undefined index:  utf8 in /home/****/public_html/Sources/Subs-Post.php on line 1262
[30-Dec-2009 13:00:06] PHP Notice:  Undefined index:  utf8 in /home/****/public_html/Sources/Subs-Post.php on line 1264
[30-Dec-2009 13:00:07] PHP Notice:  Undefined index:  server in /home/****/public_html/Sources/Subs-Post.php on line 1284
[30-Dec-2009 13:00:07] PHP Warning:  preg_replace() [<a href='function.preg-replace'>function.preg-replace</a>]: Compilation failed: invalid UTF-8 string at offset 8 in /home/*****/public_html/Sources/Subs-Post.php on line 1284
[30-Dec-2009 13:00:07] PHP Notice:  Undefined index:  character_set in /home/*****/public_html/Sources/Subs-Post.php on line 1219

[05-Jan-2010 13:00:06] PHP Notice:  Undefined index:  server in /home/****/public_html/Sources/Subs-Post.php on line 631
[05-Jan-2010 13:00:06] PHP Notice:  Undefined index:  character_set in /home/*****/public_html/Sources/Subs-Post.php on line 1219
[05-Jan-2010 13:00:06] PHP Notice:  Undefined index:  character_set in /home/*****/public_html/Sources/Subs-Post.php on line 1219
[05-Jan-2010 13:00:06] PHP Notice:  Undefined index:  character_set in /home/*****/public_html/Sources/Subs-Post.php on line 1219
[05-Jan-2010 13:00:06] PHP Notice:  Undefined index:  utf8 in /home/****/public_html/Sources/Subs-Post.php on line 1262
[05-Jan-2010 13:00:06] PHP Notice:  Undefined index:  utf8 in /home/*****/public_html/Sources/Subs-Post.php on line 1264
[05-Jan-2010 13:00:06] PHP Notice:  Undefined index:  server in /home/****/public_html/Sources/Subs-Post.php on line 1284
[05-Jan-2010 13:00:06] PHP Warning:  preg_replace() [<a href='function.preg-replace'>function.preg-replace</a>]: Compilation failed: invalid UTF-8 string at offset 8 in /home/*******/public_html/Sources/Subs-Post.php on line 1284
[05-Jan-2010 13:00:06] PHP Notice:  Undefined index:  character_set in /home/*****/public_html/Sources/Subs-Post.php on line 1219

I wonder what triggers these errors.

cldickerson

And here is my error log...

Quote[04-Jan-2010 00:01:09] PHP Notice:  Undefined index:  server in /home/*****/public_html/smf/Sources/Subs-Post.php on line 631
[04-Jan-2010 00:01:09] PHP Notice:  Undefined index:  utf8 in /home/*****/public_html/smf/Sources/Subs-Post.php on line 1262
[04-Jan-2010 00:01:09] PHP Notice:  Undefined index:  utf8 in /home/*****/public_html/smf/Sources/Subs-Post.php on line 1264
[04-Jan-2010 00:01:09] PHP Notice:  Undefined index:  server in /home/*****/public_html/smf/Sources/Subs-Post.php on line 1284
[04-Jan-2010 00:01:09] PHP Warning:  preg_replace() [<a href='function.preg-replace'>function.preg-replace</a>]: Compilation failed: invalid UTF-8 string at offset 8 in /home/*****/public_html/smf/Sources/Subs-Post.php on line 1284
[06-Jan-2010 00:00:44] PHP Notice:  Undefined index:  server in /home/*****/public_html/smf/Sources/Subs-Post.php on line 631
[06-Jan-2010 00:00:44] PHP Notice:  Undefined index:  utf8 in /home/*****/public_html/smf/Sources/Subs-Post.php on line 1262
[06-Jan-2010 00:00:44] PHP Notice:  Undefined index:  utf8 in /home/*****/public_html/smf/Sources/Subs-Post.php on line 1264
[06-Jan-2010 00:00:44] PHP Notice:  Undefined index:  server in /home/*****/public_html/smf/Sources/Subs-Post.php on line 1284
[06-Jan-2010 00:00:44] PHP Warning:  preg_replace() [<a href='function.preg-replace'>function.preg-replace</a>]: Compilation failed: invalid UTF-8 string at offset 8 in /home/*****/public_html/smf/Sources/Subs-Post.php on line 1284

searchgr

I'm sure that there are many members with the same errors. Just because these are notices & warnings they are not appearing in the error logs of the forum. In order to find them you have to search at the error log file that is in the public_html directory. I think that this is a bug and that the smf developers have to take a look at it.

searchgr

I think that the 'Send Birthday Emails' causes the errors. I have changed the scheduled time to 01:18 and today the errors have the same time.

Send Birthday Emails
Sends out emails wishing members a happy birthday.    January 09, 2010, 01:18:00    Starting at 01:18, repeating every 1 day(s)

[08-Jan-2010 01:18:06] PHP Notice:  Undefined index:  character_set in /home/****/public_html/Sources/Subs-Post.php on line 1219

JimM

searchgr - have you tried removing that mod and see if the errors still occur?  Also you might want to post in the support topic for that mod.  I think JBlaze is the author and he is on the forum quite a lot.
Jim "JimM" Moore
Former Support Specialist

searchgr

Hi JimM, i don't use any mod for the birthdays. This is a feature of smf 2.0 rc2.

JimM

Quote from: searchgr on January 17, 2010, 11:34:04 PM
Hi JimM, i don't use any mod for the birthdays. This is a feature of smf 2.0 rc2.

That's right.  I have to remember which support board I am on! :P  I looked at the bugtracker and this old error was all that I could find that was similiar to what you are seeing.  http://dev.simplemachines.org/mantis/view.php?id=363

That would have been fixed though in the release you are using.
Jim "JimM" Moore
Former Support Specialist

Tyrsson

Can still post a list of mods you are using. There may be one that conflicts with the base code for this. Thanks.
PM at your own risk, some I answer, if they are interesting, some I ignore.

searchgr

cldickerson does not have any mods installed and has the same problems to me.

cldickerson

Yep, I'm receiving the errors and am not using the birthday feature. The only mod I had installed prior to upgrading to 2.0 RC2 was the Visual Warning mod which I believe was overwritten by the upgrade.

greyknight17

cldickerson, do you still need assistance with this issue? Do you also have a UTF-8 language installed?

Try following the steps outlined here to see if you converted the entire forum to UTF-8 first.

searchgr

Still have the same errors and i don't see the reason why i have to convert my database.


[10-Feb-2010 13:00:07] PHP Notice:  Undefined index:  server in /home//public_html/Sources/Subs-Post.php on line 631
[10-Feb-2010 13:00:07] PHP Notice:  Undefined index:  character_set in /home//public_html/Sources/Subs-Post.php on line 1219
[10-Feb-2010 13:00:07] PHP Notice:  Undefined index:  character_set in /home//public_html/Sources/Subs-Post.php on line 1219
[10-Feb-2010 13:00:07] PHP Notice:  Undefined index:  character_set in /home//public_html/Sources/Subs-Post.php on line 1219
[10-Feb-2010 13:00:07] PHP Notice:  Undefined index:  utf8 in /home//public_html/Sources/Subs-Post.php on line 1262
[10-Feb-2010 13:00:07] PHP Notice:  Undefined index:  utf8 in /home//public_html/Sources/Subs-Post.php on line 1264
[10-Feb-2010 13:00:07] PHP Notice:  Undefined index:  server in /home//public_html/Sources/Subs-Post.php on line 1284

JimM

As most of your errors are coming from the same file, have you tried replacing that file with one from the most recent large upgrade package? 
Jim "JimM" Moore
Former Support Specialist

searchgr


Windy

Although it's a little unorthodox I might recommend placing the following inside the sendmail function just under the globals inside Subs-Post.php.

if(!isset($context['server'])
{
trigger_error('to: ' . $to);
trigger_error('subject: ' . $subject);
trigger_error('message: ' . $message);
trigger_error('debug: ' . var_export(debug_backtrace()));
}


When the error next occurs this will trigger some additional errors in your error log showing who it's to, the subject and the message being sent as well as where the function is being called from, I'm hoping that it will give more of an idea of what's going on as well as how we could reproduce the error.
All unsolicited PM's will be ignored.  Any support requests should go in their topics.

My Mods


Image Zoom Tag
Image Quote Removal
Color Picker
Additional Polls
Simple Awards System

Mods are only updated to the latest same major version of smf on request.

Norv

Please also consider making a phpinfo() file and posting a link to it.
(What is a phpinfo() file?)
To-do lists are for deferral. The more things you write down the later they're done... until you have 100s of lists of things you don't do.

File a security report | Developers' Blog | Bug Tracker


Also known as Norv on D* | Norv N. on G+ | Norv on Github

searchgr

Can you specify where i have to add the a/m code? This is not a serious problem but thank you for your support.

Advertisement: