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
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.
Totally easy fix, once you know.
Hope that helps,
Sources: Bluehost Forum
you are the master! thank you so much!!!
Thank you, thank you, thank you.
The problem appears to me with a Bootstrap site with just Html and JQuery.
NO php, SSI or whatsoever language.
Site was still working but have the error message written on the menu bar! :-0
Thank you for the forth time
Oh, yeaahhh! Ben, you really-really savior man!
This was exactly what I needed. Thank you so much!
Thank you Ben!
Thank you so much Ben. I had the problem with one bootstrap theme. I could not figure out what going on. I’m very surprised that was so stupid thing blocking all jquery movement. Thanks again.
thanks a lot
Thanks a lot ….This is really an easy fix !
Thanks a ton Mr. Ben !!! I was going to be admitted in a mental hospital. This is really an easy fix !
Thanks alot. You have the only solutions in whole of google indexed pages. Thanks
You just saved me hours of work! As soon as I read
needs to be
I freaked out, knew exactly what comment I used the number symbol in, and deleting/backspacing the # out of the comment fixed it!
I think Inkscape, Gimp and Expression all serve different purposes. I prefer Inkscape for vector graphics, and GIMP for bitmap/photo maionulatnip. I think some of Gimp’s interface quirky-ness is because it tries to emulate Adobe Photoshop, and so is intuitive to those familiar with that. I find Expression appropriate for page design and layout, and relatively simple and intuitive. All just weapons in your armoury.
a clarification i think i might need is do i have to go around all the files of my installation and remove anywhere i see the # sign?
Wow! Wow! Thanks so much!!
Can you please tell me in what file that is in? This is driving me crazy. Please help! Please help!
It will generally be in the file you are accessing (ie the one in the URL bar), but if you use include language, then it could also come from an included file.
Hope that helps!
Thanks so much, would never have thought of this fix!
Thanks, It works for me!!!!
I have spent an interminable amount of time off and on trying to figure out that stupid error. This solved it!
Thanks so much! Solved my problem! My error was displaying on the homepage so I made the change on the php file for my homepage. My problem also looked like this: which I changed to and it worked!
8 hours of going crazy! Thank you
Great! thank you sir! this issue was driving me nuts…
WOW! like sooo many people who have had this error, I would like to thank you very much for this quick fix. It was also driving me mad too!
Ok, like a few other people here I need a little more information. Please! What file or files? Where do I begin to look for these comments?
hours-days maybe spent trying to fix this error. it seems to be more related to the space needing to be there than the hash or a period. TYTYTYTY!!!!!
Great Fix comes from easy fix…
Ok, but what file did ou all found the wrong comment?
Let me know please.
In any html file. You just can’t have the hash marks in a comment tag.
This saved me too, was driving me crazy for a good 3 hours then I decided to google it.
Ben – I am not a geek level techie but can program get around stuff. Now, all I am doing is downloading a CSV from a website. (Web scraping). It was working fine till yesterday but it gives me this error today. I am not a server side person and in this case I am just doing simple screen scraping. How do I fix this? Here is the website and all I do is HTTPFiledownload.
Thank you so very much! That was driving me bonkers – I tried deleted, adjusting, renaming the php files and nothing was working. Then you come along and fixed everything!
*this has been bothering me for a few days! thank you!
your are the man, good solution, I were a week searching for one solution, I tasted avery thing, .htaccess with SSI inclution, etc many thing, I don’t imagine that the solution were so easy, thanj you a lot
hey buddy, what file do i find the code in?
I had a php file with comments like:
// ### query database
After removing the hash marks, the page loaded–thanks a bunch!
While trying to submit it, it keeps getting rewritten, but you know what I mean.
First, allow me to say thank you for taking the time to post this fix. I had a similar situation with using the comment sequence. The site validated perfectly and no one at GoDaddy could see a problem. I hand code everything myself, so I began to try to find the problem through trial and error and brute logic. The site ran perfectly locally and GD could only tell me that there was a problem with the code. Since it validated using every tool I could find, I was lost. Then, after a month of going mad I stumbled on your posting. Poof! The problem disappeared. Apparently the sequence<!–# is unacceptable to Linux servers, and perhaps others. I have posted the fix in the GD forum and called them to put it in their notes. Thanks a million. Can't begin to tell you what a relief it was to get rid of the mystery error. Thanks again.
Thx a lot !
You just saved me an additional hour of beating my head against the wall. Just wish I found this sooner.
Thanx…..this is grt….its make me mad…so thnx a lot…
Completely overlooked this and didn’t even consider it a possibility. Thanks, Ben! Definitely keep this page up for #-loving developers to come.
Many thanks Ben! I spent almost an hour trying solve this.
Jeff- from Philippines
Totally know the feeling. Glad it saved you a few minutes.
Super easy fix. That error scared me because my validation was just fine. They need to fix that.
OTG I found this!! I’ve been stuck on this for about 2 weeks now… thank you!!!!!! <3 🙂
Yikes! Those are the most frustrating bugs. Glad I could help.
Amazing! Thanks a million!
WOW..thats a BIG help men!! Thumbs UP!!
The error was killing me and glad that i found u..
what a relief..thanks bRo.. 😀
No problem. Total pain in the neck, but easy fix.
…..hours trying to figure this out. My comments were referencing CSS statements (duh).
Thanks a million.
thanks..! such an easy fix…
it works like a charm
i have tried another solutions but still had the trouble
thanks a lot 😀
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!
Yes. That one drove me nuts. Glad you could use it.
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.
Totally agree. Like you said, at least the fix isn’t too painful.
No problem. Glad you found it useful.
You saved me!!!!
Wow! Thank you so much! This was driving me absolutely mad. And, ya, totally works!
Thanks a ton!
WOW! Thank GOD this worked! Thank you for posting this! Totally fixed my problem. Thank God for the internet! FEW!