Announcement

Collapse
No announcement yet.

Invalid value for constructor on login

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Invalid value for constructor on login

    Hello, I have just finished installing vBulletin 5.1.10 on my server and am receiving the following error when attempting to log in

    An unexpected error was returned: 'Invalid value for constructor.'
    1. Server OS: Windows Server 2012 R2
    2. Webserver Type: IIS 8.5
    3. vBulletin Version: 5.1.10
    4. PHP Version: 7
    5. MySQL Version: MariaDB 10.1
    6. Any Addons installed: Nil
    7. Does the issue occur in a default style? Yes
    8. Does the issue occur using the English language provided? Yes
    9. Error message on the screen: An unexpected error was returned: 'Invalid value for constructor.'
    10. Browser and Browser version used: Google Chrome - Version 47.0.2526.106 m
    11. A list of steps that can be used to recreate the issue: Attempting to log in.
    12. Link to PHP Info: http://www.nessiedev.me/phpinfo.php
    Not sure what could be causing the issue, although any help would be appreciated.
    .

    Header Information:
    [QUOTE]
      • Request URL:
        http://www.nessiedev.me/auth/login
      • Request Method:
        POST
      • Status Code:

        200 OK
      • Remote Address:
        158.69.26.29:80
    • Response Headersview source
      • Content-Length:
        4133
      • Content-Type:
        text/html; charset=UTF-8
      • Date:
        Wed, 13 Jan 2016 08:00:00 GMT
      • Server:
        Microsoft-IIS/8.5
      • Set-Cookie:
        bblastactivity=1452672000; path=/; HttpOnly
      • X-Powered-By:
        PHP/7.0.0
      • X-Robots-Tag:
        noindex, nofollow
      • X-UA-Compatible:
        IE=edge,chrome=1
    • Request Headersview source
      • Accept:
        text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
      • Accept-Encoding:
        gzip, deflate
      • Accept-Language:
        en-US,en;q=0.8
      • Cache-Control:
        max-age=0
      • Connection:
        keep-alive
      • Content-Length:
        188
      • Content-Type:
        application/x-www-form-urlencoded
      • Cookie:
        bbcustomerid=e03b36be76189f5da33cce54d004e824; bblastvisit=1452670535; bbsessionhash=40d8e09781849d48c93f1463bc2b4919; bblastactivity=1452671978
      • Host:
        www.nessiedev.me
      • Origin:
        http://www.nessiedev.me
      • Referer:
        http://www.nessiedev.me/auth/login
      • Upgrade-Insecure-Requests:
        1
      • User-Agent:
        Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.106 Safari/537.36
    • Form Dataview sourceview URL encoded
      • url:
        aHR0cDovL3d3dy5uZXNzaWVkZXYubWUv
      • username:
        Nessie

    Response Information:
    <!DOCTYPE html>
    <html id="idLoginHtml" xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" lang="en-US" dir="ltr">
    <head>
    <title>Login- Gaming Forum</title>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
    <!--[if IE]><![endif]-->



    <!--[if IE]>
    <link rel="stylesheet" type="text/css" href="http://www.nessiedev.me/css.php?styleid=1&amp;td=ltr&amp;sheet=css_reset.css,css_unreset.css,css_utilities.css&amp ;ts=1452670493 " />
    <link rel="stylesheet" type="text/css" href="http://www.nessiedev.me/css.php?styleid=1&amp;td=ltr&amp;sheet=css_login.css&amp;ts=1452670493 " />
    <![endif]-->
    <!--[if !IE]><!-->
    <link rel="stylesheet" type="text/css" href="http://www.nessiedev.me/css.php?styleid=1&amp;td=ltr&amp;sheet=css_reset.css,css_unreset.css,css_utilities.css&amp ;ts=1452670493 " />
    <link rel="stylesheet" type="text/css" href="http://www.nessiedev.me/css.php?styleid=1&amp;td=ltr&amp;sheet=css_login.css&amp;ts=1452670493 " />
    <!--<![endif]-->

    </head>

    <!--[if gte IE 9]>
    <body id="idLoginPage" class="ie ie9">
    <![endif]-->
    <!--[if IE 8]>
    <body id="idLoginPage" class="ie ie8">
    <![endif]-->
    <!--[if !IE]><!-->
    <body id="idLoginPage">
    <!--<![endif]-->






    <div class="error">An unexpected error was returned: 'Invalid value for constructor.'</div>






    <form id="idLoginForm" action="http://www.nessiedev.me/auth/login" method="post" class="h-clearfix">
    <input type="hidden" name="url" value="aHR0cDovL3d3dy5uZXNzaWVkZXYubWUv" />
    <div class="login-fieldset table">
    <div class="tr">
    <label for="idLoginUserName" class="td">User Name</label>
    <span class="td"><input tabindex="100" type="text" name="username" id="idLoginUserName" value="Nessie" class="textbox unexpected_error" /></span>
    </div>
    <div class="tr">
    <label for="idLoginPassword" class="td">Password</label>
    <span class="td"><input tabindex="101" type="password" autocomplete="off" name="password" id="idLoginPassword" class="textbox unexpected_error" /></span>
    </div>
    </div>
    <div class="secondary-controls h-left">
    <input tabindex="102" type="checkbox" name="rememberme" id="idLoginRememberMe" checked="checked" />
    <label for="idLoginRememberMe">Remember me</label>
    <a tabindex="104" href="http://www.nessiedev.me/lostpw" id="idLostPasswordLink" target="_top">Forgot password or user name?</a>
    </div>
    <div class="primary-controls h-right">
    <button type="submit" tabindex="103" id="idLoginBtn" class="button primary">Log in</button>
    or <a id="idLoginSignup" href="http://www.nessiedev.me/register?urlpath=aHR0cDovL3d3dy5uZXNzaWVkZXYubWUv" target="_top">Sign Up</a>
    </div>
    <input type="hidden" id="vb_loginmd5" name="vb_login_md5password" value="">
    <input type="hidden" id="vb_loginmd5_utf8" name="vb_login_md5password_utf" value="">
    </form>


    <script type="text/javascript">
    (function(){
    //remove highlight on focus
    var loginInputs = document.querySelectorAll('#idLoginForm .login-fieldset input');
    for (var i = 0; i < loginInputs.length; i++) {
    loginInputs[i].onfocus = function() {
    this.className = this.className.replace(/\bbadlogin\S*/g, '');
    }
    };

    /*disable the submit button when submitting the form to prevent
    it from being clicked or tapped a second time */
    document.getElementById('idLoginForm').onsubmit = function() {
    document.getElementById('idLoginBtn').disabled = 'disabled';
    /* if the md5hash code changes, keep it synchronized with the login code in the widget_register template */
    md5hash(document.getElementById('idLoginPassword'), document.getElementById('vb_loginmd5'), document.getElementById('vb_loginmd5_utf8'), 0);

    };

    //set focus to first textbox if error is not related to invalid username or password
    if (document.querySelectorAll('#idLoginForm .login-fieldset input[type=text][class*=badlogin]').length == 0) {
    try {
    document.querySelectorAll('#idLoginForm .login-fieldset input')[0].focus();
    }catch(e){}
    }


    })();
    </script>



    <script type="text/javascript" src="http://www.nessiedev.me/js/login_md5.js?v=5110"></script>
    </body>
    </html>
    Edit: Unsure if related. tools.php shows the following under settings
    This will take the latest settings from ./install/vbulletin-settings.xmlVersion: Unknown

    Is it possible the settings have somehow corrupted during download and installation?
    Last edited by nessierules; Wed 13 Jan '16, 6:50am. Reason: Whoops

  • #2
    When you sign up for an account it gives the same error, but when you reload the main page the account has been created. Again, not sure if this is related at all but I figure the more information I can give the better.

    Comment


    • #3
      vBulletin AJAX profile: Before request #0
      jquery.min.js:4 Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check http://xhr.spec.whatwg.org/.
      jquery.min.js:4 XMLHttpRequest cannot load http://www.nessiedev.me/ajax/api/phrase/fetch. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://nessiedev.me' is therefore not allowed access.send @ jquery.min.js:4
      footer-rollup-5110.js:132 Error when fetching phrases: NetworkError: Failed to execute 'send' on 'XMLHttpRequest': Failed to load 'http://www.nessiedev.me/ajax/api/phrase/fetch'.
      jquery.min.js:4 XMLHttpRequest cannot load http://www.nessiedev.me/ajax/api/options/fetchValues. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://nessiedev.me' is therefore not allowed access.send @ jquery.min.js:4
      footer-rollup-5110.js:132 Error when fetching options: NetworkError: Failed to execute 'send' on 'XMLHttpRequest': Failed to load 'http://www.nessiedev.me/ajax/api/options/fetchValues'.
      jquery.min.js:4 XMLHttpRequest cannot load http://www.nessiedev.me/ajax/api/options/fetchValues. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://nessiedev.me' is therefore not allowed access.send @ jquery.min.js:4
      footer-rollup-5110.js:132 Error when fetching options: NetworkError: Failed to execute 'send' on 'XMLHttpRequest': Failed to load 'http://www.nessiedev.me/ajax/api/options/fetchValues'.
      footer-rollup-5110.js:132 vBulletin.loadingIndicator.show ajax indicator suppressed
      jquery.min.js:4 XMLHttpRequest cannot load http://www.nessiedev.me/ajax/api/options/fetchValues. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://nessiedev.me' is therefore not allowed access.send @ jquery.min.js:4
      footer-rollup-5110.js:132 Error when fetching options: NetworkError: Failed to execute 'send' on 'XMLHttpRequest': Failed to load 'http://www.nessiedev.me/ajax/api/options/fetchValues'.
      footer-rollup-5110.js:132 vBulletin.loadingIndicator.hide ajax indicator suppressed
      footer-rollup-5110.js:132 Securitytoken updated
      footer-rollup-5110.js:132 vBulletin.loadingIndicator.show Counter: 1 Source: ajaxStart
      jquery.min.js:4 XMLHttpRequest cannot load http://www.nessiedev.me/ajax/api/options/fetchValues. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://nessiedev.me' is therefore not allowed access.send @ jquery.min.js:4
      footer-rollup-5110.js:132 Error when fetching options: NetworkError: Failed to execute 'send' on 'XMLHttpRequest': Failed to load 'http://www.nessiedev.me/ajax/api/options/fetchValues'.
      footer-rollup-5110.js:132 vBulletin.loadingIndicator.hide Counter: 0 Source: ajaxStop

      From console.

      Comment


      • #4
        Can you try downgrading PHP 7 to at least 5.4? I'm not sure vB5 is compatible with 7.

        Btw, remove your password info in your first post. You provided too much information.

        GIPHY for vB5 AutoLinker Auto-Create Flag Report Topic Social Icons in Postbit Clear Cache Cron DragDrop Upload Topic AJAX AutoUpdate Custom Avatars Selector Stop Links in Posts...and more!

        Comment


        • #5
          Whoops haha. Probably should have caught that thank you. I'll try downgrading to PHP 5.4 later today, I assumed that 5.x+ would include 7. Looking back I probably shouldn't have assumed a major release wouldn't be classified the same

          Comment


          • #6
            Wait, the Jira says php 7 support is resolved. I could be missing something though,

            http://tracker.vbulletin.com/browse/VBV-14660

            Comment


            • #7
              Originally posted by nessierules View Post
              Wait, the Jira says php 7 support is resolved. I could be missing something though,

              http://tracker.vbulletin.com/browse/VBV-14660
              Yes, resolved but the Fix Version has no actual version yet, therefore the fix is not yet released.

              GIPHY for vB5 AutoLinker Auto-Create Flag Report Topic Social Icons in Postbit Clear Cache Cron DragDrop Upload Topic AJAX AutoUpdate Custom Avatars Selector Stop Links in Posts...and more!

              Comment


              • #8
                5.1.10 is not compatible with php 7.
                However, a future release will be....hopefully 5.2.1, not that far in the future, the bulk of the work is done and we have early alpha copies running on php 7 servers.
                MARK.B | vBULLETIN SUPPORT

                TalkNewsUK - My vBulletin 5.6.3 Demo
                AdminAmmo - My Cloud Demo

                Comment


                • #9
                  Originally posted by Mark.B View Post
                  5.1.10 is not compatible with php 7.
                  However, a future release will be....hopefully 5.2.1, not that far in the future, the bulk of the work is done and we have early alpha copies running on php 7 servers.
                  Awesome, I'm really looking forward to that

                  Comment

                  Related Topics

                  Collapse

                  Working...
                  X