• Resolved charlievie

    (@charlievie)


    Hi,

    when loading page or post edit page I am getting these two error messages:

    Message 1: Error!
    I click OK and
    Message 2: Error!

    Yes, that’s all it says, Error!
    The edit page loads but I guess with an Error.

    Also scripts put in Blog Wide JavaScript section are not execute correctly, at least that’s what it looks like.

    Thanks for your time.

    -= Charlie =-

    https://wordpress.org/plugins/scripts-n-styles/

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

    and unfortunately, I have no idea about how to trace the error.

    Thread Starter charlievie

    (@charlievie)

    Hmmm… I have been using your plugin for a long time now and it worked on all other websites, but for some reason this one website is giving me problems.

    Do you have any debug switches built into your code that I could manually turn on?

    -= Charlie =-

    Plugin Author WraithKenny

    (@wraithkenny)

    It sometimes has issues if some other plugin is generating unexpected output in ajax handlers, or other javascript exceptions. Unfortunately, I don’t have a debug framework or anything like that… I normally have to edit the plugin files in my localhost server until I manually debug these things. I haven’t had the spare time to do so in a long time.

    Thanks for your reply, Ken.

    Your plugin is very useful. I will try debugging it myself. If I make any progress, will let you know here. 🙂

    Just wanted to add that I’m also getting this error. Would love to see a fix.

    …I’m not sure how to go about fixing it myself but this might help some people: If you can live without the scripts and styles boxes on the page\posts creation page then you can do the following to strip it out and bypass the error:

    on line 35: in class-sns-admin.php of the plugin files comment out the following code:

    add_action( ‘admin_menu’, array( ‘SnS_Admin_Meta_Box’, ‘init’ ) );

    …not ideal but works for me; at least the errors gone and i can still add create scripts and css from the admin pages.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Getting error message when paged/post edit is loaded’ is closed to new replies.