Fix – Website shows “an error occurred while processing this directive”
I came across this maddening error, when I had a website I needed to archive. I spidered the website, had a local copy that looked good, and uploaded the website. But, now the website had “an error occurred while processing this directive” right where some important content existed (the sidebar).
As it turns out, the error is from SSI – server side includes. I had
<!--#comment-->
sprinkled liberally throughout the code. And yes, it was a wordpress blog I intended to archive. The wordpress theme had rendered the code after the SSI, so it would work fine while in wordpress, but would not upload correctly.
Solution:
change
<!--#comment-->
to
<!-- comment-->
Totally easy fix, once you know.
Hope that helps,
–Ben
Sources: Bluehost Forum
Related posts:
- Monitor Your Website for Hacks – PHP Code Gives a Hash I’ve had some friends get their website hacked with a nefarious little code snippet that attempts to exploit the browser of visitors. The site looks no different, but...
- Free Must Have Website Checking Tools I’ve been working on updating the skin to this site, and I wanted to comment on a couple of tools that I think are useful: Port 80 Software...
- Fix – Internet Explorer 8 (IE) not rendering sites correctly As is not uncommon in the web development world, I was so mad at IE I was ready to delete my bootcamp partition off my Mac and microwave...
- Fix – 1and1 hosting not updating or plugin problems I just found out why my wordpress installation was not working as I expected. My wordpress updates would hang/not complete and the plugin installations would hang/stop or come...
- Turn a Picture into a Website with Free Image Map Tool – CSS Support Too! I’m currently working with a company on the Utah Genius Website. I needed a layout quickly, as our invitations were about to be sent out. The company had...


about 9 months ago
Wow! Thank you so much! This was driving me absolutely mad. And, ya, totally works!
about 9 months ago
No problem. Glad you found it useful.
–Ben
about 8 months ago
Your awesome, this was exactly what my problem was. Kinda silly that a comment could throw an error but small price to pay to fix it. Thanks a million.
about 8 months ago
Totally agree. Like you said, at least the fix isn’t too painful.
about 6 months ago
Wow – thank goodness I found your post! I was thinking my hosting account wasn’t up-to-date when in reality it was an easy “replace all” solution – thanks so much for posting this!
about 6 months ago
Yes. That one drove me nuts. Glad you could use it.
–Ben
about 4 months ago
wow
it works like a charm
i have tried another solutions but still had the trouble
thanks a lot
about 3 months ago
thanks..! such an easy fix…
about 2 months ago
Ben,
YOUTHEMAN!!!
…..hours trying to figure this out. My comments were referencing CSS statements (duh).
Thanks a million.
Jay
about 2 months ago
WOW..thats a BIG help men!! Thumbs UP!!
The error was killing me and glad that i found u..
what a relief..thanks bRo..
about 2 months ago
No problem. Total pain in the neck, but easy fix.
–Ben
about 2 months ago
Amazing! Thanks a million!
about 6 days ago
OTG I found this!! I’ve been stuck on this for about 2 weeks now… thank you!!!!!! <3
about 15 hours ago
Yikes! Those are the most frustrating bugs. Glad I could help.
–Ben