• Resolved Pixelbits

    (@pixelbits)


    After updating to latest version (trough WordPress or FTP) I’m getting the following error:

    Warning: require(/shared/home/XYZ/domains/XYZ.nl/public_html/site/wp-content/plugins/<strong>better-wp-security/core/class-itsec-global-settings.php</strong>): failed to open stream: No such file or directory in /shared/home/XYZ/domains/XYZ.nl/public_html/site/wp-content<strong>/plugins/better-wp-security/core/class-itsec-core.php</strong> on line 267
    
    Fatal error: require(): Failed opening required '/shared/home/XYZ/domains/XYZ.nl/public_html/site/wp-content/plugins/better-wp-security/core/class-itsec-global-settings.php' (include_path='.:/usr/local/lib/php') in /shared/home/XYZ/domains/XYZ.nl/public_html/site/wp-content/plugins/better-wp-security/core/class-itsec-core.php on line 267

    I’ve looked in the ZIP of the latest version and that file(class-itsec-global-settings.php) is not there at all.

    The lines of code that requests theses files comes from:

    if ( $file == $this_plugin ) {
    				$settings_link = '<a href="' . esc_url( self::get_settings_page_url() ) . '">' . __( 'Settings', 'better-wp-security' ) . '</a>';
    				array_unshift( $links, $settings_link );

    I’ve seen some comments in this support about NGINX servers being affected by this problem. I’m on NGINX… but what is the solution?

    Any help is appreciated.

    https://wordpress.org/plugins/better-wp-security/

Viewing 5 replies - 1 through 5 (of 5 total)
  • @pixelbits

    In the iTSec plugin release prior to 5.4.x on line 267 of the class-itsec-core.php file indeed a require of the class-itsec-global-settings.php file was executed.

    However this is no longer the case since 5.4.x.

    So it looks to me there are mixed version files in your current iTSec plugin install. Or there may be a caching problem.

    Manually delete the better-wp-security folder and then FTP the 5.4.5 ZIP file and unzip it.

    Also I don’t think this is nginx specific.

    dwinden

    Thread Starter Pixelbits

    (@pixelbits)

    Thanks. Had deleted plugin already. Re uploading through FTP as we speak.
    …. to be continued…

    Thread Starter Pixelbits

    (@pixelbits)

    “Plugin kan niet worden geactiveerd omdat hij een fatale fout veroorzaakt.”

    The plugin can’t be activated because of a fatal error….
    Will check into cache-related problems.

    Maybe problem will fix itself…

    @pixelbits

    You might be able to get a more usefull (php) error when temporarily setting the WP_DEBUG constant to true in the wp-config.php file.

    Or check the web server error_log for any errors.

    dwinden

    Thread Starter Pixelbits

    (@pixelbits)

    YES – problem solved itself. Probably varnish cache problem or loadbalancer that needed updating.

    Thanks for the help!

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘5.4.5 error : class-itsec-global-settings.php not found. (On NGIX)’ is closed to new replies.