Announcement

Collapse
No announcement yet.

An unexpected error was returned: 'Undefined class constant 'TYPE_FLOAT''

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

  • An unexpected error was returned: 'Undefined class constant 'TYPE_FLOAT''

    Just installed a fresh 5.4.4 on ubuntu 18.04 with php 7.2 , Apache/2.4.29 everything seems fine, but when i go set permission on channel permission manager and save get this error. Any idea ?

  • #2
    What is the full error including file and line numbers?
    Translations provided by Google.

    Wayne Luke
    The Rabid Badger - a vBulletin Cloud demonstration site.
    vBulletin 5 API - Full / Mobile
    Vote for your favorite feature requests and the bugs you want to see fixed.

    Comment


    • #3
      It happens in admincp. The strange is the url link, looks like a bad login (to me), so i refreshed the page, logout, login again but error is still there. Tried with firefox from where i never opened the link and it's the same. As it is not the first time i do an installation/upgrade, and 99.9% always ok ....wonder if it is php 7.2 causing the problem (mcrypt it's not installed). Apache log seems ok
      Attached Files
      Last edited by mat8861; Tue 2nd Oct '18, 2:52pm.

      Comment


      • #4
        Please enable debug mode so we can hopefully see the complete error. Otherwise, you'll need to pull it from the error log on your server.

        https://www.vbulletin.com/go/vb5debug
        Translations provided by Google.

        Wayne Luke
        The Rabid Badger - a vBulletin Cloud demonstration site.
        vBulletin 5 API - Full / Mobile
        Vote for your favorite feature requests and the bugs you want to see fixed.

        Comment


        • #5
          ok forget about the url, was the chrome cache showing error of old admin. Here is debug mode of the error :
          Exception trace:
          ## /var/www/html/forum/core/admincp/forumpermission.php(575) Exception Thrown
          #0 /var/www/html/forum/includes/api/interface/collapsed.php(142): require_once()
          #1 /var/www/html/forum/includes/vb5/frontend/controller/relay.php(33): Api_Interface_Collapsed->relay('admincp/forumpe...')
          #2 /var/www/html/forum/index.php(74): vB5_Frontend_Controller_Relay->admincp('forumpermission...')
          #3 {main}

          Comment


          • #6
            Another strange thing, tested channel permission instead from quick-permission, from the regular page and setting deny channel to a usergroup works fine.
            I noted VB5 asked to set channel permission to "custom", while in quick permission there is not such option or message, could that be the cause ?

            Comment


            • #7
              Looking at the code, I can see potential issues but cannot recreate the issue.

              What version of PHP are you using?

              What are the exact steps that you are performing to create the error?
              Translations provided by Google.

              Wayne Luke
              The Rabid Badger - a vBulletin Cloud demonstration site.
              vBulletin 5 API - Full / Mobile
              Vote for your favorite feature requests and the bugs you want to see fixed.

              Comment


              • #8
                php 7.2.10-0 ubuntu 18.04.1 I go in channel management>channel permission>quick channel permission setup>select the subforum>mark unregistred user> can view channels > no > save > An unexpected error was returned: 'Undefined class constant 'TYPE_FLOAT''

                Comment


                • #9
                  Thanks. I can recreate the issue and have created a bug report for it. For the mean time, I suggest using the standard permissions editor to work around the error.

                  https://tracker.vbulletin.com/vbulle...sues/VBV-18838
                  Translations provided by Google.

                  Wayne Luke
                  The Rabid Badger - a vBulletin Cloud demonstration site.
                  vBulletin 5 API - Full / Mobile
                  Vote for your favorite feature requests and the bugs you want to see fixed.

                  Comment


                  • #10
                    Oh good news.

                    Comment

                    Related Topics

                    Collapse

                    Working...
                    X