500 Internal Server error in pastie.el - emacs

Im using the pastie.el file located at http://www.emacswiki.org/emacs/download/pastie.el. This is supposed to help us post code to pastie.org directly from emacs.
If the file im pasting contains "<" symbol then i get a 500 Internal Server Error message in emacs,because of which im unable to post ruby files, php files etc.
Any way to fix this in the elisp file ?
Thank You

There is a problem with xml escaping in the pastie.el located on emacswiki.org. I found a working version at https://bitbucket.org/sid0/.emacs/raw/837539ad28ca/elisp-files/pastie.el .

Related

Why does view.officeapps.live.com present an error when accessing a file?

**Why does view.officeapps.live.com present an error when accessing a file?
**
Just got disconnected from a Microsoft get-help conversation after the guy couldn't solve the issue.So i take it to the omniscient strangers on the internet.
I am trying to access a file stored on a web server via view.officeapps.live.com . The file is linked bellow v
https://www.fileserver.kweb-systems.ml/Files/kai-young.ml/Personal-CV/CV.pdf
https://view.officeapps.live.com/op/embed.aspx?src=http://www.fileserver.kweb-systems.ml/Files/kai-young.ml/Personal-CV/CV.pdf
The error also occurs on the encrypted link to
https://view.officeapps.live.com/op/embed.aspx?src=https://www.fileserver.kweb-systems.ml/Files/kai-young.ml/Personal-CV/CV.pdf
The file to open in a word online window

No such file or directory. Sending Attachments

I have built a php mail system. now I want to also send attachments whit the email's. I have the files for the attachments uploaded to my server and want it with the following piece of code sent with the email.
<?php
$mail_ontvanger->addAttachment($filesOb->c_file_name, 'home/httpd/vhosts/mysite.nl/subdomains/user/httpdocs/beheer/uploads/', $filesOb->c_file_name);
?>
If I do this I than I get an error: (failed to open stream: No such file or directory in...)
I myself think that the error caused by wrong \ in directory ('home/httpd/vhosts/mysite.nl/subdomains/user/httpdocs/beheer/uploads/'). but this cant not solve the problem.
When I send an email with attachments on then the mail as usual with me in my mail box, only the file is empty.
The error is pretty obvious; it can't find the file you're trying to attach. Maybe it's due to the path being incorrect? Try this:
$mail_ontvanger->addAttachment($filesOb->c_file_name, '/home/httpd/vhosts/mysite.nl/subdomains/user/httpdocs/beheer/uploads/', $filesOb->c_file_name);
In any case, it's better to use relative paths.

Coldfusion FarCry CMS error on start up after server reboot

We're using Farcry CMS which runs on top of ColdFusion. Site was running fine but we are getting this error message after a web server reboot.
"Failed to initialise core type: dmHTML.cfc"
"Parameter 1 of function IsDefined, which is now application.stcoapi.dmHTML.stWebskins.Copy of displayPageCalculatorSelector.displayname, must be a syntactically valid variable name."
Really not sure where to start, could anyone suggest a strategy for troubleshooting this type of error.
Looks like you have a file called "Copy of displayPageCalculatorSelector.cfm" in your dmHTML webskin folder.
Remove this file is the best option.
Or rename it and remove the spaces, e.g. "Copy_of_displayPageCalculatorSelector.cfm"

Issue with Informix (ifx_connect)

Hi I have a problem after installed informix client sdk (Ref : http://www.debian-administration.org/article/651/Connect_to_Informix_using_PHP5_on_Lenny_x86_64)
OS : CentOS
Here is the .php file that i use to connect
$db_conn = ifx_connect("dbname#IPHost","user","pass");
There is some error here,
Warning: ifx_connect() [function.ifx-connect]: E [SQLSTATE=IX 001 SQLCODE=-1829] in /var/www/html/index.php on line 5
is anyone know the solution ?
Thanks
The way you find more about errors from Informix is often:
$ finderr -1829
-1829 Cannot open file citoxmsg.pam.
The file citoxmsg.pam is missing from the directory $INFORMIXDIR/msg.
If this error occurs, note all circumstances and contact IBM Technical Support.
$
(Give or take some blank lines.) The finderr command is found in $INFORMIXDIR/bin. You need $INFORMIXDIR set in the environment unless /usr/informix is correct - it could be a symlink to the actual software directory.
There are two possibilities:
You have not got INFORMIXDIR set in the environment when PHP is run, and/or the php.ini file does not define a value for $INFORMIXDIR, or the value is set incorrectly, or a default (quite possibly /usr/informix) is being used but the software is not installed there.
The installation is not complete - the relevant message file is missing as noted.
Of the two, I think reason 1 is much the more likely.
The IX001 value for SQLSTATE is of minimal use - it is the generic 'something went wrong with Informix' message. The SQLCODE is much more significant and helpful.

Shared hosting error on my Zend based Application

I have just sucessfully tested my Zend based application on the localhost.When I deployed it on a shared hosting site I got the error below.It happens whenever I try navigate to protected pages of my application.
Warning: include(/home/davidkag/public_html/prototype/application/models/DbTable//Users.php) [function.include]: failed to open stream: No such file or directory in /home/davidkag/public_html/prototype/library/Zend/Loader/Autoloader/Resource.php on line 176
I have a feeling that the double slashes
models/DbTable//Users.php)
are causing this problem.
The error is caused at this particular line in my code:
Fatal error: Class 'Model_DbTable_Users' not found in /home/davidkag/public_html/prototype/application/controllers/AuthController.php on line 24
How do I trouble shoot this problem.Keep in mind that on my localhost machine its working fine.
I would start by creating a new test script, with one line, and see what you get:
include '/home/davidkag/public_html/prototype/application/models/DbTable//Users.php';
Then, remove the double slashes:
include '/home/davidkag/public_html/prototype/application/models/DbTable/Users.php';
If it's still giving you that warning, then either your path is wrong or your file permissions need to be eased.
P.S. You said 'protected pages' -- are those perhaps not in public_html?
I finally found my problem.It was a case issue.Talk of developing on windows and deploying on linux