News:

SMF 2.0.19 has been released! Please update. Read more.

Main Menu

SMF Quiz

Started by Diego Andrés, February 18, 2009, 01:08:19 PM

Previous topic - Next topic

chadon

Yes I did. I even tried an older version of the mod since my post and still have the same error. I created some qizzes and all I need is this bug to be fixed to make it available. :)

islam2hamy

QuoteAn unexpected parser error has occurred while retrieving data from the server. Please contact the server administrator and inform them of this error.

me also get this error when i am using another language than English as default (Arabic) .

1.0.7

Arabic Translator - Web Designer
My Mods / My Themes  //  GfxLand





quiz_modder

Quote from: islam2hamy on October 01, 2009, 03:22:08 AM
QuoteAn unexpected parser error has occurred while retrieving data from the server. Please contact the server administrator and inform them of this error.

me also get this error when i am using another language than English as default (Arabic) .

1.0.7

If you follow the instructions in this thread, what is the actual error message you get?

http://www.smfmodding.com/index.php?topic=416.0

chadon

He probably has the same error message than me. This bug appears when a different language than English is used.

Quote from: chadon on September 28, 2009, 11:52:33 AM


I have the same error and here is the message displayed by the xml file:

QuoteXML Parsing Error: junk after document element
Location: http://www.site.com/Sources/SMFQuizStart.php?id_quiz=1
Line Number 2, Column 1:<b>Notice</b>:  Undefined variable: scripturl in <b>/home/account/public_html/Themes/default/languages/Modifications.english.php</b> on line <b>99</b><br />
^

The line 99 in Modifications.english.php is related to a different mod "Auto email inactive users".
When I delete the line a different error appears with this content:
Quote<b>Notice</b>:  Undefined index:  mc_unapproved_poststopics in <b>/home/account/public_html/Sources/Subs.php</b> on line <b>3819</b><br />
^




islam2hamy

Quote from: chadon on October 01, 2009, 08:36:30 AM
He probably has the same error message than me. This bug appears when a different language than English is used.

yes , you are right .

Arabic Translator - Web Designer
My Mods / My Themes  //  GfxLand





islam2hamy

#165
Quote8: Undefined index: SMFQuiz
Apply Filter: Only show the errors from this file
File: /Sources/Subs.php
Line: 3867

also i get this error


Quote8: Undefined index: SMFQuiz
Apply Filter: Only show the errors from this file
File: /Sources/SMFQuiz.php
Line: 14

Arabic Translator - Web Designer
My Mods / My Themes  //  GfxLand





quiz_modder

I think the only way for me to really investigate this error on non-English forums is for someone to give me access to that forum or a test one (preferably). I will need admin and FTP access to this forum.

Joe N

Microsoft: "We Need to Imagine Life Without Walls."
I Say: "If There are No Walls Who needs Windows."



My Mods (6) All My Mods Updated To SMF 2.0 RC2 and SMF 1.1.10!


quiz_modder

Quote from: Joe N on October 01, 2009, 12:02:13 PM
SMF 1X!

Sorry, no chance. I don't have enough time to work on the 2X version at the moment, let alone create a version that will also work with old versions of SMF. Perhaps you should make the move to SMF 2  ;)

chadon

Quote from: S_M_F_Modding on October 01, 2009, 11:45:06 AM
I think the only way for me to really investigate this error on non-English forums is for someone to give me access to that forum or a test one (preferably). I will need admin and FTP access to this forum.

I sent you a PM to access a test forum. Thanks. ;)

islam2hamy

Quote from: chadon on October 01, 2009, 12:36:27 PM
I sent you a PM to access a test forum. Thanks. ;)

Thank you chadon

Arabic Translator - Web Designer
My Mods / My Themes  //  GfxLand





quiz_modder

Quote from: islam2hamy on October 01, 2009, 02:00:14 PM
Quote from: chadon on October 01, 2009, 12:36:27 PM
I sent you a PM to access a test forum. Thanks. ;)

Thank you chadon

I have sent an email to the guy who got it working in German, hopefully he will be able to help

http://www.smfmodding.com/index.php?topic=486.msg2155

islam2hamy

Quote from: S_M_F_Modding on October 01, 2009, 03:32:27 PM
I have sent an email to the guy who got it working in German, hopefully he will be able to help

http://www.smfmodding.com/index.php?topic=486.msg2155

ok , Thank you.

Arabic Translator - Web Designer
My Mods / My Themes  //  GfxLand





quiz_modder

Quote from: chadon on October 01, 2009, 12:36:27 PM
Quote from: S_M_F_Modding on October 01, 2009, 11:45:06 AM
I think the only way for me to really investigate this error on non-English forums is for someone to give me access to that forum or a test one (preferably). I will need admin and FTP access to this forum.

I sent you a PM to access a test forum. Thanks. ;)

This particular issue was due to the use of "Votre navigateur n\'est pas compatible!" in the language file. The \' gets translated to ' in the script and this causes a javascript error.

islam2hamy

Quote from: S_M_F_Modding on October 02, 2009, 04:24:19 AM
This particular issue was due to the use of "Votre navigateur n\'est pas compatible!" in the language file. The \' gets translated to ' in the script and this causes a javascript error.


so , how to fix it ??

Arabic Translator - Web Designer
My Mods / My Themes  //  GfxLand





chadon

#175
S_M_F_ Modding found the problem in the language file SMFQuiz.yourlang.php

The apostrophe was located in the javascript language strings below. Make sur you don't have anything like it in this location.

// Language text located in javascript
$txt['SMFQuiz_Javascript'] = array(
    'QuizMaximum' => 'Limite de tentatives atteinte pour ce Quiz',
    'QuizLeagueMaximum' =>'Vous avez atteint votre limite de jeu dans ce tour pour cette League. Veuillez attendre le début du prochain tour.',
    'BrowserBroke' => 'Votre navigateur nest pas compatible!',
    'ProblemGettingQuestions' => 'Un probleme est apparu pour afficher cette question, essayez a nouveau...',
    'Timeout' => 'limite de temps dépassé',
    'NoQuizSpecified' => 'Aucun Quiz ou League Spécifié',
    'BrowserNotSupportHttp' => 'Votre navigateur ne supporte pas les requetes HTTP',
    'MustBeLoggedIn' => 'Vous devez vous identifier pour jouer a ce quiz',
    'SessionTime' => 'Vous ne pouvez pas continuer a jouer ce Quiz, vous devrez attendre la période spécifiée avant de jouer a nouveau',
);


I hope this helps.

islam2hamy

anything like what ??


// Language text located in javascript
$txt['SMFQuiz_Javascript'] = array(
'QuizMaximum' => 'You have already played this quiz over the maximum amount of times allowed',
'QuizLeagueMaximum' =>'You have already played this quiz league over the maximum amount of times allowed for this round\nPlease return when the next round starts.',
'BrowserBroke' => 'Your browser broke!',
'ProblemGettingQuestions' => 'There was a problem getting the question, trying again...',
'Timeout' => 'إنتهى الوقت',
'NoQuizSpecified' => 'No quiz or league specified',
'BrowserNotSupportHttp' => 'المتصفح الخاص بك لا يدعم الـ HTTP',
'MustBeLoggedIn' => 'يجب عليك تسجيل الدخول لكى تبدأ المسابقة',
'SessionTime' => 'You cannot continue playing the quiz yet, you must wait for the specified period to elapse before playing the quiz again',
);

Arabic Translator - Web Designer
My Mods / My Themes  //  GfxLand





chadon

Anything like apostrophes or accents. I can't read your language so I wouldn't tell what is wrong but maybe you should leave everything in English in this portion of code.

islam2hamy

does it work with you good?

Arabic Translator - Web Designer
My Mods / My Themes  //  GfxLand





islam2hamy

i replaced it with English
but the same error

Arabic Translator - Web Designer
My Mods / My Themes  //  GfxLand





Advertisement: