{"id":115,"date":"2025-05-02T12:09:01","date_gmt":"2025-05-02T03:09:01","guid":{"rendered":"https:\/\/blog.interstellar.co.jp\/en\/?p=115"},"modified":"2025-05-02T12:09:02","modified_gmt":"2025-05-02T03:09:02","slug":"move-wordpress-error","status":"publish","type":"post","link":"https:\/\/blog.interstellar.co.jp\/en\/2025\/05\/02\/move-wordpress-error\/","title":{"rendered":""},"content":{"rendered":"\n<p>I got stuck with various errors when I moved my WordPress site for the first time in a while.<\/p>\n\n\n\n<p>The reason for this was that I didn&#8217;t keep proper records of my work.<\/p>\n\n\n\n<p>The cause was that all the PHP modules were missing.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">php-mysqli<\/h2>\n\n\n\n<p>When accessing the site, an error message appears stating that the database cannot be connected.<\/p>\n\n\n\n<p>Ah, I see&#8230; I don&#8217;t have php-mysql installed&#8230;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"\">sudo apt install php-mysql<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">php-mbstring<\/h2>\n\n\n\n<p>When I accessed the site, only \u201cA serious error has occurred\u201d was displayed. I thought, \u201cHey, tell me what the problem is,\u201d but when I looked at the nginx error log, the following was output.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"\">2025\/05\/02 01:34:01 [error] 42975#42975: *260 FastCGI sent in stderr: \"PHP message: PHP Fatal error:  Uncaught Error: Call to undefined function mb_strtolower() in \/var\/www\/example.com\/wp-content\/plugins\/vk-all-in-one-expansion-unit\/inc\/display-ie-alert.php:12\nStack trace:\n#0 \/var\/www\/example.com\/wp-content\/plugins\/vk-all-in-one-expansion-unit\/inc\/display-ie-alert.php(51): veu_is_ie()\n#1 \/var\/www\/example.com\/wp-includes\/class-wp-hook.php(324): veu_insert_alert()\n#2 \/var\/www\/example.com\/wp-includes\/class-wp-hook.php(348): WP_Hook->apply_filters()\n#3 \/var\/www\/example.com\/wp-includes\/plugin.php(517): WP_Hook->do_action()\n#4 \/var\/www\/example.com\/wp-includes\/general-template.php(3224): do_action()\n#5 \/var\/www\/example.com\/wp-content\/themes\/liquid-magazine\/header.php(190): wp_body_open()\n#6 \/var\/www\/example.com\/wp-includes\/template.php(810): require_once('...')\n#7 \/var\/www\/example.com\/wp-includes\/template.php(745): load_template()\n#8 \/var\/www\/example.com\/w\" while reading response header from upstream, client: 111.217.190.239, server: example.com, request: \"GET \/ HTTP\/1.1\", upstream: \"fastcgi:\/\/unix:\/var\/run\/php\/php-fpm.sock:\", host: \"example.com\", referrer: \"&lt;https:\/\/example.com\/wp-admin\/network\/about.php>\"<\/code><\/pre>\n\n\n\n<p>The VK All in One Expansion Unit is calling an undefined function mb_strtolower(), causing an error.<\/p>\n\n\n\n<p>This function belongs to the php-mbstring module.<\/p>\n\n\n\n<p>Installing php-mbstring will resolve this issue.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"\">sudo apt install php-mbstring<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">php-xml<\/h2>\n\n\n\n<p>When I accessed the site, the design was broken.<\/p>\n\n\n\n<p>I checked the nginx error log and found the following.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"\">2025\/05\/02 01:45:56 [error] 44674#44674: *39 FastCGI sent in stderr: \"PHP message: PHP Fatal error:  Uncaught Error: Class \"DOMDocument\" not found in \/var\/www\/example.com\/wp-content\/plugins\/wordpress-popular-posts\/src\/Output.php:176\nStack trace:\n#0 \/var\/www\/example.com\/wp-content\/plugins\/wordpress-popular-posts\/src\/Shortcode\/Posts.php(248): WordPressPopularPosts\\\\Output->get_output()\n#1 \/var\/www\/example.com\/wp-includes\/shortcodes.php(434): WordPressPopularPosts\\\\Shortcode\\\\Posts->handle()\n#2 [internal function]: do_shortcode_tag()\n#3 \/var\/www\/example.com\/wp-includes\/shortcodes.php(273): preg_replace_callback()\n#4 \/var\/www\/example.com\/wp-content\/plugins\/wordpress-popular-posts\/src\/template-tags.php(220): do_shortcode()\n#5 \/var\/www\/example.com\/wp-content\/themes\/liquid-magazine\/popularposts.php(132): wpp_get_mostpopular()\n#6 \/var\/www\/example.com\/wp-content\/themes\/liquid-magazine\/index.php(229): liquid_popular_post()\n#7 \/var\/www\/example.com\/wp-includes\/template-loader.php(106): include('...')\n#8 \/var\/www\/example.com\/wp-blog-header.php(19): require_once('...')\n#9 \/var\/www\/m\" while reading response header from upstream, client: 35.199.90.14, server: example.com, request: \"GET \/ HTTP\/1.1\", upstream: \"fastcgi:\/\/unix:\/var\/run\/php\/php-fpm.sock:\", host: \"example.com\"<\/code><\/pre>\n\n\n\n<p>The WordPressPopularPosts plugin is trying to use the DOMDocument class, but it cannot be found, resulting in an error.<\/p>\n\n\n\n<p>This class belongs to the php-xml module.<\/p>\n\n\n\n<p>Installing php-xml will resolve the issue.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"\">sudo apt install php-xml<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">php-gd<\/h2>\n\n\n\n<p>When I accessed the site, the layout was broken and a message saying \u201cA serious error has occurred on this site\u201d appeared in the login status section.<\/p>\n\n\n\n<p>Looking at the nginx error log, I found the following error.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"\">2025\/05\/02 02:36:30 [error] 49059#49059: *2 FastCGI sent in stderr: \"PHP message: PHP Fatal error:  Uncaught Error: Call to undefined function imagecreatetruecolor() in \/var\/www\/example.com\/wp-content\/plugins\/siteguard\/really-simple-captcha\/siteguard-really-simple-captcha.php:181\nStack trace:\n#0 \/var\/www\/example.com\/wp-content\/plugins\/siteguard\/classes\/siteguard-captcha.php(186): SiteGuardReallySimpleCaptcha->generate_image()\n#1 \/var\/www\/example.com\/wp-content\/plugins\/siteguard\/classes\/siteguard-captcha.php(192): SiteGuard_CAPTCHA->put_captcha()\n#2 \/var\/www\/example.com\/wp-includes\/class-wp-hook.php(324): SiteGuard_CAPTCHA->handler_login_form()\n#3 \/var\/www\/example.com\/wp-includes\/class-wp-hook.php(348): WP_Hook->apply_filters()\n#4 \/var\/www\/example.com\/wp-includes\/plugin.php(517): WP_Hook->do_action()\n#5 \/var\/www\/example.com\/wp-content\/plugins\/wp-members\/includes\/class-wp-members-widget.php(280): do_action()\n#6 \/var\/www\/example.com\/wp-content\/plugins\/wp-members\/includes\/class-wp-members-widget.php(115): widget_wpmemwidget->do_sidebar()\n#7 \/var\/www\/tmc-obog.co\" while reading response header from upstream, client: 111.217.190.239, server: example.com, request: \"GET \/ HTTP\/1.1\", upstream: \"fastcgi:\/\/unix:\/var\/run\/php\/php-fpm.sock:\", host: \"example.com\"<\/code><\/pre>\n\n\n\n<p>SiteGuard is calling an undefined function imagecreatetruecolor() and causing an error.<\/p>\n\n\n\n<p>This function belongs to php-gd.<\/p>\n\n\n\n<p>Installing php-gd will resolve the issue.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"\">sudo apt install php-gd<\/code><\/pre>\n\n\n\n<p>After all, work records are important.<\/p>\n\n\n\n<p>That&#8217;s all for this time.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I got stuck with various errors when I moved my WordPress site for the first time in a while. The reason for this was that I didn&#8217;t keep proper records of my work. The cause was that all the PHP modules were missing. php-mysqli When accessing the site, an error message appears stating that the database cannot be connected. Ah, I see&#8230; I don&#8217;t have php-mysql installed&#8230; php-mbstring When I accessed the site, only \u201cA serious error has occurred\u201d was displayed. I thought, \u201cHey, tell me what the problem is,\u201d but when I looked at the nginx error log, the following was output. The VK All in One Expansion Unit&#8230;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"vkexunit_cta_each_option":"","footnotes":""},"categories":[18],"tags":[32,31],"class_list":["post-115","post","type-post","status-publish","format-standard","hentry","category-application","tag-php","tag-wordpress"],"_links":{"self":[{"href":"https:\/\/blog.interstellar.co.jp\/en\/wp-json\/wp\/v2\/posts\/115","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.interstellar.co.jp\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.interstellar.co.jp\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.interstellar.co.jp\/en\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.interstellar.co.jp\/en\/wp-json\/wp\/v2\/comments?post=115"}],"version-history":[{"count":2,"href":"https:\/\/blog.interstellar.co.jp\/en\/wp-json\/wp\/v2\/posts\/115\/revisions"}],"predecessor-version":[{"id":117,"href":"https:\/\/blog.interstellar.co.jp\/en\/wp-json\/wp\/v2\/posts\/115\/revisions\/117"}],"wp:attachment":[{"href":"https:\/\/blog.interstellar.co.jp\/en\/wp-json\/wp\/v2\/media?parent=115"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.interstellar.co.jp\/en\/wp-json\/wp\/v2\/categories?post=115"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.interstellar.co.jp\/en\/wp-json\/wp\/v2\/tags?post=115"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}