Support » Plugin: Breadcrumb NavXT » Getting a 404 error when trying to update settings in backend

  • Whenever I click Save Changes in the backend settings, it redirects me to the frontend 404 page. I’ve tried uninstalling and reinstalling the plugin, but it still doesn’t work. Any suggestions?

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author John Havlik

    (@mtekk)

    Hi Nick,

    My first guess is that a web application firewall, such as ModSecurity, has an overly broad rule that is getting tripped up here. I would check your server logs. One other thing to double check is to see where the form is POSTing the data to (either use your browser’s built-in inspector to look that the network transactions/requests, or use it to inspect the HTML form).

    Getting an error “Uncaught SyntaxError: Invalid or unexpected token on options-general.php?page=breadcrumb-navxt:1258”

    • This reply was modified 4 months, 2 weeks ago by  nickcavegn.
    Plugin Author John Havlik

    (@mtekk)

    Hi Nick,

    What HTML is on line 1258 of that page (and maybe the line above and below)? I’m assuming its some JavaScript.

    If I’m reading it correctly, it looks like

    <script type='text/javascript'>
    $(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>
    • This reply was modified 4 months, 2 weeks ago by  nickcavegn.
    • This reply was modified 4 months, 2 weeks ago by  nickcavegn.

    If I’m reading it correctly, it looks like:

    <script type=’text/javascript’>
    $(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>

    Plugin Author John Havlik

    (@mtekk)

    Hi Nick,

    It looks like the forums ate your previous reply (I got an email with the reply but it doesn’t show up here). In general, the forums only likes a line or two of code being pasted in (and remember us surround in ticks (`)), for larger sections of code, please use a text/code pasteing service (e.g. pastebin, gist, etc). From the code, as far as I can tell, that is not something that is included by Breadcrumb NavXT. However, I don’t think that it should be affecting the form saving. Regardless, you could try disabling other plugins you have active to see if the issue goes away when just Breadcrumb NavXT is active.

Viewing 6 replies - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.