• Hi all,

    When moving this plugin from a windows wamp development setup to a full production linux server there was an issue with the visual editor not loading.

    FIX: I resolved this issue by replacing the wp-load.php loading code at the top of these 2 files.

    • \plugins\smpl-shortcodes\includes\admin\generator\editor_plugin_mce_v3.php
    • \plugins\smpl-shortcodes\includes\admin\generator\editor_plugin_mce_v4.php

    REPLACE

    // Setup path to WordPres
    $absolute_path = __FILE__;
    $path_to_wp = explode( 'wp-content', $absolute_path );
    $wp_url = $path_to_wp[0];
    // Access WordPress
    require_once( $wp_url.'wp-load.php' );

    WITH THIS CODE

    // Setup path to WordPress and Access WordPress
    $parse_uri = explode( 'wp-content', $_SERVER['SCRIPT_FILENAME'] );
    require_once( $parse_uri[0] . 'wp-load.php' );

    https://www.ads-software.com/plugins/smpl-shortcodes/

  • The topic ‘[BUG REPORT] Internal 500 Error on loading Visual Editor on Linux Prod Server’ is closed to new replies.