ยินดีต้อนรับคุณ, บุคคลทั่วไป กรุณา เข้าสู่ระบบ หรือ ลงทะเบียน

เข้าสู่ระบบด้วยชื่อผู้ใช้ รหัสผ่าน และระยะเวลาในเซสชั่น

ThaiSEOBoard.comพัฒนาเว็บไซต์CMS & Free Script[SMF] ย้ายโฮสแล้วมีปัญหาครับ
หน้า: [1]   ลงล่าง
พิมพ์
ผู้เขียน หัวข้อ: [SMF] ย้ายโฮสแล้วมีปัญหาครับ  (อ่าน 5015 ครั้ง)
0 สมาชิก และ 1 บุคคลทั่วไป กำลังดูหัวข้อนี้
swakger
Newbie
*

พลังน้ำใจ: 0
ออฟไลน์ ออฟไลน์

กระทู้: 77



ดูรายละเอียด
« เมื่อ: 10 ธันวาคม 2019, 20:21:28 »

พอดีผมย้ายจาก vps รายเดือน มาเป็น hosting รายปี

แต่เปิดเว็บขึ้นมาไม่ได้ครับ มันขึ้นข้อความแบบนี้
โค๊ด:
Fatal error: Uncaught Error: Call to undefined function set_magic_quotes_runtime() in /home/hamsiami/domains/hamsiam.in.th/public_html/index.php:41 Stack trace: #0 {main} thrown in /home/hamsiami/domains/hamsiam.in.th/public_html/index.php on line 41

นี่คือโค้ดทั้งหมดใน Index.php ครับ
โค๊ด:
<?php
/**********************************************************************************
* index.php                                                                       *
***********************************************************************************
* SMF: Simple Machines Forum                                                      *
* Open-Source Project Inspired by Zef Hemel (zef@zefhemel.com)                    *
* =============================================================================== *
* Software Version:           SMF 1.1.15                                          *
* Software by:                Simple Machines (http://www.simplemachines.org)     *
* Copyright 2006-2009 by:     Simple Machines LLC (http://www.simplemachines.org) *
*           2001-2006 by:     Lewis Media (http://www.lewismedia.com)             *
* Support, News, Updates at:  http://www.simplemachines.org                       *
***********************************************************************************
* This program is free software; you may redistribute it and/or modify it under   *
* the terms of the provided license as published by Simple Machines LLC.          *
*                                                                                 *
* This program is distributed in the hope that it is and will be useful, but      *
* WITHOUT ANY WARRANTIES; without even any implied warranty of MERCHANTABILITY    *
* or FITNESS FOR A PARTICULAR PURPOSE.                                            *
*                                                                                 *
* See the "license.txt" file for details of the Simple Machines license.          *
* The latest version can always be found at http://www.simplemachines.org.        *
**********************************************************************************/


/* This, as you have probably guessed, is the crux on which SMF functions.
Everything should start here, so all the setup and security is done
properly.  The most interesting part of this file is the action array in
the smf_main() function.  It is formatted as so:

&#39;action-in-url&#39; => array(&#39;Source-File.php&#39;, &#39;FunctionToCall&#39;),

Then, you can access the FunctionToCall() function from Source-File.php
with the URL index.php?action=action-in-url.  Relatively simple, no?
*/

$forum_version = &#39;SMF 1.1.15&#39;;

// Get everything started up...
define(&#39;SMF&#39;, 1);
@set_magic_quotes_runtime(0);
error_reporting(E_ALL);
$time_start microtime();


// Make sure some things simply do not exist.
foreach (array(&#39;db_character_set&#39;) as $variable)
if (isset($GLOBALS[$variable]))
unset($GLOBALS[$variable]);

// Load the settings...
require_once(dirname(__FILE__) . &#39;/Settings.php&#39;);

// And important includes.
require_once($sourcedir . &#39;/QueryString.php&#39;);
require_once($sourcedir . &#39;/Subs.php&#39;);
require_once($sourcedir . &#39;/Errors.php&#39;);
require_once($sourcedir . &#39;/Load.php&#39;);
require_once($sourcedir . &#39;/Security.php&#39;);

// Using an old version of PHP?
if (@version_compare(PHP_VERSION, &#39;4.2.3&#39;) != 1)
require_once($sourcedir . &#39;/Subs-Compat.php&#39;);

// If $maintenance is set specifically to 2, then we&#39;re upgrading or something.
if (!empty($maintenance) && $maintenance == 2)
db_fatal_error();

// Connect to the MySQL database.
if (empty($db_persist))
$db_connection = @mysql_connect($db_server$db_user$db_passwd);
else
$db_connection = @mysql_pconnect($db_server$db_user$db_passwd);

// Show an error if the connection couldn&#39;t be made.
if (!$db_connection || !@mysql_select_db($db_name$db_connection))
db_fatal_error();

// Load the settings from the settings table, and perform operations like optimizing.
reloadSettings();
// Clean the request variables, add slashes, etc.
cleanRequest();
$context = array();

// Seed the random generator?
if (empty($modSettings[&#39;rand_seed&#39;]) || mt_rand(1, 250) == 69)
smf_seed_generator();

// Determine if this is using WAP, WAP2, or imode.  Technically, we should check that wap comes before application/xhtml or text/html, but this doesn&#39;t work in practice as much as it should.
if (isset($_SERVER[&#39;HTTP_ACCEPT&#39;]) && strpos($_SERVER[&#39;HTTP_ACCEPT&#39;], &#39;application/vnd.wap.xhtml+xml&#39;) !== false)
$_REQUEST[&#39;wap2&#39;] = 1;
elseif (isset($_SERVER[&#39;HTTP_ACCEPT&#39;]) && strpos($_SERVER[&#39;HTTP_ACCEPT&#39;], &#39;text/vnd.wap.wml&#39;) !== false)
{
if (strpos($_SERVER[&#39;HTTP_USER_AGENT&#39;], &#39;DoCoMo/&#39;) !== false || strpos($_SERVER[&#39;HTTP_USER_AGENT&#39;], &#39;portalmmm/&#39;) !== false)
$_REQUEST[&#39;imode&#39;] = 1;
else
$_REQUEST[&#39;wap&#39;] = 1;
}

if (!
defined(&#39;WIRELESS&#39;))
define(&#39;WIRELESS&#39;, isset($_REQUEST[&#39;wap&#39;]) || isset($_REQUEST[&#39;wap2&#39;]) || isset($_REQUEST[&#39;imode&#39;]));

// Some settings and headers are different for wireless protocols.
if (WIRELESS)
{
define(&#39;WIRELESS_PROTOCOL&#39;, isset($_REQUEST[&#39;wap&#39;]) ? &#39;wap&#39; : (isset($_REQUEST[&#39;wap2&#39;]) ? &#39;wap2&#39; : (isset($_REQUEST[&#39;imode&#39;]) ? &#39;imode&#39; : &#39;&#39;)));

// Some cellphones can&#39;t handle output compression...
$modSettings[&#39;enableCompressedOutput&#39;] = &#39;0&#39;;
// !!! Do we want these hard coded?
$modSettings[&#39;defaultMaxMessages&#39;] = 5;
$modSettings[&#39;defaultMaxTopics&#39;] = 9;

// Wireless protocol header.
if (WIRELESS_PROTOCOL == &#39;wap&#39;)
header(&#39;Content-Type: text/vnd.wap.wml&#39;);
}

// Check if compressed output is enabled, supported, and not already being done.
if (!empty($modSettings[&#39;enableCompressedOutput&#39;]) && !headers_sent() && ob_get_length() == 0)
{
// If zlib is being used, turn off output compression.
if (@ini_get(&#39;zlib.output_compression&#39;) == &#39;1&#39; || @ini_get(&#39;output_handler&#39;) == &#39;ob_gzhandler&#39; || @version_compare(PHP_VERSION, &#39;4.2.0&#39;) == -1)
$modSettings[&#39;enableCompressedOutput&#39;] = &#39;0&#39;;
else
ob_start(&#39;ob_gzhandler&#39;);
}
// This makes it so headers can be sent!
if (empty($modSettings[&#39;enableCompressedOutput&#39;]))
ob_start();

// Register an error handler.
set_error_handler(&#39;error_handler&#39;);

// Start the session. (assuming it hasn&#39;t already been.)
loadSession();

// What function shall we execute? (done like this for memory&#39;s sake.)
call_user_func(smf_main());

// Call obExit specially; we&#39;re coming from the main area ;).
obExit(nullnulltrue);

// The main controlling function.
function smf_main()
{
global $modSettings$settings$user_info$board$topic$maintenance$sourcedir;

// Special case: session keep-alive.
if (isset($_GET[&#39;action&#39;]) && $_GET[&#39;action&#39;] == &#39;keepalive&#39;)
die;

// Load the user&#39;s cookie (or set as guest) and load their settings.
loadUserSettings();

// Load the current board&#39;s information.
loadBoard();

// Load the current theme.  (note that ?theme=1 will also work, may be used for guest theming.)
loadTheme();

// Check if the user should be disallowed access.
is_not_banned();

// Load the current user&#39;s permissions.
loadPermissions();

// Do some logging, unless this is an attachment, avatar, theme option or XML feed.
if (empty($_REQUEST[&#39;action&#39;]) || !in_array($_REQUEST[&#39;action&#39;], array(&#39;dlattach&#39;, &#39;jsoption&#39;, &#39;.xml&#39;)))
{
// Log this user as online.
writeLog();

// Track forum statistics and hits...?
if (!empty($modSettings[&#39;hitStats&#39;]))
trackStats(array(&#39;hits&#39; => &#39;+&#39;));
}

// Is the forum in maintenance mode? (doesn&#39;t apply to administrators.)
if (!empty($maintenance) && !allowedTo(&#39;admin_forum&#39;))
{
// You can only login.... otherwise, you&#39;re getting the "maintenance mode" display.
if (isset($_REQUEST[&#39;action&#39;]) && ($_REQUEST[&#39;action&#39;] == &#39;login2&#39; || $_REQUEST[&#39;action&#39;] == &#39;logout&#39;))
{
require_once($sourcedir . &#39;/LogInOut.php&#39;);
return $_REQUEST[&#39;action&#39;] == &#39;login2&#39; ? &#39;Login2&#39; : &#39;Logout&#39;;
}
// Don&#39;t even try it, sonny.
else
{
require_once($sourcedir . &#39;/Subs-Auth.php&#39;);
return &#39;InMaintenance&#39;;
}
}
// If guest access is off, a guest can only do one of the very few following actions.
elseif (empty($modSettings[&#39;allow_guestAccess&#39;]) && $user_info[&#39;is_guest&#39;] && (!isset($_REQUEST[&#39;action&#39;]) || !in_array($_REQUEST[&#39;action&#39;], array(&#39;coppa&#39;, &#39;login&#39;, &#39;login2&#39;, &#39;register&#39;, &#39;register2&#39;, &#39;reminder&#39;, &#39;activate&#39;, &#39;smstats&#39;, &#39;help&#39;, &#39;verificationcode&#39;))))
{
require_once($sourcedir . &#39;/Subs-Auth.php&#39;);
return &#39;KickGuest&#39;;
}
elseif (empty($_REQUEST[&#39;action&#39;]))
{
// Action and board are both empty... BoardIndex!
if (empty($board) && empty($topic))
{
require_once($sourcedir . &#39;/BoardIndex.php&#39;);
return &#39;BoardIndex&#39;;
}
// Topic is empty, and action is empty.... MessageIndex!
elseif (empty($topic))
{
require_once($sourcedir . &#39;/MessageIndex.php&#39;);
return &#39;MessageIndex&#39;;
}
// Board is not empty... topic is not empty... action is empty.. Display!
else
{
require_once($sourcedir . &#39;/Display.php&#39;);
return &#39;Display&#39;;
}
}

// Here&#39;s the monstrous $_REQUEST[&#39;action&#39;] array - $_REQUEST[&#39;action&#39;] => array($file, $function).
$actionArray = array(
&#39;activate&#39; => array(&#39;Register.php&#39;, &#39;Activate&#39;),
&#39;admin&#39; => array(&#39;Admin.php&#39;, &#39;Admin&#39;),
&#39;announce&#39; => array(&#39;Post.php&#39;, &#39;AnnounceTopic&#39;),
&#39;ban&#39; => array(&#39;ManageBans.php&#39;, &#39;Ban&#39;),
&#39;boardrecount&#39; => array(&#39;Admin.php&#39;, &#39;AdminBoardRecount&#39;),
&#39;buddy&#39; => array(&#39;Subs-Members.php&#39;, &#39;BuddyListToggle&#39;),
&#39;calendar&#39; => array(&#39;Calendar.php&#39;, &#39;CalendarMain&#39;),
&#39;cleanperms&#39; => array(&#39;Admin.php&#39;, &#39;CleanupPermissions&#39;),
&#39;collapse&#39; => array(&#39;Subs-Boards.php&#39;, &#39;CollapseCategory&#39;),
&#39;convertentities&#39; => array(&#39;Admin.php&#39;, &#39;ConvertEntities&#39;),
&#39;convertutf8&#39; => array(&#39;Admin.php&#39;, &#39;ConvertUtf8&#39;),
&#39;coppa&#39; => array(&#39;Register.php&#39;, &#39;CoppaForm&#39;),
&#39;deletemsg&#39; => array(&#39;RemoveTopic.php&#39;, &#39;DeleteMessage&#39;),
&#39;detailedversion&#39; => array(&#39;Admin.php&#39;, &#39;VersionDetail&#39;),
&#39;display&#39; => array(&#39;Display.php&#39;, &#39;Display&#39;),
&#39;dlattach&#39; => array(&#39;Display.php&#39;, &#39;Download&#39;),
&#39;dumpdb&#39; => array(&#39;DumpDatabase.php&#39;, &#39;DumpDatabase2&#39;),
&#39;editpoll&#39; => array(&#39;Poll.php&#39;, &#39;EditPoll&#39;),
&#39;editpoll2&#39; => array(&#39;Poll.php&#39;, &#39;EditPoll2&#39;),
&#39;featuresettings&#39; => array(&#39;ModSettings.php&#39;, &#39;ModifyFeatureSettings&#39;),
&#39;featuresettings2&#39; => array(&#39;ModSettings.php&#39;, &#39;ModifyFeatureSettings2&#39;),
&#39;findmember&#39; => array(&#39;Subs-Auth.php&#39;, &#39;JSMembers&#39;),
&#39;help&#39; => array(&#39;Help.php&#39;, &#39;ShowHelp&#39;),
&#39;helpadmin&#39; => array(&#39;Help.php&#39;, &#39;ShowAdminHelp&#39;),
&#39;im&#39; => array(&#39;PersonalMessage.php&#39;, &#39;MessageMain&#39;),
&#39;jsoption&#39; => array(&#39;Themes.php&#39;, &#39;SetJavaScript&#39;),
&#39;jsmodify&#39; => array(&#39;Post.php&#39;, &#39;JavaScriptModify&#39;),
&#39;lock&#39; => array(&#39;LockTopic.php&#39;, &#39;LockTopic&#39;),
&#39;lockVoting&#39; => array(&#39;Poll.php&#39;, &#39;LockVoting&#39;),
&#39;login&#39; => array(&#39;LogInOut.php&#39;, &#39;Login&#39;),
&#39;login2&#39; => array(&#39;LogInOut.php&#39;, &#39;Login2&#39;),
&#39;logout&#39; => array(&#39;LogInOut.php&#39;, &#39;Logout&#39;),
&#39;maintain&#39; => array(&#39;Admin.php&#39;, &#39;Maintenance&#39;),
&#39;manageattachments&#39; => array(&#39;ManageAttachments.php&#39;, &#39;ManageAttachments&#39;),
&#39;manageboards&#39; => array(&#39;ManageBoards.php&#39;, &#39;ManageBoards&#39;),
&#39;managecalendar&#39; => array(&#39;ManageCalendar.php&#39;, &#39;ManageCalendar&#39;),
&#39;managesearch&#39; => array(&#39;ManageSearch.php&#39;, &#39;ManageSearch&#39;),
&#39;markasread&#39; => array(&#39;Subs-Boards.php&#39;, &#39;MarkRead&#39;),
&#39;membergroups&#39; => array(&#39;ManageMembergroups.php&#39;, &#39;ModifyMembergroups&#39;),
&#39;mergetopics&#39; => array(&#39;SplitTopics.php&#39;, &#39;MergeTopics&#39;),
&#39;mlist&#39; => array(&#39;Memberlist.php&#39;, &#39;Memberlist&#39;),
&#39;modifycat&#39; => array(&#39;ManageBoards.php&#39;, &#39;ModifyCat&#39;),
&#39;modifykarma&#39; => array(&#39;Karma.php&#39;, &#39;ModifyKarma&#39;),
&#39;modlog&#39; => array(&#39;Modlog.php&#39;, &#39;ViewModlog&#39;),
&#39;movetopic&#39; => array(&#39;MoveTopic.php&#39;, &#39;MoveTopic&#39;),
&#39;movetopic2&#39; => array(&#39;MoveTopic.php&#39;, &#39;MoveTopic2&#39;),
&#39;news&#39; => array(&#39;ManageNews.php&#39;, &#39;ManageNews&#39;),
&#39;notify&#39; => array(&#39;Notify.php&#39;, &#39;Notify&#39;),
&#39;notifyboard&#39; => array(&#39;Notify.php&#39;, &#39;BoardNotify&#39;),
&#39;optimizetables&#39; => array(&#39;Admin.php&#39;, &#39;OptimizeTables&#39;),
&#39;packageget&#39; => array(&#39;PackageGet.php&#39;, &#39;PackageGet&#39;),
&#39;packages&#39; => array(&#39;Packages.php&#39;, &#39;Packages&#39;),
&#39;permissions&#39; => array(&#39;ManagePermissions.php&#39;, &#39;ModifyPermissions&#39;),
&#39;pgdownload&#39; => array(&#39;PackageGet.php&#39;, &#39;PackageGet&#39;),
&#39;pm&#39; => array(&#39;PersonalMessage.php&#39;, &#39;MessageMain&#39;),
&#39;post&#39; => array(&#39;Post.php&#39;, &#39;Post&#39;),
&#39;post2&#39; => array(&#39;Post.php&#39;, &#39;Post2&#39;),
&#39;postsettings&#39; => array(&#39;ManagePosts.php&#39;, &#39;ManagePostSettings&#39;),
&#39;printpage&#39; => array(&#39;Printpage.php&#39;, &#39;PrintTopic&#39;),
&#39;profile&#39; => array(&#39;Profile.php&#39;, &#39;ModifyProfile&#39;),
&#39;profile2&#39; => array(&#39;Profile.php&#39;, &#39;ModifyProfile2&#39;),
&#39;quotefast&#39; => array(&#39;Post.php&#39;, &#39;QuoteFast&#39;),
&#39;quickmod&#39; => array(&#39;Subs-Boards.php&#39;, &#39;QuickModeration&#39;),
&#39;quickmod2&#39; => array(&#39;Subs-Boards.php&#39;, &#39;QuickModeration2&#39;),
&#39;recent&#39; => array(&#39;Recent.php&#39;, &#39;RecentPosts&#39;),
&#39;regcenter&#39; => array(&#39;ManageRegistration.php&#39;, &#39;RegCenter&#39;),
&#39;register&#39; => array(&#39;Register.php&#39;, &#39;Register&#39;),
&#39;register2&#39; => array(&#39;Register.php&#39;, &#39;Register2&#39;),
&#39;reminder&#39; => array(&#39;Reminder.php&#39;, &#39;RemindMe&#39;),
&#39;removetopic2&#39; => array(&#39;RemoveTopic.php&#39;, &#39;RemoveTopic2&#39;),
&#39;removeoldtopics2&#39; => array(&#39;RemoveTopic.php&#39;, &#39;RemoveOldTopics2&#39;),
&#39;removepoll&#39; => array(&#39;Poll.php&#39;, &#39;RemovePoll&#39;),
&#39;repairboards&#39; => array(&#39;RepairBoards.php&#39;, &#39;RepairBoards&#39;),
&#39;reporttm&#39; => array(&#39;SendTopic.php&#39;, &#39;ReportToModerator&#39;),
&#39;reports&#39; => array(&#39;Reports.php&#39;, &#39;ReportsMain&#39;),
&#39;requestmembers&#39; => array(&#39;Subs-Auth.php&#39;, &#39;RequestMembers&#39;),
&#39;search&#39; => array(&#39;Search.php&#39;, &#39;PlushSearch1&#39;),
&#39;search2&#39; => array(&#39;Search.php&#39;, &#39;PlushSearch2&#39;),
&#39;sendtopic&#39; => array(&#39;SendTopic.php&#39;, &#39;SendTopic&#39;),
&#39;serversettings&#39; => array(&#39;ManageServer.php&#39;, &#39;ModifySettings&#39;),
&#39;serversettings2&#39; => array(&#39;ManageServer.php&#39;, &#39;ModifySettings2&#39;),
&#39;smileys&#39; => array(&#39;ManageSmileys.php&#39;, &#39;ManageSmileys&#39;),
&#39;smstats&#39; => array(&#39;Stats.php&#39;, &#39;SMStats&#39;),
&#39;spellcheck&#39; => array(&#39;Subs-Post.php&#39;, &#39;SpellCheck&#39;),
&#39;splittopics&#39; => array(&#39;SplitTopics.php&#39;, &#39;SplitTopics&#39;),
&#39;stats&#39; => array(&#39;Stats.php&#39;, &#39;DisplayStats&#39;),
&#39;sticky&#39; => array(&#39;LockTopic.php&#39;, &#39;Sticky&#39;),
&#39;theme&#39; => array(&#39;Themes.php&#39;, &#39;ThemesMain&#39;),
&#39;trackip&#39; => array(&#39;Profile.php&#39;, &#39;trackIP&#39;),
&#39;about:mozilla&#39; => array(&#39;Karma.php&#39;, &#39;BookOfUnknown&#39;),
&#39;about:unknown&#39; => array(&#39;Karma.php&#39;, &#39;BookOfUnknown&#39;),
&#39;unread&#39; => array(&#39;Recent.php&#39;, &#39;UnreadTopics&#39;),
&#39;unreadreplies&#39; => array(&#39;Recent.php&#39;, &#39;UnreadTopics&#39;),
&#39;viewErrorLog&#39; => array(&#39;ManageErrors.php&#39;, &#39;ViewErrorLog&#39;),
&#39;viewmembers&#39; => array(&#39;ManageMembers.php&#39;, &#39;ViewMembers&#39;),
&#39;viewprofile&#39; => array(&#39;Profile.php&#39;, &#39;ModifyProfile&#39;),
&#39;verificationcode&#39; => array(&#39;Register.php&#39;, &#39;VerificationCode&#39;),
&#39;vote&#39; => array(&#39;Poll.php&#39;, &#39;Vote&#39;),
&#39;viewquery&#39; => array(&#39;ViewQuery.php&#39;, &#39;ViewQuery&#39;),
&#39;who&#39; => array(&#39;Who.php&#39;, &#39;Who&#39;),
&#39;.xml&#39; => array(&#39;News.php&#39;, &#39;ShowXmlFeed&#39;),
);

// Get the function and file to include - if it&#39;s not there, do the board index.
if (!isset($_REQUEST[&#39;action&#39;]) || !isset($actionArray[$_REQUEST[&#39;action&#39;]]))
{
// Catch the action with the theme?
if (!empty($settings[&#39;catch_action&#39;]))
{
require_once($sourcedir . &#39;/Themes.php&#39;);
return &#39;WrapAction&#39;;
}

// Fall through to the board index then...
require_once($sourcedir . &#39;/BoardIndex.php&#39;);
return &#39;BoardIndex&#39;;
}

// Otherwise, it was set - so let&#39;s go to that action.
require_once($sourcedir . &#39;/&#39; . $actionArray[$_REQUEST[&#39;action&#39;]][0]);
return $actionArray[$_REQUEST[&#39;action&#39;]][1];
}

?>


มันเกิดปัญหาอะไรขึ้น และต้องแก้ไขยังไง รบกวนผู้รู้ช่วยแนะนำผมหน่อยครับ  ขอบพระคุณล่วงหน้าครับ
บันทึกการเข้า

swakger
Newbie
*

พลังน้ำใจ: 0
ออฟไลน์ ออฟไลน์

กระทู้: 77



ดูรายละเอียด
« ตอบ #1 เมื่อ: 10 ธันวาคม 2019, 20:25:17 »

ข้อมูล Hosting ใหม่ เพิ่มเติมครับ

Database server
โค๊ด:
Server: Localhost via UNIX socket
Server type: MariaDB
Server connection: SSL is not being used Documentation
Server version: 10.2.26-MariaDB - MariaDB Server
Protocol version: 10
User: hamsiami@localhost
Server charset: cp1252 West European (latin1)

Web server
โค๊ด:
Apache/2
Database client version: libmysql - mysqlnd 5.0.12-dev - 20150407 - $Id: 3591daad22de08524295e1bd073aceeff11e6579 $
PHP extension: mysqliDocumentation curlDocumentation mbstringDocumentation
PHP version: 7.2.24

phpMyAdmin
โค๊ด:
Version information: 4.9.0.1, latest stable version: 4.9.2
Documentation
Official Homepage
Contribute
Get support
List of changes
License
บันทึกการเข้า

romance69
หัวหน้าแก๊งเสียว
*

พลังน้ำใจ: 169
ออฟไลน์ ออฟไลน์

กระทู้: 2,158



ดูรายละเอียด เว็บไซต์
« ตอบ #2 เมื่อ: 10 ธันวาคม 2019, 21:37:09 »

ปัญหาเกิดจาก PHP 7 ได้ยกเลิกฟังชั่น set_magic_quotes_runtime ออกไปแล้วครับ
หรือไปใช้ smf version 2.0.15 ครับ

อันนี้ข้อมูลอ้างอิง php function set_magic_quotes_runtime นะครับ
https://www.php.net/manual/en/...n.set-magic-quotes-runtime.php

Warning: This function was DEPRECATED in PHP 5.3.0, and REMOVED as of PHP 7.0.0.
« แก้ไขครั้งสุดท้าย: 10 ธันวาคม 2019, 21:40:19 โดย romance69 » บันทึกการเข้า
CONY
คนรักเสียว
*

พลังน้ำใจ: 17
ออฟไลน์ ออฟไลน์

กระทู้: 171



ดูรายละเอียด
« ตอบ #3 เมื่อ: 11 ธันวาคม 2019, 00:17:49 »

ฟังก์ชันเลิกใช้งานแล้ว แนะนำให้อัพเกรดเป็น SMF 2.0.15 ครับ
บันทึกการเข้า
BrainFreeze
เจ้าพ่อบอร์ดเสียว
*

พลังน้ำใจ: 498
ออฟไลน์ ออฟไลน์

กระทู้: 3,887



ดูรายละเอียด เว็บไซต์
« ตอบ #4 เมื่อ: 11 ธันวาคม 2019, 05:33:14 »

ตามที่ท่านอื่นแจ้งนะครับ ทางที่ดีควร upgrade smt version เป็น 2.x
แต่ระหว่างนี้ก็เปลี่ยน php version ใน host เป็น 5.6 ก่อนครับ
บันทึกการเข้า

# จัดไป Promo Code ลด 11% : THAISEOBOARD
# hostatom.com |โฮสอะตอม - เว็บโฮสติ้งที่ Webmaster มืออาชีพไว้วางใจ
# Web Hosting | Cloud VPS | Reseller Hosting | Domain Name
# บริการ 24x7 | รับประกันความพอใจยินดีคืนเงิน | Uptime 99.9% | โทร : 0-2107-3466
Twenty-One
Verified Seller
เจ้าพ่อบอร์ดเสียว
*

พลังน้ำใจ: 335
ออฟไลน์ ออฟไลน์

กระทู้: 11,751



ดูรายละเอียด เว็บไซต์
« ตอบ #5 เมื่อ: 11 ธันวาคม 2019, 10:21:27 »

เป็นที่ version php ครับ ผมเจอบ่อย
บันทึกการเข้า

# บริการโฮสติ้งขั้นเทพ 24/7 เปิดให้บริการ web hosting มาแล้ว 14 ปี ลูกค้ากว่า 40,000 ราย ให้ความไว้วางใจ
# hosting คุณภาพสูง ดูแลระบบโดย system engineer ประสบการณ์สูง
# host เร็ง แรง ไม่มีล่ม ติดตั้ง cms ฟรี
# vps ราคาถูก 50GB 999 บาท

NaiTan
Verified Seller
เจ้าพ่อบอร์ดเสียว
*

พลังน้ำใจ: 378
ออฟไลน์ ออฟไลน์

กระทู้: 5,258



ดูรายละเอียด เว็บไซต์
« ตอบ #6 เมื่อ: 11 ธันวาคม 2019, 15:30:06 »

เวอร์ชั้น PHP ที่ใช้ไม่มีฟังชั่น  set_magic_quotes_runtime ครับ 
บันทึกการเข้า

swakger
Newbie
*

พลังน้ำใจ: 0
ออฟไลน์ ออฟไลน์

กระทู้: 77



ดูรายละเอียด
« ตอบ #7 เมื่อ: 11 ธันวาคม 2019, 16:51:18 »

ขอบคุณทุกๆท่านมากๆครับ ตอนนี้ผมให้เจ้าของโอสเปลี่ยนเป็น php 5.6 แล้ว สามารถเข้าใช้งานได้ตามปกติ กำลังคิดหาวิธีอัพเดท smf ต่อไปครับ ขอบคุณมากๆครับ

ปัญหาเกิดจาก PHP 7 ได้ยกเลิกฟังชั่น set_magic_quotes_runtime ออกไปแล้วครับ
หรือไปใช้ smf version 2.0.15 ครับ

อันนี้ข้อมูลอ้างอิง php function set_magic_quotes_runtime นะครับ
https://www.php.net/manual/en/...n.set-magic-quotes-runtime.php

Warning: This function was DEPRECATED in PHP 5.3.0, and REMOVED as of PHP 7.0.0.

ฟังก์ชันเลิกใช้งานแล้ว แนะนำให้อัพเกรดเป็น SMF 2.0.15 ครับ

ตามที่ท่านอื่นแจ้งนะครับ ทางที่ดีควร upgrade smt version เป็น 2.x
แต่ระหว่างนี้ก็เปลี่ยน php version ใน host เป็น 5.6 ก่อนครับ

เป็นที่ version php ครับ ผมเจอบ่อย

เวอร์ชั้น PHP ที่ใช้ไม่มีฟังชั่น  set_magic_quotes_runtime ครับ 
บันทึกการเข้า

หน้า: [1]   ขึ้นบน
พิมพ์