• Resolved ragnok69

    (@ragnok69)


    Since the last update when i insert a new JS code it gives me the ERROR 404: Page Not Found.

    Both CSS and HTML codes are working just fine. Only getting that error while i introduce a JS file and it doesn’t matter if i choose to create a external file or include the code in my header.

    Best Regards,
    Pedro Costa

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author SilkyPress

    (@diana_burduja)

    Just to make sure I got this right: the moment you click on the “Save” button, there is a 404 page showing up, correct?

    If you try to save a JS Custom Code with the following content:
    console.log('it works');
    do you still get the 404 error?

    Could you copy the exact JavaScript you wrote in the editor and paste and share it here?

    Could you please give me a list of plugins you have on the website installed?

    Thread Starter ragnok69

    (@ragnok69)

    Hello Diana,

    By starts i want to thank you for taking time to look into this.
    yes that is exactly what is happening.

    1. Regarding the code you provided, i still get the 404 error.
    2. Regarding the code i try to save (i know this code works because i’m using it in another wordpress website with your addon):

    <script src=”https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js”></script&gt;
    <script>
    $(document).ready(function(){
    // Add smooth scrolling to all links
    $(“a”).on(‘click’, function(event) {

    // Make sure this.hash has a value before overriding default behavior
    if (this.hash !== “”) {
    // Prevent default anchor click behavior
    event.preventDefault();

    // Store hash
    var hash = this.hash;

    // Using jQuery’s animate() method to add smooth page scroll
    // The optional number (800) specifies the number of milliseconds it takes to scroll to the specified area
    $(‘html, body’).animate({
    scrollTop: $(hash).offset().top
    }, 800, function(){

    // Add hash (#) to URL when done scrolling (default click behavior)
    window.location.hash = hash;
    });
    } // End if
    });
    });
    </script>

    3. Regarding my list of addons:

    Addons for Elementor
    Admin Custom Login
    Admin-User-Messages
    Child Theme Configurator
    Content Views
    Duplicate Page
    Elementor
    Elementor Addons & Widgets
    Facebook Feed
    Fullwidth Page Templates
    NavMenu Addon For Elementor
    Ninja Forms
    Pack All In One SEO
    Page Templater For Elementor
    Popup Maker
    Shortcodes Ultimate
    Simple Custom CSS and JS
    Settings | Desactivar
    Slimstat Analytics
    Widget CSS Classes
    WordPress Testimonial Plugin – Webriti
    Seleccionar WP Custom Widget area
    WP Custom Widget area
    WP Customer Area
    WP Live Statistics
    WP Power Stats
    WP Statistics

    Thank you again,

    Best Regards,
    Pedro Costa

    • This reply was modified 7 years, 1 month ago by ragnok69.
    • This reply was modified 7 years, 1 month ago by ragnok69.
    Plugin Author SilkyPress

    (@diana_burduja)

    Ok, so if you still get a 404 error with the console.log('it works'); code, then it’s not from the JavaScript content.

    I’ll install your plugins and see if I can replicate the problem.

    Thread Starter ragnok69

    (@ragnok69)

    Thank you Diana,

    You’re indeed a “Wonder Woman”… Get it? xD

    Best Regards,

    Pedro Costa

    Plugin Author SilkyPress

    (@diana_burduja)

    Yes, I got it ??

    Installing the plugins didn’t help. I still cannot replicate the issue.

    Let’s try one more thing.

    When you click on the “Add JS Code” button, then a page with the following URL gets open: /wp-admin/post-new.php?post_type=custom-css-js&language=js. After saving the code you get the 404 page. Could you please tell me what is the URL of that page? You can also write me only the relative URL.

    Could you make a screencast? That might give me additional clues of what is wrong.

    Thread Starter ragnok69

    (@ragnok69)

    Hello Diana once more,

    when i click “Add JS Code” the link i get is /wp-admin/post-new.php?post_type=custom-css-js&language=js.

    When i click Save / Publish i get /wp-admin/post.php

    Thanks in advance,

    Plugin Author SilkyPress

    (@diana_burduja)

    I simply don’t know what is wrong.

    I cannot replicate the issue. Nor can I identify the issue from the description.

    Unfortunately you’ll have to find another plugin for adding JavaScript code to your website.

    Thread Starter ragnok69

    (@ragnok69)

    Thank you anyway Diana.

    Have a pleasant day and week.

    Best regards,

    Pedro Costa

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘ERROR 404: Page Not found’ is closed to new replies.