Uutiset:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu
Advertisement:

language? error using ssi.php

Aloittaja gupp, maaliskuu 31, 2010, 09:04:12 IP

« edellinen - seuraava »

Arantor

Hmmm, this is interesting - and weird.

Please can you also attach the index.english.php from Themes/default/languages/ ?
Holder of controversial views, all of which my own.


gupp


gupp

I've had the forum for so long and my theme is really old and then I changed it a bit here and there several times over the years, plus I have a couple volunteers that help, so if there's something funny in one of my files I'm not surprised. Thank you for looking in these for me. I'm pretty lost at where to even start.

Arantor

Weird. The file looks right, too.

* Arantor is confused too.
Holder of controversial views, all of which my own.


gupp

Any other ideas, or files I might look in to?

MrPhil

The only thing I see that might possibly be causing problems is the call to loadLanguage('Ads');. Do you have an Ads.<language>.php file in your theme? Could you attach it? I'm wondering if perhaps it's resetting (clearing out) $txt for some reason. In your Sources/Subs.php, try commenting out the line
loadLanguage('Ads');
(change to
//loadLanguage('Ads');
) and see if it stops the error you reported (there might be other errors popping up now).

gupp

I'm looking for the line now. I'll tell you how it works when I replace it. Here is the ads.english.php file. I believe these are for a mod that allows us to put space for ads and other little things on the side and bottom of the forum.

gupp

I changed the loadLanguage('Ads'); to //loadLanguage('Ads'); and it didn't seem to do anything at all.

MrPhil

I don't see anything obvious in Ads.english.php that would be removing any existing elements from $txt. The only thing odd is that it defines $txt['ad_manage_show_credits'] as an absolutely humongous string. I'm wondering if it's overflowing something in PHP or otherwise causing trouble. Anyway, at this point, the last thing I can suggest is first uncommenting loadLanguage('Ads'); and then in Ads.english.php, comment out the existing line and replacing it with something short:
$txt['ad_manage_show_credits'] = '
<p>Thank you!</p>';                                     <=== new
/*                                                      <=== new
<p>Thank you for installing my.....
....electrohome (Jeremy)
';
*/                                                      <=== new


If that improves matters, we'll know the problem is in there. If it doesn't, change it back, and I'm out of ideas.

Kays

Lainaus käyttäjältä: Arantor - huhtikuu 02, 2010, 10:58:13 AP
* Arantor wonders why, when it's calling for an error in Subs.php, everyone wants to look at an unrelated file...

My main reasoning for looking in SSI.php is that it looked like something in the ssi_recentPosts function was breaking it. If the problem was in Subs.php with the timeformat function I would expect to see more errors elsewhere. Like in the error log. Which, if the problem persists, would be a good place to look to see if other pages are generating this error.

If at first you don't succeed, use a bigger hammer. If that fails, read the manual.
My Mods

Advertisement: