Announcement

Collapse
No announcement yet.

Can't log in to Admin CP all of a sudden

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

  • Can't log in to Admin CP all of a sudden

    I can't login to my admincp. An error on top of page shows: Warning: Parameter 3 to vB_Session_Web::getSession() expected to be a reference, value given in .../vb/request.php on line 226

    And on the bottom of the page left: = = = =

    And I or nobody else can login to the site: Warning: Parameter 3 to vB_Session_WebApi::getSession() expected to be a reference, value given in .../vb/request.php on line 226 Warning: Cannot modify header information - headers already sent by (output started at .../vb/vb.php:1129) in /home/xxx/public_html/includes/vb5/frontend/controller/auth.php on line 61
    An unexpected error was returned: 'Argument 1 passed to vB::setCurrentSession() must be an instance of vB_Session, null given, called in /home/xxx/public_html/core/vb/request.php on line 227'


    William
    Last edited by William Thomas Jr; Wed 27th Jul '16, 1:39am.

  • #2
    Please disregard, my host upgraded to PHP 7.0.9 from 7.0.7 without telling me.

    Comment


    • #3
      Originally posted by William Thomas Jr View Post
      Please disregard, my host upgraded to PHP 7.0.9 from 7.0.7 without telling me.
      Are you using a managed hosting service?

      Also, why you got that error, as I know, vB5 supported PHP7
      Web Hosting Forum - Learn web hosting and offering your web hosting plans for free!
      Tranh phong cảnh, tranh treo tường nghệ thuật đẹp!

      Comment


      • #4


        Yes, I am using a managed hosting service from Siteground.
        Last edited by William Thomas Jr; Wed 27th Jul '16, 3:50am.

        Comment


        • #5
          I recall there were issues in php 7.0.8 and upwards that are resolved in vB 5.2.3.

          This could be one, but it would be worth logging it in the tracker so the devs can check it out.
          Last edited by Mark.B; Wed 27th Jul '16, 3:39pm.
          MARK.B | vBULLETIN SUPPORT

          TalkNewsUK - My vBulletin 5.5.4 Demo
          AdminAmmo - My Cloud Demo

          Comment


          • #6
            Having the exact same issue - hostgator upgraded to PhP 7.0.9 So what is the solution?

            Comment


            • #7
              Originally posted by MDawg View Post
              Having the exact same issue - hostgator upgraded to PhP 7.0.9 So what is the solution?
              It's a confirmed bug: http://tracker.vbulletin.com/browse/VBV-16318
              At this point, the only fix is to revert back to at least php 7.0.7.
              MARK.B | vBULLETIN SUPPORT

              TalkNewsUK - My vBulletin 5.5.4 Demo
              AdminAmmo - My Cloud Demo

              Comment


              • MDawg
                MDawg commented
                Editing a comment
                I voted for the bug but hope that 5.2.3 will work with PhP 7.0.9 or higher.

            • #8
              I voted for the bug. Will it be fixed in vb 5.2.3 ? I hope so - because on my shared hostgator server there was no way to revert to 7.0.7 If I want PhP 7 on my shared server I must have 7.0.9

              So for now, I had to revert all the way back to PhP 5.6.24

              Comment


              • William Thomas Jr
                William Thomas Jr commented
                Editing a comment
                I'm in the same boat. I had to revert back to PHP 5.6. I had my host install PHP 7.0.8 but the site wasn't even able to display. I didn't know it would work with PHP 7.0.7. I'm not going to ask them to install PHP 7.0.7 if within days or a week there is going to be a fix in Vbulletin!

                MDawg, you may want to have your server taken off "auto" update. My hosting company did to prevent this from happening again. It was responsible for auto updating PHP versions.

                William

            • #9
              Thanks. Well, the way it works on my server is that I specify what version of PhP I want, and if I specify 7, I just get whatever the latest is - currently on my server, sadly, they have no way for me to pick between PhP 7 versions...right now, it's either the latest, or back to Php 5.6
              Last edited by MDawg; Thu 28th Jul '16, 9:13am.

              Comment


              • #10
                Will this issue be resolved in 5.2.3 - will it work with PhP 7.0.9 ?

                Comment


                • #11
                  Maybe don't be in such a rush to "upgrade" to the newest version of everything. It takes time for these things to catch up with one another.

                  Comment


                  • William Thomas Jr
                    William Thomas Jr commented
                    Editing a comment
                    I'm now requesting that my host downgrade PHP to PHP 7.0.7. I didn't want to request this if the bug would be fixed by official release of 5.2.3. We'll see if my host will do it. They already had downgraded PHP to 7.0.8, but I didn't realize at that time it too was incompatible.

                  • William Thomas Jr
                    William Thomas Jr commented
                    Editing a comment
                    My host rolled back my PHP to 7.0.7. No problems ..... I must say that after using PHP 7, 5.6 was unbearable (slow).

                  • MDawg
                    MDawg commented
                    Editing a comment
                    DC not sure if you even followed this thread. Those experiencing this issue did not upgrade to PhP except with the assurance from vbulletin that vbulletin is PhP 7 compatible, which it has been, until now. We've been running on PhP 7 for months now. With many hosting servers we don't have the option of picking any version of PhP we want - it's 7 or 5.
                    Last edited by MDawg; Fri 29th Jul '16, 10:12am.

                • #12
                  Setting display_errors off in your PHP ini should mitigate this problem. The problem appears to be that the warning output is interfering with sending the cookie headers (but for some reason only for FCGI).

                  Comment


                  • William Thomas Jr
                    William Thomas Jr commented
                    Editing a comment
                    Didn't work for me Kevin. Avatars etc would not display, and still couldn't log in.

                • #13
                  Just got the same error myself today. Thanks for starting this thread William.
                  Had to revert php as MDawg did.
                  sucks.
                  Last edited by Mackey; Thu 28th Jul '16, 3:35pm.
                  ~ MackeyFlipClockFans.com

                  Comment


                  • #14
                    Some of us prepay hosting for years at a time, so simply switching is not an immediate option. Also, if we are on a certain host (in my case Hostgator), it is because that host has worked well for us over the years.

                    It is up to vbulletin to work with the latest PhP if it is claiming that it works with PhP 7 then it should work with whatever the latest version of PhP 7 is.

                    Comment


                    • #15
                      Originally posted by MDawg View Post
                      Some of us prepay hosting for years at a time, so simply switching is not an immediate option. Also, if we are on a certain host (in my case Hostgator), it is because that host has worked well for us over the years.

                      It is up to vbulletin to work with the latest PhP if it is claiming that it works with PhP 7 then it should work with whatever the latest version of PhP 7 is.
                      That's great in principle, but when new versions of php are released that contain changes that break parts of our product, we can't just magic up a fix out of nowhere. It needs to be investigated, a fix written, that fix extensively tested to ensure it doesn't break anything, etc.

                      A good host would not secretly upgrade php the moment a new version is released. That too needs to be planned and notified.
                      MARK.B | vBULLETIN SUPPORT

                      TalkNewsUK - My vBulletin 5.5.4 Demo
                      AdminAmmo - My Cloud Demo

                      Comment


                      • William Thomas Jr
                        William Thomas Jr commented
                        Editing a comment
                        Couldn't agree more. Siteground had my sever on an "auto" update for PHP. After this incident they removed the auto update feature from my server, and downgraded the PHP to 7.0.7. They resolved the issue.

                    Related Topics

                    Collapse

                    • saiff
                      Invalid SQL: SELECT `varname`,`languageid`,`text` FROM phrase
                      by saiff
                      What is this error?



                      Invalid SQL:
                      SELECT `varname`,`languageid`,`text` FROM phrase
                      WHERE `varname` IN ('Description cannot be empty. Please set this field.','go_back','my_profile','my_recent_posts','user_settings','log_out','logo','search' ,'filter_search','navbar_home','navbar_blogs','navbar_articles','navbar_social_groups','na vbar_158516011593_15751604158916081585','navbar_15751604157816081575160216101593','navbar_ 15781586161016101606_15751604160516081575159016101593','navbar_newtopics','navbar_todays_p osts','navbar_whos_online','navbar_mark_channels_read','navbar_member_list','search_in_tit les_only','advanced_search','notice_23_html','navbar_help','navbar_contact_us','go_to_top' ,'powered_by_vbulletin','footer_current_time','working_ellipsis','yes','no','ok','cancel')...
                      Tue 25th Apr '17, 5:14am
                    • mittac
                      Error log
                      by mittac
                      [20-Oct-2017 00:42:08 Europe/Minsk] PHP Warning: Illegal string offset 'starter' in public_html/includes/vb5/template.php(318) : eval()'d code on line 167
                      [20-Oct-2017 00:42:08 Europe/Minsk] PHP...
                      Fri 20th Oct '17, 12:49am
                    • saiff
                      Warning: Illegal string offset
                      by saiff
                      hi,
                      when viewing some members blog, get this error

                      [16-Apr-2017 10:10:15 Asia/Riyadh] Warning: Illegal string offset 'moderatorperms' in /home/usre/public_html/vb/includes/vb5/template.php(318)...
                      Sun 16th Apr '17, 1:48am
                    • adkaush
                      Warning: array_key_exists() expects parameter 2 to be array, null given in ..
                      by adkaush
                      Forum version: vBulletin 5.3.0 Connect
                      PHP version: 5.6
                      1. The forum was working absolutely fine till last night (IST). Now after 8 hours I visited the forum and got a couple of warnings right up
                      ...
                      Tue 25th Jul '17, 7:02pm
                    • 2TrakR
                      Assistance with SQL error
                      by 2TrakR
                      Randomly getting the following SQL error. Different users. I'm having difficulty determining "what" is wrong. I believe it is indicating a thumbnail image is the cause, but if so, I can't determine...
                      Thu 9th Aug '18, 6:29am
                    Working...
                    X