PDA

View Full Version : Deprecated Errors on Site


SVTCobraLTD
04-26-2017, 08:30 AM
I kepp getting this error when visiting my forums. I have tried disabling all plugins and nothing changed. Any thoughts?

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
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
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
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
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
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
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 1494242132 at 1494242132 ---------------

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 1494245962 at 1494245962 ---------------

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
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.