همون طور که می دانید، تولید کنندگان ویبولتین، نسخه 4.2 این محصول را با php 5.3 و 5.4 سازگار کرده اند و گفته اند که این محصول با php های بالاتر سازگاری کاملی ندارد و ارور هایی را تجربه خواهید کرد که یا باید تغییری در فایل ها ایجاد کنید و یا کاهش نسخه پی اچ پی
از آن جایی که ممکن است تغییر هاست برای همه میسر نباشد، لذا باید دست به تغییر کد ها برد
اگر قصد دارید ویبولتین 4.2 را در (لوکال)هاست با php 7 نصب کنید و در صورتی که خطا های زیر را مشاهده کردید، به ازای هر خطای زیر، باید کد های زیر را از فایل زیر به شکل مناسب تغییر دهید
در \ includes \ class_core.php پیدا کنید:
جایگزین کنید با:
در \includes\class_core.php پیدا کنید:
جایگزین کنید با:
در \includes\class_core.php پیدا کنید:
جایگزین کنید با:
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 ....\includes\class_core.php on line 3139
در \includes\class_core.php پیدا کنید:
جایگزین کنید با:
در \includes\class_core.php پیدا کنید:
جایگزین کنید با:
در \includes\class_xml.php پیدا کنید:
جایگزین کنید با:
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; vB_XML_Builder has a deprecated constructor in ....\includes\class_xml.php on line 689
در \includes\class_xml.php پیدا کنید:
جایگزین کنید با:
از آن جایی که ممکن است تغییر هاست برای همه میسر نباشد، لذا باید دست به تغییر کد ها برد
اگر قصد دارید ویبولتین 4.2 را در (لوکال)هاست با php 7 نصب کنید و در صورتی که خطا های زیر را مشاهده کردید، به ازای هر خطای زیر، باید کد های زیر را از فایل زیر به شکل مناسب تغییر دهید
Deprecated:, Methods with the Same name as with Their class will of the BE the constructors' not in a future version of the PHP; vB_Database has a deprecated constructor in .... \ includes \ class_core.php on line 83
در \ includes \ class_core.php پیدا کنید:
کد:
function vB_Database(&$registry)
جایگزین کنید با:
کد:
function __construct(&$registry)
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 ....\includes\class_core.php on line 1479
در \includes\class_core.php پیدا کنید:
کد:
function vB_Datastore(&$registry, &$dbobject)
جایگزین کنید با:
کد:
function __construct(&$registry, &$dbobject)
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 ....\includes\class_core.php on line 1820
در \includes\class_core.php پیدا کنید:
کد:
function vB_Input_Cleaner(&$registry)
جایگزین کنید با:
کد:
function __construct(&$registry)
در \includes\class_core.php پیدا کنید:
کد:
function vB_Registry()
جایگزین کنید با:
کد:
function __construct()
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 ....\includes\class_core.php on line 3541
در \includes\class_core.php پیدا کنید:
کد:
function vB_Session(&$registry, $sessionhash = '', $userid = 0, $password = '', $styleid = 0, $languageid = 0)
کد:
function __construct(&$registry, $sessionhash = '', $userid = 0, $password = '', $styleid = 0, $languageid = 0)
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; vB_XML_Parser has a deprecated constructor in ....\includes\class_xml.php on line 52
در \includes\class_xml.php پیدا کنید:
کد:
function vB_XML_Parser($xml, $path = '', $readencoding = false)
کد:
function __construct($xml, $path = '', $readencoding = false)
در \includes\class_xml.php پیدا کنید:
کد:
function vB_XML_Builder(&$registry, $content_type = null, $charset = null)
جایگزین کنید با:
کد:
function __construct(&$registry, $content_type = null, $charset = null)




نظر