Deprecated: Assigning the return value of new by reference is deprecated in

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Tariq Rathore
    Senior Member
    • Mar 2008
    • 337
    • 3.8.x

    Deprecated: Assigning the return value of new by reference is deprecated in

    my site not works it's show me following erros

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

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

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

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

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

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

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

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

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

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

    Fatal error: Call to undefined function cmps_template_alter() in /home/xxx/public_html/forums/includes/functions.php(2937) : eval()'d code on line 3
    Mortal Kombat Nexus
    Pleae read before buying Ryan
  • Trevor Hannant
    vBulletin Support
    • Aug 2002
    • 24359
    • 5.7.X

    #2
    To troubleshoot this, first reupload all the original vB non-image files (except install.php). Make sure you upload these in ASCII format and overwrite the ones on the server. Also be sure to upload the admincp files to whichever directory you have set in your config.php file. Then run 'Suspect File Versions' in Diagnostics to make sure you have all the original files for your version and that none show 'File does not contain expected contents':

    Admin CP -> Maintenance -> Diagnostics -> Suspect File Versions

    [Note: In some cases you may also need to remove any of the listed .xml files in the includes/xml directory.]

    Next, disable all plugins.

    Note: To temporarily disable the plugin system, edit config.php and add this line right under <?php

    define('DISABLE_HOOKS', true);

    Then if you still have this problem, create a new style and choose no parent style. This will force it to use the default templates. Finally empty your browser cache, close all browser windows then try again. Make sure you change to the new style and view your forums with it.

    Do you have the same problem?
    Vote for:

    - Admin Settable Paid Subscription Reminder Timeframe (vB6)
    - Add Admin ability to auto-subscribe users to specific channel(s) (vB6)

    Comment

    • Tariq Rathore
      Senior Member
      • Mar 2008
      • 337
      • 3.8.x

      #3
      no my problem Hosting side they were using different php language but now my site works but now there is another problem start

      Database error in vBulletin 3.8.2:

      Invalid SQL:

      UPDATE template SET
      title = 'adv_portal_mkhistory',

      dateline = 1294658835,
      username = 'MKRayden',
      version = '3.8.2',
      product = 'vbulletin'
      WHERE templateid = 15108;

      MySQL Error : Got a packet bigger than 'max_allowed_packet' bytes
      Error Number : 1153
      Request Date : Monday, January 10th 2011 @ 05:27:15 AM
      Error Date : Monday, January 10th 2011 @ 05:27:16 AM
      Script : http://www.mknexusonline.com/forums/...updatetemplate
      Referrer : http://www.mknexusonline.com/forums/...=&expandset=37
      IP Address : 110.34.34.138
      Username : MKRayden
      Classname : vB_Database
      MySQL Version : 5.0.91-community

      and i don't remember how change 'max_allowed_packet' bytes

      if you know then kindly help me
      Mortal Kombat Nexus
      Pleae read before buying Ryan

      Comment

      • Trevor Hannant
        vBulletin Support
        • Aug 2002
        • 24359
        • 5.7.X

        #4
        You need to ask your host to increase the 'max_allowed_packet' variable in the my.cnf file and restart MySQL. The default is 1Mb, but most hosts run 8-16 Mb without problems.

        More info here: http://dev.mysql.com/doc/refman/5.0/...too-large.html
        Vote for:

        - Admin Settable Paid Subscription Reminder Timeframe (vB6)
        - Add Admin ability to auto-subscribe users to specific channel(s) (vB6)

        Comment

        • Tariq Rathore
          Senior Member
          • Mar 2008
          • 337
          • 3.8.x

          #5
          I can't fix this problem from my hand
          Mortal Kombat Nexus
          Pleae read before buying Ryan

          Comment

          • GregUURL
            Member
            • May 2010
            • 62
            • 4.0.x

            #6
            Good looking site! I believe your on shared hosting and will have to get the host involved.
            Greg
            www.urljet.com

            Comment

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