بعد از انتقال فایل shub.sql به سرور جدید...
سئوال: فرضا انتقال موفقیت آمیز باشد. این به معنی آن است که در سرور جدید با اکانت ادمین جدید snadmin نمیتوان لاگین کرد زیرا پایگاه داده قبلی جایگزین شده و در سرور قدیم اکانت مدیر someone بوده. آیا راهی برای تغییر اسم اکانت مدیر وجود دارد؟ از این بابت مهم است که در شبکه قبلی، مدیر یک شخص بوده الان میخواهیم مدیر یک اکانت باشد که توسط دو نفر مدیریت شود.
اما در واقعیت:
در سرور جدید با دستور زیر فایل shub.sql را به پایگاه داده motoshubdb2 منتقل میکنیم
mysql -u root -p motoshubdb2 < /home/snadmin/shub.sql
صفحه را بازنشانی میکنیم و میبینیم که نه با اکانت snadmin وارد میشود و نه با اکانت someone.

خوشبختانه این مشکل راه حل دارد و آن به خاطر تغییر روش امن سازی پسوردها است. پارامتر OW_PASSWORD* باید برای هر دو سایت یکی باشد. در اینجا خطی که در سرور قدیم هست را به سرور جدید منتقل میکنیم و بعد از آن میتوانیم با اکانت ادمین قبلی یعنی someone لاگین کنیم.
اینجا سئوالی که پیشتر مطرح شد، مهم میشود. یعنی همان ادمین قبلی که شخص بوده به سرور جدید منتقل شده است.
اما بعد از لاگین هیچ صفحه ای مشاهده نمی شود و فقط warning و error وجود دارد. این احتمال هست که سرور قدیم نسخه قدیمیتر پوسته یا موتور را داشته و سرور جدید هم موتور جدیدی دارد و هم پوسته جدیدتر. با این حال این که هیچ چیز نشان داده نشود، به نظر کمی عجیب است.
OW Debug - Warning
Message: Can't generate URI! Route `questions-index` not found!
File: /var/www/html/test/ow_core/router.php
Line: 236
OW Debug - Warning
Message: Can't generate URI! Route `iishashtag.page` not found!
File: /var/www/html/test/ow_core/router.php
Line: 236
OW Debug - Warning
Message: Can't generate URI! Route `iisterms.index` not found!
File: /var/www/html/test/ow_core/router.php
Line: 236
OW Debug - Warning
Message: include(/var/www/html/test/ow_plugins/birthdays/components/friend_birthdays_widget.php): failed to open stream: No such file or directory
File: /var/www/html/test/ow_core/autoload.php
Line: 110
OW Debug - Warning
Message: include(): Failed opening '/var/www/html/test/ow_plugins/birthdays/components/friend_birthdays_widget.php' for inclusion (include_path='/var/www/html/test/ow_libraries/vendor/phpunit/phpunit-selenium:.:/opt/remi/php72/root/usr/share/pear:/opt/remi/php72/root/usr/share/php:/usr/share/pear:/usr/share/php')
File: /var/www/html/test/ow_core/autoload.php
Line: 110
OW Debug - Warning
Message: call_user_func() expects parameter 1 to be a valid callback, class 'BIRTHDAYS_CMP_FriendBirthdaysWidget' not found
File: /var/www/html/test/ow_system_plugins/base/components/drag_and_drop_panel.php
Line: 67
OW Debug - Warning
Message: include(/var/www/html/test/ow_plugins/iissuggestfriend/components/user_iis_suggest_friend_widget.php): failed to open stream: No such file or directory
File: /var/www/html/test/ow_core/autoload.php
Line: 110
OW Debug - Warning
Message: include(): Failed opening '/var/www/html/test/ow_plugins/iissuggestfriend/components/user_iis_suggest_friend_widget.php' for inclusion (include_path='/var/www/html/test/ow_libraries/vendor/phpunit/phpunit-selenium:.:/opt/remi/php72/root/usr/share/pear:/opt/remi/php72/root/usr/share/php:/usr/share/pear:/usr/share/php')
File: /var/www/html/test/ow_core/autoload.php
Line: 110
OW Debug - Warning
Message: call_user_func() expects parameter 1 to be a valid callback, class 'IISSUGGESTFRIEND_CMP_UserIisSuggestFriendWidget' not found
File: /var/www/html/test/ow_system_plugins/base/components/drag_and_drop_panel.php
Line: 67
OW Debug - Error
Message: Can't Render url using smarty!. ReflectionException: Class IISSUGGESTFRIEND_CMP_UserIisSuggestFriendWidget does not exist in /var/www/html/test/ow_system_plugins/base/components/drag_and_drop_item.php:208 Stack trace: #0 /var/www/html/test/ow_system_plugins/base/components/drag_and_drop_item.php(208): ReflectionClass->__construct('IISSUGGESTFRIEN...') #1 /var/www/html/test/ow_system_plugins/base/components/drag_and_drop_item.php(92): BASE_CMP_DragAndDropItem->checkComponent('IISSUGGESTFRIEN...') #2 /var/www/html/test/ow_system_plugins/base/components/drag_and_drop_frontend_panel.php(113): BASE_CMP_DragAndDropItem->setContentComponentClass('IISSUGGESTFRIEN...') #3 /var/www/html/test/ow_smarty/template_c/cbe755aae9055df41a3fcd7d3879f82c786c360b_0.file.drag_and_drop_entity_panel.html.php(145): BASE_CMP_DragAndDropFrontendPanel->tplComponent(Array, Object(Smarty_Internal_Template)) #4 /var/www/html/test/ow_libraries/vendor/smarty/smarty/libs/sysplugins/smarty_template_resource_base.php(128): content_5b9510161b9c85_57400660(Object(Smarty_Internal_Template)) #5 /var/www/html/test/ow_libraries/vendor/smarty/smarty/libs/sysplugins/smarty_template_compiled.php(172): Smarty_Template_Resource_Base->getRenderedTemplateCode(Object(Smarty_Internal_Template)) #6 /var/www/html/test/ow_libraries/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php(206): Smarty_Template_Compiled->render(Object(Smarty_Internal_Template)) #7 /var/www/html/test/ow_libraries/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php(216): Smarty_Internal_Template->render(false, 0) #8 /var/www/html/test/ow_libraries/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php(107): Smarty_Internal_TemplateBase->_execute(Object(Smarty_Internal_Template), NULL, NULL, NULL, 0) #9 /var/www/html/test/ow_core/view_renderer.php(82): Smarty_Internal_TemplateBase->fetch('/var/www/html/t...') #10 /var/www/html/test/ow_core/view.php(187): OW_ViewRenderer->renderTemplate('/var/www/html/t...') #11 /var/www/html/test/ow_core/component.php(80): OW_View->render() #12 /var/www/html/test/ow_system_plugins/base/controllers/component_panel.php(156): OW_Component->render() #13 /var/www/html/test/ow_system_plugins/base/controllers/component_panel.php(182): BASE_CTRL_ComponentPanel->action('dashboard', 1, false, Array, 'drag_and_drop_e...') #14 [internal function]: BASE_CTRL_ComponentPanel->dashboard(Array) #15 /var/www/html/test/ow_core/request_handler.php(250): ReflectionMethod->invokeArgs(Object(BASE_CTRL_ComponentPanel), Array) #16 /var/www/html/test/ow_core/request_handler.php(226): OW_RequestHandler->processControllerAction(Object(ReflectionMethod), Object(BASE_CTRL_ComponentPanel)) #17 /var/www/html/test/ow_core/application.php(346): OW_RequestHandler->dispatch() #18 /var/www/html/test/index.php(79): OW_Application->handleRequest() #19 {main}
File: /var/www/html/test/ow_core/view_renderer.php
Line: 84
تا به اینجا پیشنهاد فنی چیست؟