Bug 5.1.1 /core/includes/functions.php on line 4277

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Arnowt
    New Member
    • Oct 2006
    • 10

    Bug 5.1.1 /core/includes/functions.php on line 4277

    Есть: return vB_String::convertUnicodeCharToCharset(hexdec($matches[1], $charset));
    Нужно: return
    vB_String::convertUnicodeCharToCharset(hexdec($matches[1]), $charset);
  • Wayne Luke
    vBulletin Technical Support Lead
    • Aug 2000
    • 74170

    #2
    Please see this thread and provide the information requested:
    Every support request should be in its own topic. Do not take over the support topics posted by others. The only thing that happens when you do this is make it more difficult to receive support. Often times we get threads like: This type of question is very difficult to answer because it provides no real information.
    Translations provided by Google.

    Wayne Luke
    The Rabid Badger - a vBulletin Cloud demonstration site.
    vBulletin 5 API

    Comment

    • Arnowt
      New Member
      • Oct 2006
      • 10

      #3
      I refer a syntax error in functions.php

      Installation should be carried out before releasing the release!

      Comment

      • Mark.B
        vBulletin Support
        • Feb 2004
        • 24288
        • 6.0.X

        #4
        This isn't happening on a default installation, if it was then hundreds of people would be reporting it.

        Therefore we need the information requested by Wayne to try and diagnose the issue.
        MARK.B
        vBulletin Support
        ------------
        My Unofficial vBulletin 6.0.0 Demo: https://www.talknewsuk.com
        My Unofficial vBulletin Cloud Demo: https://www.adminammo.com

        Comment

        • Arnowt
          New Member
          • Oct 2006
          • 10

          #5
          this occurs when you installed, do not update

          <b>Warning</b>: hexdec() expects exactly 1 parameter, 2 given in ***/core/includes/functions.php on line <b>4277</b><br />
          <b>Warning</b>: Missing argument 2 for vB_String::convertUnicodeCharToCharset(), called in ***/core/includes/functions.php on line 4277 and defined in <b>***/core/vb/string.php</b> on line <b>623</b><br />

          hexdec requires 1 argument

          Comment

          • Arnowt
            New Member
            • Oct 2006
            • 10

            #6
            попробуйте произвести начальную инсталляцию vbulletin 5.1.1.
            не произвести обновление версии, а именно инсталяцию

            try the make the initial installation vbulletin 5.1.1.
            not upgrade versions, namely install the

            ----------------------------

            after correcting functions.php, line 4277
            Need: vB_String::convertUnicodeCharToCharset(hexdec($matches[1]), $charset); // «)» not there
            everything worked
            Last edited by Arnowt; Wed 14 May '14, 12:28pm.

            Comment

            • Lynne
              Former vBulletin Support
              • Oct 2004
              • 26255

              #7
              What version of PHP and MySQL is on your server? For vB5, you must have PHP5.3.7 or greater and MySQL 5.1.5 or greater and also requires that you have cURL installed. It is recommended to use PHP 5.4, or later and MySQL 5.5 or later.

              Please don't PM or VM me for support - I only help out in the threads.
              vBulletin Manual & vBulletin 4.0 Code Documentation (API)
              Want help modifying your vbulletin forum? Head on over to vbulletin.org
              If I post CSS and you don't know where it goes, throw it into the additional.css template.

              W3Schools &lt;- awesome site for html/css help

              Comment

              • Arnowt
                New Member
                • Oct 2006
                • 10

                #8
                not important version php and mysql
                open the file «/core/includes/functions.php» and look at you there is a syntax error

                Comment

                • Lynne
                  Former vBulletin Support
                  • Oct 2004
                  • 26255

                  #9
                  This is my line 4277 in the functions.php file of 5.1.1:

                  PHP Code:
                              return vB_String::convertUnicodeCharToCharset(hexdec($matches[1], $charset)); 
                  I don't know how yours could be missing the ending ")"

                  Your's also has one right after the [1] which isn't in my line.

                  Please don't PM or VM me for support - I only help out in the threads.
                  vBulletin Manual & vBulletin 4.0 Code Documentation (API)
                  Want help modifying your vbulletin forum? Head on over to vbulletin.org
                  If I post CSS and you don't know where it goes, throw it into the additional.css template.

                  W3Schools &lt;- awesome site for html/css help

                  Comment

                  • Arnowt
                    New Member
                    • Oct 2006
                    • 10

                    #10
                    /core/includes/functions.php line 4277

                    have: return vB_String::convertUnicodeCharToCharset(hexdec($matches[1], $charset)); //error
                    need: return vB_String::convertUnicodeCharToCharset(hexdec($matches[1]), $charset);//good
                    Last edited by Arnowt; Wed 14 May '14, 1:31pm.

                    Comment

                    • Lynne
                      Former vBulletin Support
                      • Oct 2004
                      • 26255

                      #11
                      I see what you mean now. But it is very odd that you are the only one who is getting this error. I will enter it into Jira. http://tracker.vbulletin.com/browse/VBV-12679

                      Please don't PM or VM me for support - I only help out in the threads.
                      vBulletin Manual & vBulletin 4.0 Code Documentation (API)
                      Want help modifying your vbulletin forum? Head on over to vbulletin.org
                      If I post CSS and you don't know where it goes, throw it into the additional.css template.

                      W3Schools &lt;- awesome site for html/css help

                      Comment

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