• Hi,
    I’ve struggled for the last few days to migrate my blog from bluehost to a CentOS 7 VM instance on Google Cloud Compute Engine, but I’ve encountered a great problem. The wp-admin dashboard is working perfectly, yet the homepage or any other post page isn’t working but displaying a 500 server error: ‘Failed to load resource: the server responded with a status of 500 (Internal Server Error)’. I’ve used a few advices from the internet and I came to the conclusion that it is a theme problem. Can you help me with this and suggest any fix, please!

    You may check my site adding this string to your hosts file:
    130.211.63.172 moldovacrestina.md

    Or, if you want to see the working version of the site, check moldovacrestina.md before changing the hosts file. Thank you!

Viewing 15 replies - 1 through 15 (of 29 total)
  • Moderator James Huff

    (@macmanx)

    I’ve used a few advices from the internet and I came to the conclusion that it is a theme problem.

    Does your site work properly under the Twenty Sixteen or Twenty Fifteen themes? If so, what is the name of the theme with the problem, and where did you get it from?

    Thread Starter filatdav

    (@filatdav)

    Yes, the site is working perfectly with the default theme. The problem is that the theme is customized for the site contents, so we can’t use any other theme. You can download the theme [Link redacted], but I would appreciate if you won’t share it nowhere. Thank you!

    Moderator James Huff

    (@macmanx)

    This is a public forum, so I have removed the link.

    Is it based on any theme in particular, or did you hire someone to make it?

    Thread Starter filatdav

    (@filatdav)

    I hired someone to make it. I know that it is using Visual Composer, but I have no other information about the theme

    Moderator James Huff

    (@macmanx)

    Ah, does the front page work (or, at least not return an error 500) if you deactivate the Visual Composer plugin?

    Are you still in contact with the person who built the theme for you?

    Thread Starter filatdav

    (@filatdav)

    I’ve tried to deactivate all the plugins, yet the page is not working.
    No, I’m not in touch anymore with that person.

    Moderator James Huff

    (@macmanx)

    Ok, it’s still a 500 with all plugins deactivated?

    We may be able to help, but we’ll need a more detailed error message. Internal server errors are usually described in more detail in the server error log. If you have access to your server error log, generate the error again (load the page and see the 500), note the date and time, then immediately check your server error log for any errors that occurred during that time period. If you don’t have access to your server error log, ask your hosting provider to look for you.

    Thread Starter filatdav

    (@filatdav)

    Here are the apache error_log contents:
    [Sun Jun 19 11:12:06.120178 2016] [mpm_prefork:notice] [pid 1091] AH00170: caught SIGWINCH, shutting down gracefully
    [Sun Jun 19 11:12:07.234501 2016] [core:notice] [pid 3638] SELinux policy enabled; httpd running as context system_u$
    [Sun Jun 19 11:12:07.235430 2016] [suexec:notice] [pid 3638] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/s$
    [Sun Jun 19 11:12:07.264483 2016] [auth_digest:notice] [pid 3638] AH01757: generating secret for digest authenticati$
    [Sun Jun 19 11:12:07.265371 2016] [lbmethod_heartbeat:notice] [pid 3638] AH02282: No slotmem from mod_heartmonitor
    [Sun Jun 19 11:12:07.312951 2016] [mpm_prefork:notice] [pid 3638] AH00163: Apache/2.4.6 (CentOS) PHP/5.4.16 configur$
    [Sun Jun 19 11:12:07.313002 2016] [core:notice] [pid 3638] AH00094: Command line: ‘/usr/sbin/httpd -D FOREGROUND’

    Thread Starter filatdav

    (@filatdav)

    And the debug.log
    [19-Jun-2016 11:13:27 UTC] PHP Notice: Undefined index: name in /var/www/html/wp-includes/class-wp-roles.php on lin$
    [19-Jun-2016 11:13:27 UTC] PHP Notice: Undefined index: name in /var/www/html/wp-includes/class-wp-roles.php on lin$
    [19-Jun-2016 11:13:27 UTC] PHP Notice: Metoda constructor apelat? pentru WP_Widget ?n tp_disqusrecentcomments este $
    [19-Jun-2016 11:13:28 UTC] PHP Notice: Undefined offset: 2 in /var/www/html/wp-admin/includes/plugin.php on line 15$
    [19-Jun-2016 11:13:28 UTC] PHP Notice: Undefined offset: 2 in /var/www/html/wp-admin/includes/plugin.php on line 15$
    [19-Jun-2016 11:13:28 UTC] PHP Notice: Undefined offset: 2 in /var/www/html/wp-admin/includes/plugin.php on line 15$
    [19-Jun-2016 11:13:28 UTC] PHP Notice: Undefined offset: 2 in /var/www/html/wp-admin/includes/plugin.php on line 15$
    [19-Jun-2016 11:13:28 UTC] PHP Notice: Undefined offset: 2 in /var/www/html/wp-admin/includes/plugin.php on line 15$
    [19-Jun-2016 11:13:28 UTC] PHP Notice: Undefined offset: 2 in /var/www/html/wp-admin/includes/plugin.php on line 15$
    [19-Jun-2016 11:13:28 UTC] PHP Notice: Undefined offset: 2 in /var/www/html/wp-admin/includes/plugin.php on line 15$
    [19-Jun-2016 11:13:28 UTC] PHP Notice: Undefined offset: 2 in /var/www/html/wp-admin/includes/plugin.php on line 15$
    [19-Jun-2016 11:13:28 UTC] PHP Notice: Undefined offset: 2 in /var/www/html/wp-admin/includes/plugin.php on line 15$
    [19-Jun-2016 11:13:28 UTC] PHP Notice: Undefined offset: 2 in /var/www/html/wp-admin/includes/plugin.php on line 15$
    [19-Jun-2016 11:13:28 UTC] PHP Notice: Undefined offset: 2 in /var/www/html/wp-admin/includes/plugin.php on line 15$
    [19-Jun-2016 11:13:28 UTC] PHP Notice: Undefined offset: 2 in /var/www/html/wp-admin/includes/plugin.php on line 15$
    [19-Jun-2016 11:13:28 UTC] PHP Notice: Undefined offset: 2 in /var/www/html/wp-admin/includes/plugin.php on line 15$
    [19-Jun-2016 11:13:28 UTC] PHP Notice: Undefined offset: 2 in /var/www/html/wp-admin/includes/plugin.php on line 15$
    [19-Jun-2016 11:13:28 UTC] PHP Notice: Undefined offset: 2 in /var/www/html/wp-admin/includes/plugin.php on line 15$
    [19-Jun-2016 11:13:28 UTC] PHP Notice: Undefined offset: 2 in /var/www/html/wp-admin/includes/plugin.php on line 15$
    [19-Jun-2016 11:13:28 UTC] PHP Notice: Undefined offset: 2 in /var/www/html/wp-admin/includes/plugin.php on line 15$
    [19-Jun-2016 11:13:28 UTC] PHP Notice: Undefined offset: 2 in /var/www/html/wp-admin/includes/plugin.php on line 15$

    Moderator James Huff

    (@macmanx)

    Hm, ok, so there’s nothing terribly clear in there unfortunately.

    Do you know what version of PHP your last server was running, and the version on your current server?

    Thread Starter filatdav

    (@filatdav)

    I’ve found another apache error log for today:

    [Sat Jun 18 23:43:30.614128 2016] [mpm_prefork:notice] [pid 7343] AH00163: Apache/2.4.6 (CentOS) PHP/5.4.16 configu$
    [Sat Jun 18 23:43:30.614161 2016] [core:notice] [pid 7343] AH00094: Command line: ‘/usr/sbin/httpd -D FOREGROUND’
    [Sat Jun 18 23:51:26.664962 2016] [:error] [pid 7348] [client 89.28.72.78:50008] PHP Parse error: syntax error, un$
    [Sat Jun 18 23:51:36.933362 2016] [:error] [pid 7354] [client 89.28.72.78:50016] PHP Warning: call_user_func_array$
    [Sat Jun 18 23:51:37.008158 2016] [:error] [pid 7345] [client 89.28.72.78:50017] PHP Warning: call_user_func_array$
    [Sun Jun 19 00:05:04.903925 2016] [:error] [pid 7348] [client 89.28.72.78:50455] PHP Fatal error: Call to undefine$
    [Sun Jun 19 00:05:07.106137 2016] [:error] [pid 7349] [client 89.28.72.78:50453] PHP Fatal error: Call to undefine$
    [Sun Jun 19 00:05:46.369268 2016] [:error] [pid 7348] [client 89.28.72.78:50489] PHP Warning: call_user_func_array$
    [Sun Jun 19 00:08:29.960259 2016] [:error] [pid 7354] [client 89.28.72.78:50568] PHP Warning: copy(/var/www/html/w$
    [Sun Jun 19 00:09:31.291739 2016] [:error] [pid 7354] [client 89.28.72.78:50606] PHP Parse error: syntax error, un$

    Thread Starter filatdav

    (@filatdav)

    Last server: 5.6.16
    This server:5.4.16

    Moderator James Huff

    (@macmanx)

    We need the error entry from the specific moment that the 500 is visible on the screen. Anything else is inconsequential, or at the very least unrelated.

    Moderator James Huff

    (@macmanx)

    Ah! I bet the theme might have had something that requires PHP 5.5 or 5.6.

    Can you upgrade PHP on the current server to at least 5.6.16? (The 5.6 branch is currently up to 5.6.22, and 7.0.7 is the latest overall. The 5.4 branch was discontinued in September of 2015.)

    Thread Starter filatdav

    (@filatdav)

    I’ve updated it to php 5.6, but it didn’t fix the problem

Viewing 15 replies - 1 through 15 (of 29 total)
  • The topic ‘500 server error after migrating to CentOS 7 –only homepage’ is closed to new replies.