HTTP error 500 on Hosting

I get an HTTP error 500. This happened after I uploaded and activated a few new plugins that were required for my theme.

  • Ash
    • Code Norris

    Hello Jeff

    We need the debug information. Would you please enable debug mode and check if there is any error? To enable debug mode please go to wp-config.php and change

    define( 'WP_DEBUG', false );

    to

    define( 'WP_DEBUG', true );
    define( 'WP_DEBUG_DISPLAY', false );
    define( 'WP_DEBUG_LOG', true );

    Now refresh the page. That will create a file called debug.log inside wp-content folder. Open that file, check the very bottom and you will see the latest errors. Please send me those.

    Have a nice day!

    Cheers,

    Ash

  • Jeff
    • WPMU DEV Initiate

    Thank you for the quick response! Here are the errors:

    thrown in /var/web/site/public_html/wp-content/plugins/oi-shortcodes/vc_extend/vc.php on line 10
    [03-Jan-2019 05:50:56 UTC] PHP Fatal error: Uncaught Error: Call to undefined function vc_add_param() in /var/web/site/public_html/wp-content/plugins/oi-shortcodes/vc_extend/vc.php:10
    Stack trace:
    #0 /var/web/site/public_html/wp-content/plugins/oi-shortcodes/oi-shortcodes.php(29): include()
    #1 /var/web/site/public_html/wp-settings.php(285): include_once('/var/web/site/p...')
    #2 /var/web/site/public_html/wp-config.php(108): require_once('/var/web/site/p...')
    #3 /var/web/site/public_html/wp-load.php(37): require_once('/var/web/site/p...')
    #4 /var/web/site/public_html/wp-blog-header.php(13): require_once('/var/web/site/p...')
    #5 /var/web/site/public_html/index.php(17): require('/var/web/site/p...')
    #6 {main}
    thrown in /var/web/site/public_html/wp-content/plugins/oi-shortcodes/vc_extend/vc.php on line 10

  • Jeff
    • WPMU DEV Initiate

    I fixed it, thanks for the help.

    I went into the wp-contents folder and

    mv plugins plugins.no

    to deactivate the responsible plugin.

    Then I signed into the WordPress Admin and

    mv plugins.no plugins

    to show all the installed (but deactivated) plugins and went through them one by one. I believe the OI-shortcodes was the one that was the culprit, I re-up’ed it and it seems to be fine now.

    Thanks for the help!