vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Deprecated Errors on Site (https://vborg.vbsupport.ru/showthread.php?t=324980)

SVTCobraLTD 04-26-2017 08:30 AM

Deprecated Errors on Site
 
I kepp getting this error when visiting my forums. I have tried disabling all plugins and nothing changed. Any thoughts?

Code:

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; vB_Database has a deprecated constructor in /home1/site/public_html/forums/includes/class_core.php on line 78

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; vB_Datastore has a deprecated constructor in /home1/site/public_html/forums/includes/class_core.php on line 1251

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; vB_Input_Cleaner has a deprecated constructor in /home1/site/public_html/forums/includes/class_core.php on line 1510

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; vB_Registry has a deprecated constructor in /home1/site/public_html/forums/includes/class_core.php on line 2346

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; vB_Session has a deprecated constructor in /home1/site/public_html/forums/includes/class_core.php on line 2647

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; vB_Shutdown has a deprecated constructor in /home1/site/public_html/forums/includes/class_core.php on line 3171



Unable to add cookies, header already sent.
File: /home1/site/public_html/forums/includes/class_core.php
Line: 78


Dave 04-26-2017 11:31 AM

Are you running the supported PHP version for the vBulletin version you are running?

blind-eddie 04-26-2017 06:49 PM

3.8.9 Patch Level 1
php: 5.4.45

SVTCobraLTD 04-26-2017 10:49 PM

PHP is 5.4

Dave 04-26-2017 11:21 PM

The only possible reason of these errors showing up is when the PHP version you're running is not supported by the vBulletin version.

SVTCobraLTD 04-27-2017 12:04 AM

Quote:

Originally Posted by Dave (Post 2585883)
The only possible reason of these errors showing up is when the PHP version you're running is not supported by the vBulletin version.

But vb 3.8.9 recommends 5.3 or higher. I am on PHP 5.4.

Dave 04-27-2017 11:16 AM

What is the exact version showing up in your AdminCP > Maintenance > PHP version?

SVTCobraLTD 04-27-2017 12:08 PM

Quote:

Originally Posted by Dave (Post 2585889)
What is the exact version showing up in your AdminCP > Maintenance > PHP version?

PHP Version 5.4.45

Paul M 04-27-2017 03:33 PM

Quote:

Originally Posted by SVTCobraLTD (Post 2585884)
But vb 3.8.9 recommends 5.3 or higher. I am on PHP 5.4.

No, you're not.

Those errors are PHP 7 errors, which requires 3.8.11

SVTCobraLTD 04-27-2017 06:45 PM

Quote:

Originally Posted by Paul M (Post 2585902)
No, you're not.

Those errors are PHP 7 errors, which requires 3.8.11

I confirmed with my hosting company. PHP 5.4.45

Paul M 04-28-2017 12:24 PM

Sorry, but no.

Quite simply, they are PHP 7 errors, there is no argument about it.

http://php.net/manual/en/migration70.deprecated.php

blind-eddie 04-28-2017 02:23 PM

What I posted in the third post is exactly what he has.

Dave 04-28-2017 02:36 PM

Quote:

Originally Posted by blind-eddie (Post 2585948)
What I posted in the third post is exactly what he has.

That's really weird because the deprecation error he's receiving was introduced along with PHP 7. Any older PHP versions do not cause such errors.

OP should reach out to the host and see what's going wrong here.

Paul M 04-28-2017 08:02 PM

Quote:

Originally Posted by blind-eddie (Post 2585948)
What I posted in the third post is exactly what he has.

You can keep insisting this as long as you want, but the facts are they are PHP 7 errors.
No other versions of PHP generate those warnings, there simply is no argument about it.

SVTCobraLTD 05-02-2017 10:04 PM

Issue has been fixed. The hosting company had to purge the PHP files and reset everything. Now the site is working.

blind-eddie 05-03-2017 06:15 AM

When I visit your site, I am logged in as you on forum home but, change to my own account when I change pages and then change to other member accounts. I have never seen that happen before.

SVTCobraLTD 05-03-2017 08:25 AM

I see this happening too. Anyone have any thoughts on why this would happen?

Paul M 05-03-2017 09:57 AM

Caching of some sort (varnish for example).

This seems to be happening more and more, I dont know if its some trend by hosts to introduce caching, but its deadly for forums.

blind-eddie 05-03-2017 08:23 PM

Ask your host to add your site to the cache exclusion list.

SVTCobraLTD 05-04-2017 10:49 AM

For aome reason this seems to not happen when using the site via mobile. It is occurring while using a desktop computer for me. Hitting the refresh button will make it come back to my account though.

SVTCobraLTD 05-08-2017 08:00 AM

Anyone have any advice on how to resolve this issue? The hosting company is not much help.

--------------- Added [DATE]1494242132[/DATE] at [TIME]1494242132[/TIME] ---------------

Also, I am having members report issues with the following error.

Your submission could not be processed because a security token was invalid.

If this occurred unexpectedly, please inform the administrator and describe the action you performed before you received this error.

--------------- Added [DATE]1494245962[/DATE] at [TIME]1494245962[/TIME] ---------------

Quote:

Originally Posted by Paul M (Post 2586151)
Caching of some sort (varnish for example).

This seems to be happening more and more, I dont know if its some trend by hosts to introduce caching, but its deadly for forums.

Spoke to someone else at the hosting company and they said the site is being varnished due to the CPU usage. Since I have very little files on my forums, I am not sure what could possibly be using so much. They could not help anymore other than saying that if the CPU usage comes down, the site will automatically be unvarnished within 24 hours.

Dave 05-08-2017 11:54 AM

There's nothing really you or we can do, the hosting provider is in the only position to disable the caching.
Of course you can ask to upgrade your hosting package to something that doesn't do aggressive caching by default or move to another host.

Paul M 05-08-2017 02:26 PM

Quote:

Originally Posted by SVTCobraLTD (Post 2586292)
Spoke to someone else at the hosting company and they said the site is being varnished due to the CPU usage. Since I have very little files on my forums, I am not sure what could possibly be using so much. They could not help anymore other than saying that if the CPU usage comes down, the site will automatically be unvarnished within 24 hours.

Sounds like typical host nonsense, and you need to move host, varnish is very bad for forums.


All times are GMT. The time now is 03:28 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.01126 seconds
  • Memory Usage 1,764KB
  • 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
  • (1)bbcode_code_printable
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (23)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete