News:

Want to get involved in developing SMF? Why not lend a hand on our GitHub!

Main Menu

Error

Started by Niall Ramar, August 18, 2010, 02:22:44 PM

Previous topic - Next topic

Niall Ramar

SMF Version 1.1.11

I am getting error:

8: Undefined index: align="middle"
File: /hermes/bosweb/web092/b929/ipg.harborcitypdcom/forum/Sources/Subs.php
Line: 3642

subs.php attached.

I have installed Clean Blue theme.

No mods.

I have not edited the forum files in any way.

Any help would be great

-Thanks

gbsothere

If you have no mods, try uploading a clean Subs.php file from your SMF version's zip, clear the error and see if this sorts it.

:)
My apologies, but I am taking a break from accepting PM requests for support.  If I am not currently assisting you, please do not ask as long as this notice is posted.  Thank you.

I Don't Want To Grow Old Alone


It has been proven that Steely Dan reduces the occurrence of road rage, according to an independent study.



A reminder about admin / ftp passwords etc.

Niall Ramar

I have done so and it has not fixed the issue.

I am now also getting an additional few errors, though these appear to be from sending messages which I had not yet done before this post.

8: Undefined index: can_report_moderator
File: /hermes/bosweb/web092/b929/ipg.harborcitypdcom/forum/Themes/CleanBlue/PersonalMessage.template.php (folder sub template - eval?)
Line: 462

8: Undefined variable: windowcss
File: /hermes/bosweb/web092/b929/ipg.harborcitypdcom/forum/Themes/CleanBlue/PersonalMessage.template.php (folder sub template - eval?)
Line: 425

8: Undefined index: can_view_profile
File: /hermes/bosweb/web092/b929/ipg.harborcitypdcom/forum/Themes/CleanBlue/PersonalMessage.template.php (folder sub template - eval?)
Line: 359

8: Undefined index: first_new
File: /hermes/bosweb/web092/b929/ipg.harborcitypdcom/forum/Themes/CleanBlue/PersonalMessage.template.php (folder sub template - eval?)
Line: 256

8: Undefined index: first_message
File: /hermes/bosweb/web092/b929/ipg.harborcitypdcom/forum/Themes/CleanBlue/PersonalMessage.template.php (folder sub template - eval?)
Line: 254

One forum listed suggests removing the PersonalMessage.template.php file since the SMF default one would replace it, is this a viable solution?

gbsothere

I'm just looking at your theme, Niali, which has quite a lot of language files.  Let me check to see if the proper strings are there.  It'll just take a minute.
My apologies, but I am taking a break from accepting PM requests for support.  If I am not currently assisting you, please do not ask as long as this notice is posted.  Thank you.

I Don't Want To Grow Old Alone


It has been proven that Steely Dan reduces the occurrence of road rage, according to an independent study.



A reminder about admin / ftp passwords etc.

kat

Odd...

My copy of subs.php doesn't even contain the "align="middle"" thing. Neither does yours.

Wonder where that came from...?

That eval message is a kind of masked error, unfortunately.

If you can install this:

http://custom.simplemachines.org/mods/index.php?mod=2054

We'll be able to find the real errors.

gbsothere

Also, K@, I'm checking the language files, both for his theme and default and there are no strings that connect with, for instance "can_report_moderator" (PersonalMessage.english.php has "can_report_admin"), etc.  I haven't found any strings that tie to "first_message", "new_message", etc.

???


"Clean Blue" has its own Modifications.english.php and Settings.english.php, but no PersonalMessage.english.php; I checked default.
My apologies, but I am taking a break from accepting PM requests for support.  If I am not currently assisting you, please do not ask as long as this notice is posted.  Thank you.

I Don't Want To Grow Old Alone


It has been proven that Steely Dan reduces the occurrence of road rage, according to an independent study.



A reminder about admin / ftp passwords etc.

kat

I have a suspicion...

Niall... Before this started happening, did you try to install a mod?

If so, was that mod supposed to be for SMF v2.x, by any chance?

Either way, if that was my forum, this is what I'd do:

From the SMF install archive, extract all the files in "Sources" and upload them to your site, overwriting what's there, now.

If that doesn't cure your problems, do the same with all the files in the default theme's directory.

If, as you say, you have no mods installed, that should put you right.

Unless, of course, you have a recent backup that you could restore...?

Niall Ramar

Ok, Disable Eval mod added and is working. Same errors occur, they just don't have the little (folder sub template - eval?) message at the end.

I have no other mods than the one I just installed for this de-bug session. I have not tried installing any other mods besides this.

When I switch back to the default theme no errors occur so the normal code for the site works just fine, no need to re-upload them. Only when I switch to this theme do the problems occur. Should I just get rid of all the language files for this theme since I really don't need Turkish anyways? If that might work what files should I get rid of?

kat

Well, what SHOULD happen, is that when something looks for a file and it's not in the theme's directory, the software looks in the default theme's directory, for the file.

Try downloading the "languages" directory, from the custom theme, as a backup, then delete the whole "Languages" directory from the custom theme.

See if that helps.  :)

Niall Ramar

Yeah when I did that I got about 7 pages worth of errors by looking through one child board and editing one post.

I think I'm just going to move on to another theme unless yall have any other ideas as this is not worth my time, and the constant error messages would drive me nuts as an admin.


Niall Ramar

Yeah I found that earlier today, and while it does fix the "align=middle" error it does nothing for the personal message errors I've been getting :S

gbsothere

My apologies, but I am taking a break from accepting PM requests for support.  If I am not currently assisting you, please do not ask as long as this notice is posted.  Thank you.

I Don't Want To Grow Old Alone


It has been proven that Steely Dan reduces the occurrence of road rage, according to an independent study.



A reminder about admin / ftp passwords etc.

kat

Oh, dear...

I'd just delete that file from the custom theme, then, if that was my forum.

Good find, GB!  :)

gbsothere

#14
Quote from: K@ on August 18, 2010, 04:48:48 PM
Oh, dear...

I'd just delete that file from the custom theme, then, if that was my forum.

Good find, GB!  :)



"Captain Cautious" => Me.  I'm sticking with tweaking Default.  If a person works at it, it can look quite custom.   ;)



Edit:  I guess if I were someone who really wanted the theme and wanted to keep that template, I'd add the language strings and it wouldn't be that hard.   (But, yeah....  if that one template is throwing that many errors, it would be hard to convince me to stay with it.  The theme has five template files.)
My apologies, but I am taking a break from accepting PM requests for support.  If I am not currently assisting you, please do not ask as long as this notice is posted.  Thank you.

I Don't Want To Grow Old Alone


It has been proven that Steely Dan reduces the occurrence of road rage, according to an independent study.



A reminder about admin / ftp passwords etc.

Niall Ramar

I get off work in an hour or so, I'll do a fresh re-install of the theme and then try the suggested work arounds and see if that fixes the issues. These are really easy errors to spot though so I don't understand why the theme was released broken. Is there not any kind of review process by SMF for themes that are placed on their site for download?

gbsothere

Quote from: Niall Ramar on August 18, 2010, 05:12:14 PM
I get off work in an hour or so, I'll do a fresh re-install of the theme and then try the suggested work arounds and see if that fixes the issues. These are really easy errors to spot though so I don't understand why the theme was released broken. Is there not any kind of review process by SMF for themes that are placed on their site for download?


I wish I were more knowledgeable about the "Themes" side of SMF; someone else will have to weigh in on the review process.

In the meantime, if you'd like to try, I can try to add those strings to the theme's language file, attach it for later and perhaps you can clear those particular errors after reuploading it and see if they generate again?
My apologies, but I am taking a break from accepting PM requests for support.  If I am not currently assisting you, please do not ask as long as this notice is posted.  Thank you.

I Don't Want To Grow Old Alone


It has been proven that Steely Dan reduces the occurrence of road rage, according to an independent study.



A reminder about admin / ftp passwords etc.

kat

Quote from: Niall Ramar on August 18, 2010, 05:12:14 PMIs there not any kind of review process by SMF for themes that are placed on their site for download?

Yes, there is.

Even with the best will in the world, though, the odd lemon gets through.  :(

Sorry about that.

Niall Ramar

QuoteIn the meantime, if you'd like to try, I can try to add those strings to the theme's language file, attach it for later and perhaps you can clear those particular errors after reuploading it and see if they generate again?

If you would like to try that I see no reason to stop you. I was just going to delete the theme's PersonalMessage.template.php, but if we can keep the customize file then by all means. I have no cue how to edit the language file so it's all up to you on that one.

QuoteYes, there is.

Even with the best will in the world, though, the odd lemon gets through.  :(

Is there any way to look into editing the source files for this theme's download so that other people wont experience the same issues? Once/if we get this fixed of course.

gbsothere

Quote from: Niall Ramar on August 18, 2010, 05:31:35 PM

If you would like to try that I see no reason to stop you. I was just going to delete the theme's PersonalMessage.template.php, but if we can keep the customize file then by all means. I have no cue how to edit the language file so it's all up to you on that one.



Well, sooner or later, there must be a reason to stop me.   :D

I've added the strings to this PersonalMessage.english.php (fresh from the SMF zip) and also added a global string to the PersonalMessage.template.php (fresh from Clean Blue's zip).

They won't hurt anything, even if they don't solve anything but, just in case, back up by pulling the original files from your server, first before uploading, in case you need to reupload them. 
My apologies, but I am taking a break from accepting PM requests for support.  If I am not currently assisting you, please do not ask as long as this notice is posted.  Thank you.

I Don't Want To Grow Old Alone


It has been proven that Steely Dan reduces the occurrence of road rage, according to an independent study.



A reminder about admin / ftp passwords etc.

Advertisement: