error in VBA cmps

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sundarmobiles
    Member
    • Sep 2007
    • 82
    • 3.7.x

    error in VBA cmps

    Hi am getting this error while opening my homepage http://srimeenakshimobiles.com am using VBA cmps please any one help me out to solve this one


    Deprecated: Assigning the return value of new by reference is deprecated in /home/srimeena/public_html/forums/includes/init.php on line 55

    Deprecated: Assigning the return value of new by reference is deprecated in /home/srimeena/public_html/forums/includes/init.php on line 107

    Deprecated: Assigning the return value of new by reference is deprecated in /home/srimeena/public_html/forums/includes/init.php on line 111

    Deprecated: Assigning the return value of new by reference is deprecated in /home/srimeena/public_html/forums/includes/init.php on line 119

    Deprecated: Assigning the return value of new by reference is deprecated in /home/srimeena/public_html/forums/includes/init.php on line 130

    Deprecated: Assigning the return value of new by reference is deprecated in /home/srimeena/public_html/forums/includes/init.php on line 134

    Deprecated: Assigning the return value of new by reference is deprecated in /home/srimeena/public_html/forums/includes/init.php on line 142

    Deprecated: Assigning the return value of new by reference is deprecated in /home/srimeena/public_html/forums/includes/init.php on line 211

    Deprecated: Assigning the return value of new by reference is deprecated in /home/srimeena/public_html/forums/includes/init.php on line 389

    Deprecated: Assigning the return value of new by reference is deprecated in /home/srimeena/public_html/forums/includes/class_core.php on line 2552

  • Zachery
    Former vBulletin Support
    • Jul 2002
    • 59097

    #2
    Have you tried contacting the author? We don't support third party addons.

    Comment

    • wda2015
      Senior Member
      • May 2001
      • 1135

      #3
      edit init.php file and replace all =& to just & then it should work.
      Simple Straight Forward EU cPanel vBulletin Web Hosting Provider.

      Comment

      • BirdOPrey5
        Senior Member
        • Jul 2008
        • 9613
        • 5.6.3

        #4
        Originally posted by WEBDosser
        edit init.php file and replace all =& to just & then it should work.
        The class_core.php file as well... On each line number indicated in the notice.

        Comment

        • sundarmobiles
          Member
          • Sep 2007
          • 82
          • 3.7.x

          #5
          After i replaced init.php file as u said i got this error site not opening check the screenshot
          Attached Files

          Comment

          • sundarmobiles
            Member
            • Sep 2007
            • 82
            • 3.7.x

            #6
            replace all or the error number only which one showing?

            Comment

            • sundarmobiles
              Member
              • Sep 2007
              • 82
              • 3.7.x

              #7
              After replaced am getting this error one line

              Fatal error
              : Call to a member function fetch_config() on a non-object in /home/srimeena/public_html/forums/includes/init.php on line 58

              Comment

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

                #8
                Please be aware that we can't support third party add ons.

                With that in mind, you could try the following:

                In /includes/class_core.php locate lines 5683-5685 (approx)
                Code:
                case E_NOTICE:
                // Just ignore these completely //
                break;
                Change to this
                Code:
                case E_NOTICE:
                case E_STRICT;
                case E_DEPRECATED;
                // Just ignore these completely //
                break;
                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

                • sundarmobiles
                  Member
                  • Sep 2007
                  • 82
                  • 3.7.x

                  #9
                  Dear sir
                  I cant find this line under class_core.php

                  Comment

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

                    #10
                    The line numbers are approximate, but this code is definitely in that file in 4.2.2.
                    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

                    • BirdOPrey5
                      Senior Member
                      • Jul 2008
                      • 9613
                      • 5.6.3

                      #11
                      Originally posted by Mark.B
                      The line numbers are approximate, but this code is definitely in that file in 4.2.2.
                      This is the VB 3.8 forum, i assume the customer has 3.8.

                      sundarmobiles, that code may not exist in 3.8 please disregard and do as I suggest below-

                      It looks like something went wrong with your file edits since the first line you were asked to edit was line 55 in init.php and the very next line with code on it is causing the problem. I suggest you re-download a fresh init.php for your version of vBulletin and re-upload... Then retry the edits- make sure you use a good text editor like Notepad2 or Notepad++ both are free for Windows (Google for them) do not use the built in Widows Notepad.

                      An example of the edit is line 55 in init.php is:
                      PHP Code:
                      $vbulletin =& new vB_Registry(); 
                      and you just change it to

                      PHP Code:
                      $vbulletin = new vB_Registry(); 
                      And do the similar thing for each line listed in init.php and class_core.php.

                      Comment

                      Related Topics

                      Collapse

                      Working...