• Hi Peter,

    Thanks for all the effort you have gone to with the plugin! At Wild Dynasty we are using it on 2 of our WordPress sites, and Ashley and I love it.

    We have the latest version of the plugin installed (11.3.1), but when we try to view the settings we were getting some 404 errors for the following files:

    pp-admin-page.css
    jquery.cookie.js
    pp-admin-page.js

    An example of the URL it was trying to load was:

    https://portal.wilddynasty.com/wp-content/plugins/bitnami/wordpress/wp-content/plugins/404page/inc/ppf/assets/css/pp-admin-page.css/?ver=5.9.3

    I did notice the path in the URL wasn’t correct and if I cut out the /wp-content/plugins/bitnami/wordpress bit it would load the CSS fine.

    I hacked lines 515 – 519 in 404page/inc/ppf/ppf-admin.php to:

    .              wp_enqueue_style( $this->core()->get_plugin_slug() . '-ppf03', plugins_url( 'assets/css/pp-admin-page.css' , __FILE__ ) );      
    
    		wp_enqueue_script( $this->core()->get_plugin_slug() . '-ppf03-cookie', plugins_url( 'assets/js/jquery.cookie.js' , __FILE__ ) );
    		wp_enqueue_script( $this->core()->get_plugin_slug() . '-ppf03', plugins_url( 'assets/js/pp-admin-page.js' , __FILE__ ) );
    		
    //      wp_enqueue_style( $this->core()->get_plugin_slug() . '-ppf03', $this->get_foundation_asset_url( 'css', 'pp-admin-page.css' ) );      
    
    //      wp_enqueue_script( $this->core()->get_plugin_slug() . '-ppf03-cookie', $this->get_foundation_asset_url( 'js', 'jquery.cookie.js' ), array( 'jquery' ), false, true );
    //      wp_enqueue_script( $this->core()->get_plugin_slug() . '-ppf03', $this->get_foundation_asset_url( 'js', 'pp-admin-page.js' ), array( 'jquery', $this->core()->get_plugin_slug() . '-ppf03-cookie' ), false, true );

    Which resolved my issue, but I have a much stronger .NET dev background and haven’t had that much exposure to PHP/WordPress dev, so I want to alert you to the issue.

    Thanks again,

    Adrian

  • The topic ‘CSS and JS 404’ is closed to new replies.