SimplePortal

Development => Bugs => Fixed or Bogus Bugs => Topic started by: edi67 on October 10, 2008, 05:16:59 PM

Title: One Problem with AJAXCHAT
Post by: edi67 on October 10, 2008, 05:16:59 PM
I using AJAXCHAT by many time, today i installed simpleportal for smf 2.0 your last release and running ajaxchat i have this error:

Code: [Select]
Error interpretation XML: contenuto illegale dopo l'elemento
Address: http://ediboard.altervista.org/chat/index.php
Line number 2, column 1:<b>Notice</b>:  Undefined index:  sp-forum in <b>/membri/ediboard/Sources/Subs.php</b> on line <b>3981</b><br />
^

Line 3981 in Subs.php is:
         //   Add a forum button for the Simple Portal Mod.
         'forum' => array(
            'title' => $txt['sp-forum'],
            'href' => $scripturl . '?action=forum',
            'show' => !empty($modSettings['portalactive']),
            'sub_buttons' => array(
            ),
Title: Re: One Problem with AJAXCHAT
Post by: ???1031 on October 11, 2008, 03:09:35 AM
Can you attach the index.php?

I think the ajax chat start before the forum is called... but i'm not sure.

Bye
DIN1031
Title: Re: One Problem with AJAXCHAT
Post by: edi67 on October 11, 2008, 05:23:38 AM
sure bro this is my index.php
Title: Re: One Problem with AJAXCHAT
Post by: ???1031 on October 13, 2008, 01:23:11 AM
Ah i see the problem, there is something not translated on you italian language.
The $txt['sp-forum'] text string is missing, i thought first it's an error... but it is not.
If you have translated it, that don't forget to clear the cache :).

Bye
DIN1031
Title: Re: One Problem with AJAXCHAT
Post by: edi67 on October 13, 2008, 03:17:52 AM
Ah i see the problem, there is something not translated on you italian language.
The $txt['sp-forum'] text string is missing, i thought first it's an error... but it is not.
If you have translated it, that don't forget to clear the cache :).

Bye
DIN1031

No bro, string is translated and cache cleanead, error always appear and also NNEONSHOUTBOX appear for some seconds and after disappear  for same reason of that line look screen

please help me
Title: Re: One Problem with AJAXCHAT
Post by: ???1031 on October 13, 2008, 04:03:36 AM
Strange...

Than change on the Subs.php follow thing:
Code: [Select]
'title' => $txt['sp-forum'],to
Code: [Select]
'title' => (!isset($txt['sp-forum']) ? '' : $txt['sp-forum']),
Normal this should solve the problem...

Bye
DIN1031
Title: Re: One Problem with AJAXCHAT
Post by: edi67 on October 21, 2008, 07:13:53 AM
Strange...

Than change
Code: [Select]
'title' => $txt['sp-forum'],to
Code: [Select]
'title' => (!isset($txt['sp-forum']) ? '' : $txt['sp-forum']),
Normal this should solve the problem...

Bye
DIN1031

GREAT your solution solved my problem ;)

work perfectly look
http://ediboard.altervista.org/index.php

data acces
test : test
Title: Re: One Problem with AJAXCHAT
Post by: tk2012 on November 04, 2008, 01:09:03 PM
I don't normally like posting things in two forums since that's an extra place to keep track of, but after doing what was instructed, my forum has been crashed with the error posted at the following link.  Any help would be greatly appreciated.

http://www.simplemachines.org/community/index.php?topic=227599.msg1782395#msg1782395
Title: Re: One Problem with AJAXCHAT
Post by: tk2012 on November 04, 2008, 03:08:05 PM
I just tried putting the files back to how they were previously, but no dice.  Still can't get into forum at all.  So, I have it back to the way it was when the error presented itself after doing what was instructed above here.

Oddly, now I am just getting this on my site..



I'm going to assume that I wasn't supposed to clear the "cache" from the forum?
Title: Re: One Problem with AJAXCHAT
Post by: [SiNaN] on November 10, 2008, 07:28:49 AM
Is this issue solved?
Title: Re: One Problem with AJAXCHAT
Post by: ???1031 on November 11, 2008, 12:31:50 AM
Yes i helped him on smf, he made a mistake on the insert =).
SimplePortal 2.3.8 © 2008-2024, SimplePortal