vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   PHP error (https://vborg.vbsupport.ru/showthread.php?t=316329)

Snowhog 12-31-2014 04:36 AM

PHP error
 
We migrated our vBulletin 4.2.2 forum over to a new server and began getting php errors in various areas of the forum. This one I don't know how to fix. It is triggered when we click on the Advanced Search link.

Quote:

Warning: Declaration of vBForum_Item_SocialGroupMessage::getLoadQuery() should be compatible with vB_Model::getLoadQuery($required_query = '', $force_rebuild = false) in ..../packages/vbforum/item/socialgroupmessage.php on line 0
We are using PHP 5.5.9 (Ubuntu).

ozzy47 12-31-2014 04:40 AM

In includes/class_core.php locate lines 5683-5685 which should be this.

Code:

case E_NOTICE:   
        // Just ignore these completely //   
    break;

And change it to this.

Code:

case E_NOTICE:
  case E_STRICT;   
  case E_DEPRECATED;       
    // Just ignore these completely // 
break;


Snowhog 12-31-2014 04:49 AM

So that it looks like this:

case E_NOTICE:
// Just ignore these completely //
break;

case E_NOTICE:
case E_STRICT;
case E_DEPRECATED;
// Just ignore these completely //
break;

Ah, okay. I 'got it'. Change to this:

case E_NOTICE:
case E_STRICT;
case E_DEPRECATED;
// Just ignore these completely //
break;

ozzy47 12-31-2014 04:59 AM

Yeah change it to that.

Snowhog 12-31-2014 04:59 AM

That fixed it! Thank you ozzy!! Thank you VERY much!!!

ozzy47 12-31-2014 05:00 AM

Not a problem, glad to help. :)

Snowhog 12-31-2014 05:08 AM

We were also getting php errors concerning preg_replace() /e being depricated and to use preg_replace_callback() instead. For each reported occurrence, I made the change in the affected .php file. Would I not have had to do that with this fix??

ForceHSS 12-31-2014 05:20 AM

update to 4.2.3 all fixes are in there or see the link in my sig

Snowhog 12-31-2014 05:29 AM

vBulletin 4.2.3 ?? We are running 4.2.2 Patch Level 3.

AndrewSimm 12-31-2014 05:58 AM

Quote:

Originally Posted by Snowhog (Post 2529705)
vBulletin 4.2.3 ?? We are running 4.2.2 Patch Level 3.

4.2.3 is considered a beta but it runs fine.


All times are GMT. The time now is 02:42 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00987 seconds
  • Memory Usage 1,728KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete