Posts Tagged troubleshooting

I pasted in some code, and WordPress made it disappear!

Posted by on Wednesday, 2 April, 2014

Does this sound familiar?

I got some code from our catalog vendor and they told me that I could put a search box on my Web site. All I had to do was past in this code:

<script type="text/javascript" src="">
<table apollo_feed="recent_added:days_back=10:max=5:horizontal:minimal=1"></table>

I did that, and saved my changes but then when I looked again all that was in the box was:


What happened?

The code in this example isn’t necessarily exactly what you were using but the problem is the same. Sometimes WordPress removes HTML code that you’ve pasted into your site. Why is that?

Simply put, WordPress has some built in security that removes code that it views as “non-standard” and/or potentially harmless. In the above example the bit about the “apollo_feed” is not standard HTML so it was removed. The whole <script> line was removed for security reasons as scripting is very powerful and it can be used for good, but it can also be used for evil. By default, WordPress defaults to a very cautious stance and that’s ultimately a good thing.

However, I’ve been working with a few libraries recently and there is a solution that I can implement from this end. So, if you’re encountering this problem, please send me the code you’re trying to use, what it’s supposed to do, and let me know where on your page you’d like it to appear. For security reasons we’ll still take a look at it to make sure it won’t cause any problems and as long as it doesn’t I’ll happily implement it for you.

Help, my site is reporting an “IPS Attack”!

Posted by on Monday, 17 June, 2013

Every so often a participating library contacts us with a seemingly scary problem. They try to go to their Web site and are told that an “IPS Attack” has been detected. Here’s what’s going on:

The error message “Blocked: IPS Attack Detected. Contact your system administrator” is generated by Fortinet, the State of Nebraska firewall which secures all and addresses including your library’s WordPress site at Occasionally, one of the machines that make up that firewall is temporarily misconfigured and will report an attack from your computer when there is none. This condition generally clears up on its own within 24 hours. When you see this error, we do ask you to perform due diligence to verify that your machine is free of malware:

  • verify that the firewall on your computer is enabled,
  • verify that its anti-virus software is up to date,
  • perform an anti-virus scan.

Every time this has occurred, we have been able to access the library’s site. In other words, your site is working fine; it is just your access to it that’s having a problem. So rest assured, your patrons can probably get to your site without seeing this message. If you must really work on your site before the problem is solved, try using a computer with a different connection than the one your library has, for example, one at your home.

If you continue to see the error message when 48 hours has passed, please contact us.