• Damon Cook

    (@colorful-tones)


    Currently there is a require_once() throwing a Fatal Error, because the file does not exist within the plugin.

    Line 163 in private-website-intranet/public/class-private-website-intranet-public.php

    Currently reads: require_once dirname( __FILE__ ) . '/partials/private-website-intranet-public-login-form.php';

    Should probably be: include_once( plugin_dir_path( __FILE__ ) . 'partials/private-website-intranet-public-login-form.php' );, but then the file private-website-intranet-public-login-form.php is still missing from the plugin.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Damon Cook

    (@colorful-tones)

    Sorry, I forgot to provide the following debug info:

    • WordPress 4.9.5
    • Private Site with Custom Login Page is only plugin active
    • Current active theme: Twenty Seventeen
    Thread Starter Damon Cook

    (@colorful-tones)

    Actually, looks like if you replace line 163 with the following it works:

    include_once( plugin_dir_path( __FILE__ ) . 'partials/private-website-intranet-public-login-shortcode.php' );

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Fatal Error: require_once()’ is closed to new replies.