problem with infraction

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Bahrain
    Member
    • Jun 2001
    • 77
    • 3.8.x

    problem with infraction

    Hi,

    I am getting this message when i trying to give a user worning using the infraction

    Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting ']' in /home/bhonline/public_html/infraction.php(556) : eval()'d code on line 5
    help
  • Steve Machol
    Former Customer Support Manager
    • Jul 2000
    • 154488

    #2
    This error is from a plugin you've installed. You need to disable each of your plugins then turn one at a time to see which one is causing this.

    If you cannot log into the Admin CP then to disable the plugin system, edit config.php and add this line right under <?php

    define('DISABLE_HOOKS', true);

    This will disable all hooks and allow you to log in properly with no hooks running.

    Steve Machol, former vBulletin Customer Support Manager (and NOT retired!)
    Change CKEditor Colors to Match Style (for 4.1.4 and above)

    Steve Machol Photography


    Mankind is the only creature smart enough to know its own history, and dumb enough to ignore it.


    Comment

    • ghanem
      New Member
      • Jul 2004
      • 19
      • 3.7.x

      #3
      Hi,

      I have the exact same error that started recently..
      I disable hooks and plugins, used the original language, the original style, nothing helped..
      What could cause this please?

      Regards

      Comment

      • Steve Machol
        Former Customer Support Manager
        • Jul 2000
        • 154488

        #4
        Please start your own thread with all the relevant details.
        Steve Machol, former vBulletin Customer Support Manager (and NOT retired!)
        Change CKEditor Colors to Match Style (for 4.1.4 and above)

        Steve Machol Photography


        Mankind is the only creature smart enough to know its own history, and dumb enough to ignore it.


        Comment

        • Freddie Bingham
          Former vBulletin Developer
          • May 2000
          • 14057
          • 1.1.x

          #5
          Have you changed the infraction_received or warning_received phrases?

          Comment

          • ghanem
            New Member
            • Jul 2004
            • 19
            • 3.7.x

            #6
            No sir,
            I did translate some other phrases in the Arabic file only:
            User Infraction, Hours, Points
            The rest was already translated
            I cleared them and test again, still have the error
            in addition, I have chosen NO for "Require Infraction Message", it always give me the error twice:
            1. Please complete both the subject and message fields
            2. Please complete both the subject and message fields

            When I enbale "Require Infraction Message", I got the follwoing Err:
            1. Please enter a message to send to the user.
            2. Please complete both the subject and message fields.
            3. Please complete both the subject and message fields
            Hope that helps..
            Regards

            Comment

            • kamaldarwish
              New Member
              • Jun 2005
              • 1

              #7
              I have the same problem
              I can't give a user infraction unless I select the check box "Warning only"

              Comment

              • Bahrain
                Member
                • Jun 2001
                • 77
                • 3.8.x

                #8
                any update,

                still i have the problem

                i disable the lonely plugin i have which is sending message when user thread move and also the same problem
                help

                Comment

                • ghanem
                  New Member
                  • Jul 2004
                  • 19
                  • 3.7.x

                  #9
                  Originally posted by Steve Machol
                  Please start your own thread with all the relevant details.
                  I did now..
                  Please Help.

                  Comment

                  • ghanem
                    New Member
                    • Jul 2004
                    • 19
                    • 3.7.x

                    #10
                    Found that the error because of the default language file I have

                    using another language did not help

                    I had to make another file as the default, thats all.

                    Any idea sir what is missing with this file as its the only one I have for 3.6..
                    Last edited by ghanem; Sun 20 Aug '06, 10:34am.

                    Comment

                    • ghanem
                      New Member
                      • Jul 2004
                      • 19
                      • 3.7.x

                      #11
                      I have found the phrase causing the Error
                      Its: $vbphrase[infraction_received]
                      The correct translation:
                      Code:
                       
                      السلام عليكم ورحمة الله وبركاته،
                      العضو الكريم $infraction[username],
                      لقد استلمت مخالفة في $vboptions[bbtitle]. $infraction[post]
                      السبب: $infraction[reason]
                      $infraction[message]
                      لهذه المخالفة $infraction[points] نقاط وقد تتسبب في منعك من الكتابةالى ان تنتهي. بعض المخالفات دائمة. 
                      أطيب التحيات, $vboptions[bbtitle]
                      Regards
                      Last edited by ghanem; Sun 20 Aug '06, 11:38am.

                      Comment

                      • Bahrain
                        Member
                        • Jun 2001
                        • 77
                        • 3.8.x

                        #12
                        is that mean it could be help if we do this change in to the language file???
                        help

                        Comment

                        • ghanem
                          New Member
                          • Jul 2004
                          • 19
                          • 3.7.x

                          #13
                          Originally posted by Bahrain
                          is that mean it could be help if we do this change in to the language file???
                          Yes

                          Comment

                          • Mansour
                            Member
                            • Aug 2003
                            • 62

                            #14
                            Originally posted by ghanem
                            I have found the phrase causing the Error
                            Its: $vbphrase[infraction_received]
                            The correct translation:
                            Code:
                             
                            السلام عليكم ورحمة الله وبركاته،
                            العضو الكريم $infraction[username],
                            لقد استلمت مخالفة في $vboptions[bbtitle]. $infraction[post]
                            السبب: $infraction[reason]
                            $infraction[message]
                            لهذه المخالفة $infraction[points] نقاط وقد تتسبب في منعك من الكتابةالى ان تنتهي. بعض المخالفات دائمة. 
                            أطيب التحيات, $vboptions[bbtitle]
                            Regards

                            Thanks, its solve my problem

                            Comment

                            • e7lew
                              Member
                              • Nov 2005
                              • 73

                              #15
                              its solve my problem too
                              Thanks
                              www.al7elwa.com

                              Comment

                              widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
                              Working...